8 #include <Atlas/Objects/Operation.h> 11 using Atlas::Message::MapType;
13 namespace Atlas {
namespace Objects {
namespace Operation {
15 Allocator<ActionData> ActionData::allocator;
33 return copyInstance<ActionData>(*this);
38 if(ACTION_NO == classNo)
return true;
42 void ActionData::fillDefaultObjectInstance(
ActionData& data, std::map<std::string, uint32_t>& attr_data)
71 return copyInstance<CreateData>(*this);
76 if(CREATE_NO == classNo)
return true;
80 void CreateData::fillDefaultObjectInstance(
CreateData& data, std::map<std::string, uint32_t>& attr_data)
109 return copyInstance<DeleteData>(*this);
114 if(DELETE_NO == classNo)
return true;
118 void DeleteData::fillDefaultObjectInstance(
DeleteData& data, std::map<std::string, uint32_t>& attr_data)
135 allocator.free(
this);
147 return copyInstance<SetData>(*this);
152 if(SET_NO == classNo)
return true;
156 void SetData::fillDefaultObjectInstance(
SetData& data, std::map<std::string, uint32_t>& attr_data)
173 allocator.free(
this);
185 return copyInstance<AffectData>(*this);
190 if(AFFECT_NO == classNo)
return true;
194 void AffectData::fillDefaultObjectInstance(
AffectData& data, std::map<std::string, uint32_t>& attr_data)
211 allocator.free(
this);
223 return copyInstance<HitData>(*this);
228 if(HIT_NO == classNo)
return true;
232 void HitData::fillDefaultObjectInstance(
HitData& data, std::map<std::string, uint32_t>& attr_data)
std::int64_t attr_serialno
Serial number.
std::string attr_parent
The object this inherits attributes from.
std::string attr_objtype
What kind of object this is.
void reset() override
Resets the object as it's returned to the pool.
SetData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
bool instanceOf(int classNo) const override
Is this instance of some class?
DeleteData * copy() const override
Copy this object.
HitData * copy() const override
Copy this object.
void reset() override
Resets the object as it's returned to the pool.
Sets attributes for existing entity..
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.
double attr_seconds
Time in seconds.
ActionData * copy() const override
Copy this object.
bool instanceOf(int classNo) const override
Is this instance of some class?
double attr_future_seconds
Time in seconds to add current time.
bool instanceOf(int classNo) const override
Is this instance of some class?
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.
bool instanceOf(int classNo) const override
Is this instance of some class?
Sets attributes for existing entity..
Operation for when one entity hits another..
void free() override
Free an instance of this class, returning it to the memory pool.
This is base operator for operations that might have effects..
void reset() override
Resets the object as it's returned to the pool.
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.
bool instanceOf(int classNo) const override
Is this instance of some class?
double attr_stamp
Last time this object was modified.
Create new things from nothing using this operator..
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?
void reset() override
Resets the object as it's returned to the pool.
CreateData * copy() const override
Copy this object.
std::int64_t attr_refno
Reference to serial number.
void reset() override
Resets the object as it's returned to the pool.
AffectData * copy() const override
Copy this object.