Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

RootOperation.h

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: 00030 RootOperation(const char *,const char *); 00031 public: 00033 virtual ~RootOperation(); 00034 00036 static RootOperation Class(); 00037 00039 virtual bool hasAttr(const std::string& name)const; 00042 virtual Atlas::Message::Element getAttr(const std::string& name) 00043 const throw (NoSuchAttrException); 00045 virtual void setAttr(const std::string& name, 00046 const Atlas::Message::Element& attr); 00048 virtual void removeAttr(const std::string& name); 00049 00051 virtual void sendContents(Atlas::Bridge* b) const; 00052 00054 virtual Atlas::Message::Element asObject() const; 00055 00057 virtual Atlas::Message::Element::MapType asMap() const; 00058 00060 inline void setSerialno(long val); 00062 inline void setRefno(long val); 00064 inline void setFrom(const std::string& val); 00066 inline void setTo(const std::string& val); 00068 inline void setSeconds(double val); 00070 inline void setFutureSeconds(double val); 00072 inline void setTimeString(const std::string& val); 00074 inline void setArgs(const Atlas::Message::Element::ListType& val); 00075 00077 inline long getSerialno() const; 00079 inline long& getSerialno(); 00081 inline long getRefno() const; 00083 inline long& getRefno(); 00085 inline const std::string& getFrom() const; 00087 inline std::string& getFrom(); 00089 inline const std::string& getTo() const; 00091 inline std::string& getTo(); 00093 inline double getSeconds() const; 00095 inline double& getSeconds(); 00097 inline double getFutureSeconds() const; 00099 inline double& getFutureSeconds(); 00101 inline const std::string& getTimeString() const; 00103 inline std::string& getTimeString(); 00105 inline const Atlas::Message::Element::ListType& getArgs() const; 00107 inline Atlas::Message::Element::ListType& getArgs(); 00108 00109 protected: 00110 long attr_serialno; 00111 long attr_refno; 00112 std::string attr_from; 00113 std::string attr_to; 00114 double attr_seconds; 00115 double attr_future_seconds; 00116 std::string attr_time_string; 00117 Atlas::Message::Element::ListType attr_args; 00118 00119 inline void sendSerialno(Atlas::Bridge*) const; 00120 inline void sendRefno(Atlas::Bridge*) const; 00121 inline void sendFrom(Atlas::Bridge*) const; 00122 inline void sendTo(Atlas::Bridge*) const; 00123 inline void sendSeconds(Atlas::Bridge*) const; 00124 inline void sendFutureSeconds(Atlas::Bridge*) const; 00125 inline void sendTimeString(Atlas::Bridge*) const; 00126 inline void sendArgs(Atlas::Bridge*) const; 00127 00128 }; 00129 00130 // 00131 // Inlined member functions follow. 00132 // 00133 00134 void RootOperation::setSerialno(long val) 00135 { 00136 attr_serialno = val; 00137 } 00138 00139 void RootOperation::setRefno(long val) 00140 { 00141 attr_refno = val; 00142 } 00143 00144 void RootOperation::setFrom(const std::string& val) 00145 { 00146 attr_from = val; 00147 } 00148 00149 void RootOperation::setTo(const std::string& val) 00150 { 00151 attr_to = val; 00152 } 00153 00154 void RootOperation::setSeconds(double val) 00155 { 00156 attr_seconds = val; 00157 } 00158 00159 void RootOperation::setFutureSeconds(double val) 00160 { 00161 attr_future_seconds = val; 00162 } 00163 00164 void RootOperation::setTimeString(const std::string& val) 00165 { 00166 attr_time_string = val; 00167 } 00168 00169 void RootOperation::setArgs(const Atlas::Message::Element::ListType& val) 00170 { 00171 attr_args = val; 00172 } 00173 00174 long RootOperation::getSerialno() const 00175 { 00176 return attr_serialno; 00177 } 00178 00179 long& RootOperation::getSerialno() 00180 { 00181 return attr_serialno; 00182 } 00183 00184 long RootOperation::getRefno() const 00185 { 00186 return attr_refno; 00187 } 00188 00189 long& RootOperation::getRefno() 00190 { 00191 return attr_refno; 00192 } 00193 00194 const std::string& RootOperation::getFrom() const 00195 { 00196 return attr_from; 00197 } 00198 00199 std::string& RootOperation::getFrom() 00200 { 00201 return attr_from; 00202 } 00203 00204 const std::string& RootOperation::getTo() const 00205 { 00206 return attr_to; 00207 } 00208 00209 std::string& RootOperation::getTo() 00210 { 00211 return attr_to; 00212 } 00213 00214 double RootOperation::getSeconds() const 00215 { 00216 return attr_seconds; 00217 } 00218 00219 double& RootOperation::getSeconds() 00220 { 00221 return attr_seconds; 00222 } 00223 00224 double RootOperation::getFutureSeconds() const 00225 { 00226 return attr_future_seconds; 00227 } 00228 00229 double& RootOperation::getFutureSeconds() 00230 { 00231 return attr_future_seconds; 00232 } 00233 00234 const std::string& RootOperation::getTimeString() const 00235 { 00236 return attr_time_string; 00237 } 00238 00239 std::string& RootOperation::getTimeString() 00240 { 00241 return attr_time_string; 00242 } 00243 00244 const Atlas::Message::Element::ListType& RootOperation::getArgs() const 00245 { 00246 return attr_args; 00247 } 00248 00249 Atlas::Message::Element::ListType& RootOperation::getArgs() 00250 { 00251 return attr_args; 00252 } 00253 00254 00255 } } } // namespace Atlas::Objects::Operation 00256 00257 #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.