.. index:: pair: class; OutputMQTTNode .. _doxid-class_output_m_q_t_t_node: template class OutputMQTTNode ============================= .. toctree:: :hidden: Overview ~~~~~~~~ Output node used to connect an MQTT publisher to the computational graph. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class OutputMQTTNode: public :ref:`OutputNode` { public: // construction :ref:`OutputMQTTNode`( const std::string& id, const std::string& address, bool publishFromCache = false, unsigned int computePeriod = 1 ); // methods virtual std::string :ref:`typeStr`() const; }; // direct descendants template class :ref:`DPOutputMQTTNode`; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`NodeType`; // fields static const static std::map<:ref:`NodeType`, std::string> :ref:`nodeTypeStr` = {{:ref:`ComputationalNode::Input`, "Input"}, {ComputationalNode::Output, "Output"}, {ComputationalNode::Functional, "Functional"}}; // methods const std::string& :ref:`id`() const; :ref:`NodeType` :ref:`type`() const; virtual std::string :ref:`typeStr`() const; void :ref:`setVisited`(bool visited); bool :ref:`isVisited`() const; void :ref:`setDoCompute`(bool doCompute); virtual bool :ref:`doCompute`() const; static std::pair :ref:`parseNodeAddress`( const std::string& address, bool hasPort = true ); template :ref:`InputPort`* :ref:`getOrRegisterInput`(const std::string& id); unsigned int :ref:`getComputePeriod`(); void :ref:`setComputePeriod`(unsigned int computePeriod); bool :ref:`publishFromCache`(); virtual bool :ref:`doCompute`() const; .. _details-class_output_m_q_t_t_node: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Output node used to connect an MQTT publisher to the computational graph. The template parameter MSG_TYPE is the MQTT msg type this node can publish Construction ------------ .. index:: pair: function; OutputMQTTNode .. _doxid-class_output_m_q_t_t_node_1a0141589edf70a8a92bcde3f2c069b7b8: .. ref-code-block:: cpp :class: doxyrest-title-code-block OutputMQTTNode( const std::string& id, const std::string& address, bool publishFromCache = false, unsigned int computePeriod = 1 ) Constructor. Methods ------- .. index:: pair: function; typeStr .. _doxid-class_output_m_q_t_t_node_1a2212d1dd184b814cf897d6c72c6d2917: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::string typeStr() const Returns the node 'type' as a string.