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.
Atlas::Objects::Factories::Factories | ( | ) |
Definition at line 45 of file Factories.cpp.
int Atlas::Objects::Factories::addFactory | ( | const std::string & | name, |
FactoryMethod | method, | ||
DefaultInstanceMethod | defaultInstanceMethod | ||
) |
Definition at line 141 of file Factories.cpp.
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 |
Root Atlas::Objects::Factories::createObject | ( | const std::string & | name | ) | const |
Definition at line 56 of file Factories.cpp.
Root Atlas::Objects::Factories::getDefaultInstance | ( | const std::string & | name | ) | const |
Definition at line 115 of file Factories.cpp.
std::list< std::string > Atlas::Objects::Factories::getKeys | ( | ) | const |
Definition at line 125 of file Factories.cpp.
bool Atlas::Objects::Factories::hasFactory | ( | const std::string & | name | ) | const |
Definition at line 51 of file Factories.cpp.
void Atlas::Objects::Factories::installStandardTypes | ( | ) |
Definition at line 18 of file Factories_generated.cpp.
std::vector< Root > Atlas::Objects::Factories::parseListOfObjects | ( | Atlas::Message::ListType && | val | ) | const |
Definition at line 162 of file Factories.cpp.
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().