#include <entity.hpp>
|
| virtual Logger | logger () const |
| |
|
|
std::string | name_ |
| |
|
std::string | desc_ |
| |
An Entity is the base class for all named objects.
◆ description()
| const std::string& cloe::Entity::description |
( |
| ) |
const |
|
inline |
Return the optional description of the Entity.
If there is no description, the empty string is returned.
◆ logger()
| virtual Logger cloe::Entity::logger |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ name()
| const std::string& cloe::Entity::name |
( |
| ) |
const |
|
inline |
Return the name of the Entity.
◆ set_description()
| void cloe::Entity::set_description |
( |
std::string |
desc | ) |
|
|
inline |
Set the free-form description of the entity.
◆ set_name()
| void cloe::Entity::set_name |
( |
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
◆ to_json
Return JSON representation of an Entity.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/cloe/checkouts/v0.25.1/runtime/include/cloe/entity.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/cloe/checkouts/v0.25.1/runtime/src/cloe/entity.cpp