6 #ifndef DYNAMIC_GRAPH_ENTITY_H 7 #define DYNAMIC_GRAPH_ENTITY_H 14 #include <boost/noncopyable.hpp> 38 #define DYNAMIC_GRAPH_ENTITY_DECL() \ 40 virtual const std::string &getClassName() const { return CLASS_NAME; } \ 41 static const std::string CLASS_NAME 52 class DYNAMIC_GRAPH_DLLAPI
Entity :
private boost::noncopyable {
54 typedef std::map<std::string, SignalBase<int> *>
SignalMap;
55 typedef std::map<const std::string, command::Command *>
CommandMap_t;
62 static std::string ret(
"Entity");
68 virtual std::string getDocString()
const;
73 bool hasSignal(
const std::string &signame)
const;
91 std::ostream &displaySignalList(std::ostream &os)
const;
98 virtual std::ostream &writeGraph(std::ostream &os)
const;
105 virtual std::ostream &writeCompletionList(std::ostream &os)
const;
109 virtual void display(std::ostream &os)
const;
115 const std::string &getCommandList()
const;
120 CommandMap_t getNewStyleCommandMap();
130 SignalMap getSignalMap()
const;
141 const std::string &lineId =
"");
157 return logger_.setStreamPrintPeriod(t);
168 void entityRegistration();
169 void entityDeregistration();
172 void signalDeregistration(
const std::string &name);
180 DYNAMIC_GRAPH_DLLAPI std::ostream &
operator<<(std::ostream &os,
virtual void test2(SignalBase< int > *)
This class represents an entity, i.e. a generic computational unit that provides input and output sig...
bool setTimeSample(double t)
Set the time sample.
std::map< std::string, SignalBase< int > * > SignalMap
virtual SignalBase< int > * test()
virtual const std::string & getClassName() const
DYNAMIC_GRAPH_DLLAPI std::ostream & operator<<(std::ostream &os, const dynamicgraph::Entity &ent)
double getTimeSample()
Get the time sample.
Logger const & logger() const
double getStreamPrintPeriod()
Get the period of the stream period.
void setLoggerVerbosityLevel(LoggerVerbosity lv)
Specify the verbosity level of the logger.
std::map< const std::string, command::Command * > CommandMap_t
LoggerVerbosity getLoggerVerbosityLevel()
Get the logger's verbosity level.
const std::string & getName() const
bool setStreamPrintPeriod(double t)
Set the period of the stream period.
Class for logging messages.