class OutputDummy

Dummy output node which just stores the last received msgs.

#include <output_dummy.h>

class OutputDummy: public OutputNode {
public:
    // fields

    size_t call_count = 0;
    const boost::python::object* lastData = nullptr;
    bool debugPrint = false;

    // construction

    OutputDummy(
        const std::string& id,
        bool publishFromCache = false,
        unsigned int computePeriod = 1
    );
};

Inherited Members

public:
    // enums

    enum NodeType;

    // fields

    static const static std::map<NodeType, std::string> nodeTypeStr = {{ComputationalNode::Input, "Input"},                                                                                            {ComputationalNode::Output, "Output"},                                                                                            {ComputationalNode::Functional, "Functional"}};

    // methods

    const std::string& id() const;
    NodeType type() const;
    virtual std::string typeStr() const;
    void setVisited(bool visited);
    bool isVisited() const;
    void setDoCompute(bool doCompute);
    virtual bool doCompute() const;

    static std::pair<std::string, std::string> parseNodeAddress(
        const std::string& address,
        bool hasPort = true
    );

    template <class T_IN>
    InputPort<T_IN, DATA>* getOrRegisterInput(const std::string& id);

    unsigned int getComputePeriod();
    void setComputePeriod(unsigned int computePeriod);
    bool publishFromCache();
    virtual bool doCompute() const;