#include <SOMEClassCatalog.h>
Public Types | |
typedef void* (* | ConstructFunc )() |
Public Methods | |
ClassCatalog (const std::string& classname, const std::string& the_category, ConstructFunc def = NULL, ConstructFunc one = NULL, ConstructFunc two = NULL) | |
void | addCategory ( std::string key, std::string value ) |
adds extra class info for programs to use to their advantage. More... | |
std::map< std::string, std::string > | getProperties () |
a programmer may want to examin contents of the class_properties. More... | |
std::string | getCategory (std::string key) |
bool | infoEquals ( std::string key, std::string value ) |
support method that returns true if the given key in class_properties equals the given value. More... | |
const std::string& | getClassName () |
const std::string& | getCategory () |
The category is a "guaranteed" property of the class. More... | |
ConstructFunc | getCtor0 () const |
ConstructFunc | getCtor1 () const |
ConstructFunc | getCtor2 () const |
template<classBaseClass> BaseClass* | construct () |
Calls the default constructor for the plugin class returns a pointer to the object. More... | |
template<classBaseClass> void | deduce_construct (BaseClass** dest_ptr) |
Calls the default constructor for the plugin class and puts the object into a pointer passed in. More... | |
template<classBaseClass, typenameParamType1> BaseClass* | construct (ParamType1& a) |
Calls the one parameter constructor for the plugin class returns a pointer to the object. More... | |
template<classBaseClass, typenameParamType1, typenameParamType2> BaseClass* | construct (ParamType1& a, ParamType2& b) |
Calls the two parameter constructor for the plugin class returns a pointer to the object. More... |
This information has little direct value to the user, and is usually just used to instantiate plugin objects by SOMEObj. However, you do have the option to get a shared_ptr from SOME::ClassCatalog to bypass the SOMEObj altogether using the construct function
Definition at line 42 of file SOMEClassCatalog.h.
|
Definition at line 47 of file SOMEClassCatalog.h. |
|
adds extra class info for programs to use to their advantage.
Definition at line 62 of file SOMEClassCatalog.h. |
|
Calls the two parameter constructor for the plugin class returns a pointer to the object. This object is dynamically allocated, so must be delete'd. We strongly recommend the use of a automatic deletion class such as std::auto_ptr or boost::shared_ptr (http://www.boost.org) you must provide the BaseClass upon calling construct as so: BaseClass* plug = class_properties.construct<BaseClass>() If the construction function does not exist or fails, the return will contain a NULL pointer Definition at line 199 of file SOMEClassCatalog.h. |
|
Calls the one parameter constructor for the plugin class returns a pointer to the object. This object is dynamically allocated, so must be delete'd. We strongly recommend the use of a automatic deletion class such as std::auto_ptr or boost::shared_ptr (http://www.boost.org) you must provide the BaseClass upon calling construct as so: BaseClass* plug = class_properties.construct<BaseClass>() If the construction function does not exist or fails, the return will contain a NULL pointer Definition at line 175 of file SOMEClassCatalog.h. |
|
Calls the default constructor for the plugin class returns a pointer to the object. This object is dynamically allocated, so must be delete'd. We strongly recommend the use of a automatic deletion class such as std::auto_ptr or boost::shared_ptr (http://www.boost.org) You must provide the BaseClass upon calling construct as so: BaseClass plug = class_properties.construct<BaseClass>() If the construction function does not exist or fails, the return will contain a NULL pointer Definition at line 130 of file SOMEClassCatalog.h. |
|
Calls the default constructor for the plugin class and puts the object into a pointer passed in. This object is dynamically allocated, so must be delete'd. We strongly recommend the use of a automatic deletion class such as std::auto_ptr or boost::shared_ptr (http://www.boost.org) This function was created because MSVC wouldn't work with construct If the construction function does not exist or fails, the shared_ptr will contain a NULL pointer Definition at line 152 of file SOMEClassCatalog.h. |
|
The category is a "guaranteed" property of the class.
Definition at line 99 of file SOMEClassCatalog.h. |
|
Definition at line 78 of file SOMEClassCatalog.h. |
|
Definition at line 94 of file SOMEClassCatalog.h. |
|
Definition at line 103 of file SOMEClassCatalog.h. |
|
Definition at line 107 of file SOMEClassCatalog.h. |
|
Definition at line 111 of file SOMEClassCatalog.h. |
|
a programmer may want to examin contents of the class_properties.
Definition at line 70 of file SOMEClassCatalog.h. |
|
support method that returns true if the given key in class_properties equals the given value.
Definition at line 87 of file SOMEClassCatalog.h. |