.. index:: pair: class; InputEngineNode .. _doxid-class_input_engine_node: class InputEngineNode ===================== .. toctree:: :hidden: Overview ~~~~~~~~ Input node used to connect an :ref:`EngineClient ` with the computational graph. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class InputEngineNode: public :ref:`InputNode` { public: // construction :ref:`InputEngineNode`(const std::string& id, const std::string& engineName); // methods virtual std::string :ref:`typeStr`() const; const std::set<:ref:`DataPackIdentifier`>& :ref:`requestedDataPacks`() const; void :ref:`setDataPacks`(:ref:`datapacks_vector_t` dpacks); }; 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 ); void :ref:`registerOutput`(const std::string& id); :ref:`OutputPort`* :ref:`getSinglePort`(const std::string& id); :ref:`OutputPort`>* :ref:`getListPort`(const std::string& id); :ref:`InputNodePolicies::MsgPublishPolicy` :ref:`msgPublishPolicy`(); :ref:`InputNodePolicies::MsgCachePolicy` :ref:`msgCachePolicy`(); void :ref:`setMsgPublishPolicy`(:ref:`InputNodePolicies::MsgPublishPolicy` msgPublishPolicy); void :ref:`setMsgCachePolicy`(:ref:`InputNodePolicies::MsgCachePolicy` msgCachePolicy); .. _details-class_input_engine_node: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Input node used to connect an :ref:`EngineClient ` with the computational graph. It has two methods 'requestedDataPacks' and 'setDataPacks' which allows to update the node externally with the latest datapacks Construction ------------ .. index:: pair: function; InputEngineNode .. _doxid-class_input_engine_node_1a78df37f28c24796c20b0117445a0b467: .. ref-code-block:: cpp :class: doxyrest-title-code-block InputEngineNode(const std::string& id, const std::string& engineName) Constructor Methods ------- .. index:: pair: function; typeStr .. _doxid-class_input_engine_node_1a2de3e84f756d7644a39ec7b409ec7d01: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::string typeStr() const Returns the node 'type' as a string. .. index:: pair: function; requestedDataPacks .. _doxid-class_input_engine_node_1a1b693497da1fd00fff0b9b40c2893ec3: .. ref-code-block:: cpp :class: doxyrest-title-code-block const std::set<:ref:`DataPackIdentifier`>& requestedDataPacks() const Get the set of DataPackInterfaces that this node requests .. index:: pair: function; setDataPacks .. _doxid-class_input_engine_node_1a6a0359edb7b982f44f7a3bda5833fcb4: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setDataPacks(:ref:`datapacks_vector_t` dpacks) Set datapacks to be published into the graph in the next call to 'compute'