vxlan: vxlan/vxlan.api API cleanup
[vpp.git] / extras / vom / vom / enum_base.hpp
index 6756e24..015410a 100644 (file)
@@ -51,6 +51,27 @@ public:
     return (*this);
   }
 
+  /**
+   * bitwise or assignemnt
+   */
+  enum_base& operator|=(const enum_base& e)
+  {
+    m_value += e.m_value;
+    m_desc += ":" + e.m_desc;
+
+    return *this;
+  }
+
+  /**
+   * bitwise or
+   */
+  enum_base operator|(const enum_base& e1) const
+  {
+    enum_base e = *this;
+    e |= e1;
+    return e;
+  }
+
   /**
    * Comparison operator
    */