Skip to content

Commit 7c48f8a

Browse files
jmirabelOlivier Stasse
authored andcommitted
Give access to the Entity::logger_ + fix doc.
1 parent 67b0cc6 commit 7c48f8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

include/dynamic-graph/entity.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ class DYNAMIC_GRAPH_DLLAPI Entity : private boost::noncopyable {
8383

8484
SignalMap getSignalMap() const;
8585

86-
/** \name Logger related methods */
87-
/** \{*/
86+
/// \name Logger related methods
87+
/// \{
88+
89+
Logger &logger() { return logger_; };
90+
Logger const &logger() const { return logger_; };
91+
8892
/// \brief Send messages \c msg with level \c t.
8993
/// Add string file and line to message.
9094
void sendMsg(const std::string &msg, MsgType t = MSG_TYPE_INFO,
@@ -110,6 +114,8 @@ class DYNAMIC_GRAPH_DLLAPI Entity : private boost::noncopyable {
110114
/// \brief Get the period of the stream period
111115
double getStreamPrintPeriod() { return logger_.getStreamPrintPeriod(); }
112116

117+
/// \}
118+
113119
protected:
114120
void addCommand(const std::string &name, command::Command *command);
115121

0 commit comments

Comments
 (0)