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_OPERATION_ROOTOPERATION_H 00007 #define ATLAS_OBJECTS_OPERATION_ROOTOPERATION_H 00008 00009 #include <Atlas/Objects/Root.h> 00010 00011 00012 namespace Atlas { namespace Objects { namespace Operation { 00013 00023 class RootOperation : public Root 00024 { 00025 public: 00027 RootOperation(); 00028 protected: 00029 RootOperation(const std::string&,const std::string&); 00030 public: 00032 virtual ~RootOperation(); 00033 00035 static RootOperation Instantiate(); 00036 00038 virtual bool HasAttr(const std::string& name)const; 00041 virtual Atlas::Message::Object GetAttr(const std::string& name) 00042 const throw (NoSuchAttrException); 00044 virtual void SetAttr(const std::string& name, 00045 const Atlas::Message::Object& attr); 00047 virtual void RemoveAttr(const std::string& name); 00048 00050 virtual void SendContents(Atlas::Bridge* b) const; 00051 00053 virtual Atlas::Message::Object AsObject() const; 00054 00056 virtual Atlas::Message::Object::MapType AsMap() const; 00057 00059 inline void SetSerialno(long val); 00061 inline void SetRefno(long val); 00063 inline void SetFrom(const std::string& val); 00065 inline void SetTo(const std::string& val); 00067 inline void SetSeconds(double val); 00069 inline void SetFutureSeconds(double val); 00071 inline void SetTimeString(const std::string& val); 00073 inline void SetArgs(const Atlas::Message::Object::ListType& val); 00074 00076 inline long GetSerialno() const; 00078 inline long& GetSerialno(); 00080 inline long GetRefno() const; 00082 inline long& GetRefno(); 00084 inline const std::string& GetFrom() const; 00086 inline std::string& GetFrom(); 00088 inline const std::string& GetTo() const; 00090 inline std::string& GetTo(); 00092 inline double GetSeconds() const; 00094 inline double& GetSeconds(); 00096 inline double GetFutureSeconds() const; 00098 inline double& GetFutureSeconds(); 00100 inline const std::string& GetTimeString() const; 00102 inline std::string& GetTimeString(); 00104 inline const Atlas::Message::Object::ListType& GetArgs() const; 00106 inline Atlas::Message::Object::ListType& GetArgs(); 00107 00108 protected: 00109 long attr_serialno; 00110 long attr_refno; 00111 std::string attr_from; 00112 std::string attr_to; 00113 double attr_seconds; 00114 double attr_future_seconds; 00115 std::string attr_time_string; 00116 Atlas::Message::Object::ListType attr_args; 00117 00118 inline void SendSerialno(Atlas::Bridge*) const; 00119 inline void SendRefno(Atlas::Bridge*) const; 00120 inline void SendFrom(Atlas::Bridge*) const; 00121 inline void SendTo(Atlas::Bridge*) const; 00122 inline void SendSeconds(Atlas::Bridge*) const; 00123 inline void SendFutureSeconds(Atlas::Bridge*) const; 00124 inline void SendTimeString(Atlas::Bridge*) const; 00125 inline void SendArgs(Atlas::Bridge*) const; 00126 00127 }; 00128 00129 // 00130 // Inlined member functions follow. 00131 // 00132 00133 void RootOperation::SetSerialno(long val) 00134 { 00135 attr_serialno = val; 00136 } 00137 00138 void RootOperation::SetRefno(long val) 00139 { 00140 attr_refno = val; 00141 } 00142 00143 void RootOperation::SetFrom(const std::string& val) 00144 { 00145 attr_from = val; 00146 } 00147 00148 void RootOperation::SetTo(const std::string& val) 00149 { 00150 attr_to = val; 00151 } 00152 00153 void RootOperation::SetSeconds(double val) 00154 { 00155 attr_seconds = val; 00156 } 00157 00158 void RootOperation::SetFutureSeconds(double val) 00159 { 00160 attr_future_seconds = val; 00161 } 00162 00163 void RootOperation::SetTimeString(const std::string& val) 00164 { 00165 attr_time_string = val; 00166 } 00167 00168 void RootOperation::SetArgs(const Atlas::Message::Object::ListType& val) 00169 { 00170 attr_args = val; 00171 } 00172 00173 long RootOperation::GetSerialno() const 00174 { 00175 return attr_serialno; 00176 } 00177 00178 long& RootOperation::GetSerialno() 00179 { 00180 return attr_serialno; 00181 } 00182 00183 long RootOperation::GetRefno() const 00184 { 00185 return attr_refno; 00186 } 00187 00188 long& RootOperation::GetRefno() 00189 { 00190 return attr_refno; 00191 } 00192 00193 const std::string& RootOperation::GetFrom() const 00194 { 00195 return attr_from; 00196 } 00197 00198 std::string& RootOperation::GetFrom() 00199 { 00200 return attr_from; 00201 } 00202 00203 const std::string& RootOperation::GetTo() const 00204 { 00205 return attr_to; 00206 } 00207 00208 std::string& RootOperation::GetTo() 00209 { 00210 return attr_to; 00211 } 00212 00213 double RootOperation::GetSeconds() const 00214 { 00215 return attr_seconds; 00216 } 00217 00218 double& RootOperation::GetSeconds() 00219 { 00220 return attr_seconds; 00221 } 00222 00223 double RootOperation::GetFutureSeconds() const 00224 { 00225 return attr_future_seconds; 00226 } 00227 00228 double& RootOperation::GetFutureSeconds() 00229 { 00230 return attr_future_seconds; 00231 } 00232 00233 const std::string& RootOperation::GetTimeString() const 00234 { 00235 return attr_time_string; 00236 } 00237 00238 std::string& RootOperation::GetTimeString() 00239 { 00240 return attr_time_string; 00241 } 00242 00243 const Atlas::Message::Object::ListType& RootOperation::GetArgs() const 00244 { 00245 return attr_args; 00246 } 00247 00248 Atlas::Message::Object::ListType& RootOperation::GetArgs() 00249 { 00250 return attr_args; 00251 } 00252 00253 00254 } } } // namespace Atlas::Objects::Operation 00255 00256 #endif // ATLAS_OBJECTS_OPERATION_ROOTOPERATION_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.