prototype_link_equipped_entity.h
Go to the documentation of this file.
1 
7 #ifndef PROTOTYPE_LINK_EQUIPPED_ENTITY_H
8 #define PROTOTYPE_LINK_EQUIPPED_ENTITY_H
9 
10 namespace argos {
11  class CPrototypeLinkEquippedEntity;
12  class CPrototypeLinkEntity;
13 }
14 
15 #include <argos3/core/simulator/entity/composable_entity.h>
16 #include <argos3/plugins/robots/prototype/simulator/prototype_link_entity.h>
17 #include <map>
18 
19 namespace argos {
20 
22 
23  public:
24 
25  ENABLE_VTABLE();
26 
27  public:
28 
30 
32 
33  virtual void Init(TConfigurationNode& t_tree);
34 
36 
37  CPrototypeLinkEntity& GetLink(const std::string& str_id);
38 
40  return m_vecLinks;
41  }
42 
44  return *m_vecLinks[0];
45  }
46 
47  virtual std::string GetTypeDescription() const {
48  return "links";
49  }
50 
51  private:
52 
54  };
55 
56 }
57 
58 #endif
CPrototypeLinkEntity & GetLink(UInt32 un_index)
std::vector< CPrototypeLinkEntity * > TVector
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
CPrototypeLinkEntity::TVector & GetLinks()
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
unsigned int UInt32
32-bit unsigned integer.
Definition: datatypes.h:97
Basic class for an entity that contains other entities.
CPrototypeLinkEquippedEntity(CComposableEntity *pc_parent)
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
virtual std::string GetTypeDescription() const
Returns a string label for this class.