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<sigtime_t> *>
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,