Atlas  0.7.0
Networking protocol for the Worldforge system.
RootOperationChildren6.cpp
1 // This file may be redistributed and modified only under the terms of
2 // the GNU Lesser General Public License (See COPYING for details).
3 // Copyright 2000-2001 Stefanus Du Toit and Aloril.
4 // Copyright 2001-2005 Alistair Riddoch.
5 // Copyright 2011-2020 Erik Ogenvik.
6 // Automatically generated using gen_cpp.py. Don't edit directly.
7 
8 #include <Atlas/Objects/Operation.h>
9 
11 using Atlas::Message::MapType;
12 
13 namespace Atlas { namespace Objects { namespace Operation {
14 
15 Allocator<ErrorData> ErrorData::allocator;
16 
17 
18 
20 {
21  allocator.free(this);
22 }
23 
24 
25 
27 {
29 }
30 
32 {
33  return copyInstance<ErrorData>(*this);
34 }
35 
36 bool ErrorData::instanceOf(int classNo) const
37 {
38  if(ERROR_NO == classNo) return true;
39  return InfoData::instanceOf(classNo);
40 }
41 
42 void ErrorData::fillDefaultObjectInstance(ErrorData& data, std::map<std::string, uint32_t>& attr_data)
43 {
44  data.attr_objtype = default_objtype;
45  data.attr_serialno = 0;
46  data.attr_refno = 0;
47  data.attr_seconds = 0.0;
48  data.attr_future_seconds = 0.0;
49  data.attr_stamp = 0.0;
50  data.attr_parent = default_parent;
51 }
52 
53 Allocator<ChangeData> ChangeData::allocator;
54 
55 
56 
58 {
59  allocator.free(this);
60 }
61 
62 
63 
65 {
67 }
68 
70 {
71  return copyInstance<ChangeData>(*this);
72 }
73 
74 bool ChangeData::instanceOf(int classNo) const
75 {
76  if(CHANGE_NO == classNo) return true;
77  return InfoData::instanceOf(classNo);
78 }
79 
80 void ChangeData::fillDefaultObjectInstance(ChangeData& data, std::map<std::string, uint32_t>& attr_data)
81 {
82  data.attr_objtype = default_objtype;
83  data.attr_serialno = 0;
84  data.attr_refno = 0;
85  data.attr_seconds = 0.0;
86  data.attr_future_seconds = 0.0;
87  data.attr_stamp = 0.0;
88  data.attr_parent = default_parent;
89 }
90 
91 } } } // namespace Atlas::Objects::Operation
An operation used to signal to clients when things such as types have changed..
Definition: Operation.h:1952
bool instanceOf(int classNo) const override
Is this instance of some class?
ChangeData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
void free() override
Free an instance of this class, returning it to the memory pool.
void free() override
Free an instance of this class, returning it to the memory pool.
void reset() override
Resets the object as it's returned to the pool.
bool instanceOf(int classNo) const override
Is this instance of some class?
ErrorData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
void reset() override
Resets the object as it's returned to the pool.
double attr_future_seconds
Time in seconds to add current time.
std::int64_t attr_refno
Reference to serial number.
std::int64_t attr_serialno
Serial number.
std::string attr_objtype
What kind of object this is.
Definition: Root.h:129
std::string attr_parent
The object this inherits attributes from.
Definition: Root.h:125
double attr_stamp
Last time this object was modified.
Definition: Root.h:127
Definition: Bridge.h:20