X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Fcomponent-class.hpp;fp=src%2Fcpp-common%2Fbt2%2Fcomponent-class.hpp;h=e32ba34ae6811be0558401ce3f3f05de0b91b057;hp=efee3f43cfec81c5544089a4c3a010d70ed79047;hb=a65c7bf4e060c4d48b86145a95ab4ae964c2dc47;hpb=5996c10ea5bf46238011fd34500141a0029047b8 diff --git a/src/cpp-common/bt2/component-class.hpp b/src/cpp-common/bt2/component-class.hpp index efee3f43..e32ba34a 100644 --- a/src/cpp-common/bt2/component-class.hpp +++ b/src/cpp-common/bt2/component-class.hpp @@ -52,6 +52,13 @@ public: using typename _ThisBorrowedObject::LibObjPtr; using Shared = SharedObject; + enum class Type + { + SOURCE = BT_COMPONENT_CLASS_TYPE_SOURCE, + FILTER = BT_COMPONENT_CLASS_TYPE_FILTER, + SINK = BT_COMPONENT_CLASS_TYPE_SINK, + }; + explicit CommonComponentClass(const LibObjPtr libObjPtr) noexcept : _ThisBorrowedObject {libObjPtr} {