.. index:: pair: class; ProtoOpsManager .. _doxid-class_proto_ops_manager: class ProtoOpsManager ===================== .. toctree:: :hidden: Overview ~~~~~~~~ Singleton class which loads Protobuf conversion libraries. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ProtoOpsManager: public :ref:`PluginManager` { public: // construction :target:`ProtoOpsManager`(const ProtoOpsManager&); :target:`ProtoOpsManager`(ProtoOpsManager&&); // methods ProtoOpsManager& :target:`operator =` (const ProtoOpsManager&); ProtoOpsManager& :target:`operator =` (ProtoOpsManager&&); std::unique_ptr<:ref:`protobuf_ops::NRPProtobufOpsIface`> :ref:`loadProtobufPlugin`(const std::string& pluginLibFile); static ProtoOpsManager& :ref:`getInstance`(); static void :ref:`resetInstance`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods bool :ref:`loadPlugin`(const std::string& pluginLibFile); void :ref:`addPluginPath`(const std::string& pluginPath); .. _details-class_proto_ops_manager: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Singleton class which loads Protobuf conversion libraries. Also in charge of unloading then when the object is destructed Methods ------- .. index:: pair: function; loadProtobufPlugin .. _doxid-class_proto_ops_manager_1a0f12abac4cc446ffcd1bca00c82a7e7a: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::unique_ptr<:ref:`protobuf_ops::NRPProtobufOpsIface`> loadProtobufPlugin(const std::string& pluginLibFile) Load a Protobuf conversion plugin from a given library. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pluginLibFile - Plugin library file (.so) .. rubric:: Returns: Returns ptr to loaded :ref:`protobuf_ops::NRPProtobufOpsIface ` if found, nullptr otherwise .. index:: pair: function; getInstance .. _doxid-class_proto_ops_manager_1a38190003a2e208473d01a4e0273be019: .. ref-code-block:: cpp :class: doxyrest-title-code-block static ProtoOpsManager& getInstance() Get singleton instance of :ref:`ProtoOpsManager `. .. index:: pair: function; resetInstance .. _doxid-class_proto_ops_manager_1af7f49eab8718edc2e49ff7f43020586e: .. ref-code-block:: cpp :class: doxyrest-title-code-block static void resetInstance() Reset singleton instance.