.. index:: pair: class; StatusFunction .. _doxid-class_status_function: class StatusFunction ==================== .. toctree:: :hidden: Overview ~~~~~~~~ Holds a single Python function created with :ref:`StatusFunction ` decorator. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class StatusFunction: public :ref:`TransceiverDataPackInterface`, public :ref:`PtrTemplates` { public: // methods virtual const std::string& :ref:`linkedEngineName`() const; virtual bool :ref:`isPreprocessing`() const; :ref:`TransceiverDataPackInterface::shared_ptr` :ref:`pySetup`(boost::python::object statusFunction); virtual boost::python::object :ref:`runTf`( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::shared_ptr :ref:`shared_ptr`; typedef std::shared_ptr :ref:`const_shared_ptr`; typedef std::unique_ptr :ref:`unique_ptr`; typedef std::unique_ptr :ref:`const_unique_ptr`; // methods template :ref:`TransceiverDataPackInterface::shared_ptr` :ref:`pySetup`(const :ref:`TransceiverDataPackInterface::shared_ptr`& tfDataPack); virtual const std::string& :ref:`linkedEngineName`() const; virtual bool :ref:`isPreprocessing`() const; virtual boost::python::object :ref:`runTf`( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ); virtual :ref:`datapack_identifiers_set_t` :ref:`updateRequestedDataPackIDs`(:ref:`datapack_identifiers_set_t`&& datapackIDs = :ref:`datapack_identifiers_set_t`()) const; virtual :ref:`datapack_identifiers_set_t` :ref:`getRequestedDataPackIDs`() const; static void :ref:`setTFInterpreter`(:ref:`FunctionManager`* interpreter); static const :ref:`FunctionManager`* :ref:`getFunctionManager`(); .. _details-class_status_function: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Holds a single Python function created with :ref:`StatusFunction ` decorator. Methods ------- .. index:: pair: function; linkedEngineName .. _doxid-class_status_function_1a5fb5bed166d4c45c20d1eba5eba0db49: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual const std::string& linkedEngineName() const Returns an empty string. Status functions are not linked to any engine, so the string returned by this method should always be empty. The method is implemented in order to conform to the base interface. .. index:: pair: function; isPreprocessing .. _doxid-class_status_function_1a854fdead67ec2a19cbe13cc06edd8440: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool isPreprocessing() const Returns false. Status functions don't have the concept of pre-processing. The method is implemented in order to conform to the base interface. .. index:: pair: function; pySetup .. _doxid-class_status_function_1aa70f47d58c6ef9ea8fbe7abc9a1aa755: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`TransceiverDataPackInterface::shared_ptr` pySetup(boost::python::object statusFunction) Performs actual initialization of the object. This method is linked to the **call** () method of Python :ref:`StatusFunction ` decorator. It links the user-defined python function to this C++ object. It also registers the C++ object in the function manager. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - statusFunction - User-defined python function. It will be linked to this C++ object. .. rubric:: Returns: shared_ptr referencing data from this object .. index:: pair: function; runTf .. _doxid-class_status_function_1aa688a3a25971099555af5e96e91e8bc4: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual boost::python::object runTf( boost::python::tuple& args, boost::python::dict& kwargs, :ref:`datapacks_set_t` dataPacks ) Runs the status function. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - args - Python args * - kwargs - Python keywords .. rubric:: Returns: Result of status function execution