Skip to content
Snippets Groups Projects
Commit 7c48f8ad authored by Joseph Mirabel's avatar Joseph Mirabel Committed by olivier stasse
Browse files

Give access to the Entity::logger_ + fix doc.

parent 67b0cc69
No related branches found
No related tags found
No related merge requests found
...@@ -83,8 +83,12 @@ public: ...@@ -83,8 +83,12 @@ public:
SignalMap getSignalMap() const; 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. /// \brief Send messages \c msg with level \c t.
/// Add string file and line to message. /// Add string file and line to message.
void sendMsg(const std::string &msg, MsgType t = MSG_TYPE_INFO, void sendMsg(const std::string &msg, MsgType t = MSG_TYPE_INFO,
...@@ -110,6 +114,8 @@ public: ...@@ -110,6 +114,8 @@ public:
/// \brief Get the period of the stream period /// \brief Get the period of the stream period
double getStreamPrintPeriod() { return logger_.getStreamPrintPeriod(); } double getStreamPrintPeriod() { return logger_.getStreamPrintPeriod(); }
/// \}
protected: protected:
void addCommand(const std::string &name, command::Command *command); void addCommand(const std::string &name, command::Command *command);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment