10 #include <argos3/core/utility/logging/argos_log.h>
11 #include <argos3/core/simulator/space/space.h>
19 m_pcParent(pc_parent),
22 m_ptConfNode(nullptr) {
29 const std::string& str_id) :
30 m_pcParent(pc_parent),
34 m_ptConfNode(nullptr) {
45 m_ptConfNode = &t_tree;
56 if(m_pcParent !=
nullptr) {
80 if(m_pcParent !=
nullptr) {
92 if(m_pcParent !=
nullptr) {
104 if(m_pcParent !=
nullptr) {
116 if(m_pcParent !=
nullptr) {
128 if(m_pcParent !=
nullptr) {
140 m_bEnabled = b_enabled;
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
#define THROW_ARGOSEXCEPTION(message)
This macro throws an ARGoS exception with the passed message.
unsigned int UInt32
32-bit unsigned integer.
The namespace containing all the ARGoS related code.
bool NodeAttributeExists(TConfigurationNode &t_node, const std::string &str_attribute)
Returns true if the specified attribute of a node exists.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
std::string ToString(const T &t_value)
Converts the given parameter to a std::string.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
Basic class for an entity that contains other entities.
const std::string & GetId() const
Returns the id of this entity.
CEntity & GetRootEntity()
Returns the root entity containing this entity.
std::string GetContext() const
Returns the context of this entity.
CEntity(CComposableEntity *pc_parent)
Class constructor.
CComposableEntity & GetParent()
Returns this entity's parent.
virtual void SetEnabled(bool b_enabled)
Enables or disables an entity.
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
The exception that wraps all errors in ARGoS.