diff --git a/include/dynamic-graph/entity.h b/include/dynamic-graph/entity.h index 1a4b33e905e0b60fe4e456bd635afa528237e46f..1c44763d91339878e824e18d533a05097edbef59 100644 --- a/include/dynamic-graph/entity.h +++ b/include/dynamic-graph/entity.h @@ -83,8 +83,12 @@ public: SignalMap getSignalMap() const; - /** \name Logger related methods */ - /** \{*/ + /// \name Logger related methods + /// \{ + + Logger &logger() { return logger_; }; + Logger const &logger() const { return logger_; }; + /// \brief Send messages \c msg with level \c t. /// Add string file and line to message. void sendMsg(const std::string &msg, MsgType t = MSG_TYPE_INFO, @@ -110,6 +114,8 @@ public: /// \brief Get the period of the stream period double getStreamPrintPeriod() { return logger_.getStreamPrintPeriod(); } + /// \} + protected: void addCommand(const std::string &name, command::Command *command);