MIRA
|
The VacantClass object is the implementation of the Class class for classes which are NOT available since the corresponding library is NOT loaded. More...
#include <factory/VacantClass.h>
Public Member Functions | |
virtual int | getTypeId () const |
Return unique id for the class. More... | |
virtual Typename | getTypename () const |
Returns the platform independent C++ typename of the class. More... | |
virtual Object * | newInstance () const |
Return a new instance of the class associated with the class object. More... | |
virtual Object * | newInstance (int paramCount,...) const |
Return a new instance of the class associated with the class object. More... | |
virtual Object * | newInstance (std::string const &childIdentifier) const |
Return a new instance of the child class with the given identifier. More... | |
virtual Object * | newInstance (std::string const &childIdentifier, int paramCount,...) const |
Return a new instance of the child class with the given identifier. More... | |
virtual bool | isAbstract () const |
Return true if the associated class is abstract. More... | |
template<typename Reflector > | |
MIRA_SPLIT_REFLECT_MEMBER void | reflectWrite (Reflector &r) |
Implementation of class member reflection. More... | |
template<typename Reflector > | |
void | reflectRead (Reflector &r) |
template<typename Reflector > | |
void | reflectWrite (Reflector &r) |
virtual std::string const & | getIdentifier () const |
Return identifier for the class. More... | |
virtual std::string const & | getName () const |
Return name of the class. More... | |
std::map< std::string, std::string > const & | getMetaInfo () const |
Return map with meta information. More... | |
std::string const & | getMetaInfo (const std::string &meta) const |
Returns meta information for the given meta key. More... | |
bool | isClassRegistered (std::string const &classIdentifier) const |
Return true if a class with the desired identifier is registered. More... | |
void | eraseChild (Class const *const iClass) |
Remove the given child class from the class. More... | |
void | eraseParent (Class const *const iClass) |
Remove the given class from the list of parents. More... | |
ClassProxy | getClassByIdentifier (std::string const &classIdentifier) const |
Return the ClassProxy object for the desired Class. More... | |
std::vector< ClassProxy > | getClassByMeta (std::string const &metaKey, std::string const &metaValue) const |
Return vector of ClassProxy objects matching the meta criterion. More... | |
template<class T > | |
std::vector< ClassProxy > | getClassByMeta (T funcPtr) const |
Return vector of Class objects returning true for the given comparison function. More... | |
std::map< std::string, ClassProxy > | getDerivedClasses () const |
Return registered children for the associated class to the given map. More... | |
std::map< std::string, ClassProxy > | getDirectParents () const |
Return map with the direct parents of this class. More... | |
bool | isBaseOf (Class const *const derived) const |
Return true if given class is registered and derived from this class. More... | |
bool | isBaseOf (ClassProxy derived) const |
Return true if given class is registered and derived from this class. More... | |
bool | isBaseOf (std::string const &identifier) const |
Return true if given class is registered and derived from this class. More... | |
bool | isDerivedFrom (Class const *const base) const |
Return true if given class is registered and parent of this class. More... | |
bool | isDerivedFrom (ClassProxy base) const |
Return true if given class is registered and parent of this class. More... | |
bool | isDirectlyDerivedFrom (Class const *const base) const |
Return true if the given class is a direct parent. More... | |
bool | isDirectlyDerivedFrom (ClassProxy base) const |
Return true if the given class is a direct parent. More... | |
bool | isDeclaredAbstract () const |
Return true if the associated class is declared to be abstract (comparison with isAbstract() allows to detect programming errors.) More... | |
bool | isLibraryLoaded () const |
Return true if the library which contains the associated class is loaded. More... | |
bool | operator== (Class const &other) const |
Returns true, if the two classes are identical. More... | |
bool | operator!= (Class const &other) const |
Returns true, if the two classes are not identical. More... | |
bool | operator< (Class const &other) const |
Return true, if the comparison of the identifiers returns true. More... | |
Protected Member Functions | |
virtual Object * | newVAInstance (int paramCount, std::va_list) const |
This function should never be called. More... | |
Protected Attributes | |
std::map< std::string, ClassProxy > | mDerivedChildren |
map of children More... | |
std::map< std::string, ClassProxy > | mDirectParents |
map of parents More... | |
std::string | mIdentifier |
class identifier More... | |
std::string | mName |
class name More... | |
std::string | mLib |
lib name More... | |
std::map< std::string, std::string > | mMetaInfo |
meta info of class More... | |
bool | mLibLoaded |
is associated lib loaded? More... | |
Friends | |
template<typename Derived > | |
class | Deserializer |
class | ClassFactory |
class | ManifestAgent |
The VacantClass object is the implementation of the Class class for classes which are NOT available since the corresponding library is NOT loaded.
Therefore, every call of the defined functions involves the loading of the corresponding library.
|
virtual |
Return unique id for the class.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
|
virtual |
Returns the platform independent C++ typename of the class.
Implements Class.
|
virtual |
Return a new instance of the class associated with the class object.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
|
virtual |
Return a new instance of the class associated with the class object.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
|
virtual |
Return a new instance of the child class with the given identifier.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
|
virtual |
Return a new instance of the child class with the given identifier.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
|
inlinevirtual |
Return true if the associated class is abstract.
XLogical | if the corresponding lib cannot be loaded |
Implements Class.
MIRA_SPLIT_REFLECT_MEMBER void reflectWrite | ( | Reflector & | r | ) |
Implementation of class member reflection.
Attention: the abstract keyword will be evaluated (in contrast to the default Class::reflectWrite)
|
inline |
|
protectedvirtual |
|
inline |
|
virtualinherited |
Return identifier for the class.
The identifiers probably contains the namespace of the class.
Reimplemented in NullClass, and TemplateClass< CLASS >.
|
virtualinherited |
Return name of the class.
The name will not contain any informations about the class namespace (if the macro for automatic extraction of the name has been used). Otherwise the function simply returns the name given in the object macro.
Reimplemented in NullClass, and TemplateClass< CLASS >.
|
inherited |
Return map with meta information.
meta information is coded as key-value pair.
|
inherited |
Returns meta information for the given meta key.
This method is provided for convenience. If the specified meta information is not available an empty string is returned.
|
inherited |
Return true if a class with the desired identifier is registered.
|
inherited |
Remove the given child class from the class.
Calls eraseChild on all parents and removes the given class from its own child list.
|
inherited |
Remove the given class from the list of parents.
Calls eraseParent on all children and removes the given class from its own parent list.
|
inherited |
Return the ClassProxy object for the desired Class.
XFactoryUnknown | If the identifier is unknown. |
|
inherited |
Return vector of ClassProxy objects matching the meta criterion.
The returned classes matches the given metakey and metavalue.
|
inlineinherited |
Return vector of Class objects returning true for the given comparison function.
The comparison function has to take the meta information std::map<std::string, std::string> const& as argument and should return true if the meta information matches the desired criterion.
|
inherited |
Return registered children for the associated class to the given map.
|
inherited |
Return map with the direct parents of this class.
|
inherited |
Return true if given class is registered and derived from this class.
|
inherited |
Return true if given class is registered and derived from this class.
|
inherited |
Return true if given class is registered and derived from this class.
|
inherited |
Return true if given class is registered and parent of this class.
|
inherited |
Return true if given class is registered and parent of this class.
|
inherited |
Return true if the given class is a direct parent.
|
inherited |
Return true if the given class is a direct parent.
|
inherited |
Return true if the associated class is declared to be abstract (comparison with isAbstract() allows to detect programming errors.)
|
inherited |
Return true if the library which contains the associated class is loaded.
TClass classes will return true and VacantClass classes will return false.
|
inlineinherited |
Returns true, if the two classes are identical.
|
inlineinherited |
Returns true, if the two classes are not identical.
|
inlineinherited |
Return true, if the comparison of the identifiers returns true.
|
friend |
|
friend |
|
friend |
|
protectedinherited |
map of children
|
protectedinherited |
map of parents
|
protectedinherited |
class identifier
|
protectedinherited |
class name
|
protectedinherited |
lib name
|
protectedinherited |
meta info of class
|
protectedinherited |
is associated lib loaded?