00001 // This file may be redistributed and modified only under the terms of 00002 // the GNU Lesser General Public License (See COPYING for details). 00003 // Copyright 2000-2001 Stefanus Du Toit and Alistair Riddoch. 00004 // Automatically generated using gen_cc.py. 00005 00006 #ifndef ATLAS_OBJECTS_ENTITY_ROOTENTITY_H 00007 #define ATLAS_OBJECTS_ENTITY_ROOTENTITY_H 00008 00009 #include <Atlas/Objects/Root.h> 00010 00011 00012 namespace Atlas { namespace Objects { namespace Entity { 00013 00019 class RootEntity : public Root 00020 { 00021 public: 00023 RootEntity(); 00024 protected: 00026 RootEntity(const char *,const char *); 00027 public: 00029 virtual ~RootEntity(); 00030 00032 static RootEntity Class(); 00033 00035 virtual bool hasAttr(const std::string& name)const; 00038 virtual Atlas::Message::Element getAttr(const std::string& name) 00039 const throw (NoSuchAttrException); 00041 virtual void setAttr(const std::string& name, 00042 const Atlas::Message::Element& attr); 00044 virtual void removeAttr(const std::string& name); 00045 00047 virtual void sendContents(Atlas::Bridge* b) const; 00048 00050 virtual Atlas::Message::Element asObject() const; 00051 00053 virtual Atlas::Message::Element::MapType asMap() const; 00054 00056 inline void setLoc(const std::string& val); 00058 inline void setPos(const Atlas::Message::Element::ListType& val); 00060 inline void setVelocity(const Atlas::Message::Element::ListType& val); 00062 inline void setContains(const Atlas::Message::Element::ListType& val); 00064 inline void setStampContains(double val); 00065 00067 inline const std::string& getLoc() const; 00069 inline std::string& getLoc(); 00071 inline const Atlas::Message::Element::ListType& getPos() const; 00073 inline Atlas::Message::Element::ListType& getPos(); 00075 inline const Atlas::Message::Element::ListType& getVelocity() const; 00077 inline Atlas::Message::Element::ListType& getVelocity(); 00079 inline const Atlas::Message::Element::ListType& getContains() const; 00081 inline Atlas::Message::Element::ListType& getContains(); 00083 inline double getStampContains() const; 00085 inline double& getStampContains(); 00086 00087 protected: 00088 std::string attr_loc; 00089 Atlas::Message::Element::ListType attr_pos; 00090 Atlas::Message::Element::ListType attr_velocity; 00091 Atlas::Message::Element::ListType attr_contains; 00092 double attr_stamp_contains; 00093 00094 inline void sendLoc(Atlas::Bridge*) const; 00095 inline void sendPos(Atlas::Bridge*) const; 00096 inline void sendVelocity(Atlas::Bridge*) const; 00097 inline void sendContains(Atlas::Bridge*) const; 00098 inline void sendStampContains(Atlas::Bridge*) const; 00099 00100 }; 00101 00102 // 00103 // Inlined member functions follow. 00104 // 00105 00106 void RootEntity::setLoc(const std::string& val) 00107 { 00108 attr_loc = val; 00109 } 00110 00111 void RootEntity::setPos(const Atlas::Message::Element::ListType& val) 00112 { 00113 attr_pos = val; 00114 } 00115 00116 void RootEntity::setVelocity(const Atlas::Message::Element::ListType& val) 00117 { 00118 attr_velocity = val; 00119 } 00120 00121 void RootEntity::setContains(const Atlas::Message::Element::ListType& val) 00122 { 00123 attr_contains = val; 00124 } 00125 00126 void RootEntity::setStampContains(double val) 00127 { 00128 attr_stamp_contains = val; 00129 } 00130 00131 const std::string& RootEntity::getLoc() const 00132 { 00133 return attr_loc; 00134 } 00135 00136 std::string& RootEntity::getLoc() 00137 { 00138 return attr_loc; 00139 } 00140 00141 const Atlas::Message::Element::ListType& RootEntity::getPos() const 00142 { 00143 return attr_pos; 00144 } 00145 00146 Atlas::Message::Element::ListType& RootEntity::getPos() 00147 { 00148 return attr_pos; 00149 } 00150 00151 const Atlas::Message::Element::ListType& RootEntity::getVelocity() const 00152 { 00153 return attr_velocity; 00154 } 00155 00156 Atlas::Message::Element::ListType& RootEntity::getVelocity() 00157 { 00158 return attr_velocity; 00159 } 00160 00161 const Atlas::Message::Element::ListType& RootEntity::getContains() const 00162 { 00163 return attr_contains; 00164 } 00165 00166 Atlas::Message::Element::ListType& RootEntity::getContains() 00167 { 00168 return attr_contains; 00169 } 00170 00171 double RootEntity::getStampContains() const 00172 { 00173 return attr_stamp_contains; 00174 } 00175 00176 double& RootEntity::getStampContains() 00177 { 00178 return attr_stamp_contains; 00179 } 00180 00181 00182 } } } // namespace Atlas::Objects::Entity 00183 00184 #endif // ATLAS_OBJECTS_ENTITY_ROOTENTITY_H
Copyright 2000 the respective authors.
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.