Atlas
0.7.0
Networking protocol for the Worldforge system.
|
Public Member Functions | |
Factories (const Factories &)=default | |
bool | hasFactory (const std::string &name) const |
Root | createObject (const std::string &name) const |
Root | createObject (const Atlas::Message::MapType &msg) const |
Root | createObject (Atlas::Message::MapType &&msg) const |
Root | getDefaultInstance (const std::string &name) const |
std::list< std::string > | getKeys () const |
int | addFactory (const std::string &name, FactoryMethod method, DefaultInstanceMethod defaultInstanceMethod) |
void | installStandardTypes () |
std::vector< Root > | parseListOfObjects (const Atlas::Message::ListType &val) const |
std::vector< Root > | parseListOfObjects (Atlas::Message::ListType &&val) const |
Definition at line 76 of file Factories.h.
Root Atlas::Objects::Factories::createObject | ( | Atlas::Message::MapType && | msg | ) | const |
Creates a new object by supplying a Map which is moved into the resulting object.
msg |
Definition at line 74 of file Factories.cpp.
Root Atlas::Objects::Factories::createObject | ( | const Atlas::Message::MapType & | msg | ) | const |
Creates a new object.
If the map that's supplied can be destroyed, look into using "createObject" with move semantics..
msg |
std::vector< Root > Atlas::Objects::Factories::parseListOfObjects | ( | const Atlas::Message::ListType & | val | ) | const |
Parses the supplied list into a vector of Root objects.
val |
Definition at line 151 of file Factories.cpp.
Referenced by Atlas::Objects::Operation::RootOperationData::setArgsAsList().