$darkmode
#include <entity.hpp>
Public Member Functions | |
| Entity (const std::string &name) | |
| Entity (const std::string &name, const std::string &desc) | |
| std::string | name () const |
| void | set_name (const std::string &name) |
| std::string | description () const |
| void | set_description (const std::string &desc) |
Protected Member Functions | |
| virtual Logger | logger () const |
Protected Attributes | |
| std::string | name_ |
| std::string | desc_ |
Friends | |
| void | to_json (Json &j, const Entity &e) |
An Entity is the base class for all named objects.
|
inline |
Return the optional description of the Entity.
If there is no description, the empty string is returned.
|
inlineprotectedvirtual |
Return the Logger that the manager should use.
Reimplemented in cloe::Action, and cloe::Event.
|
inline |
| void cloe::Entity::set_name | ( | const std::string & | name | ) |
Set the name of the Entity.
The name must conform to the following regular expression:
^[a-zA-Z_][a-zA-Z0-9_]*(/[a-zA-Z_][a-zA-Z0-9_]*)*$
That is, the following are proper names:
basic/hmi simulation/stop start _/strange_but_0k