MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
PseudoClass Class Reference

This is an auxiliary to enable more verbose exception messages. More...

#include <factory/Object.h>

Public Member Functions

std::string const & getIdentifier () const
 
ObjectnewInstance (std::string const &childIdentifier) const
 Return a new instance of the class with the given identifier. More...
 
template<class CLASS >
CLASS * newInstance (std::string const &childIdentifier) const
 Return a new instance of the class with the given identifier. More...
 

Detailed Description

This is an auxiliary to enable more verbose exception messages.

Since the exception messages simply tries to call the getIdentifier() function, the Object class is required to have one.

Member Function Documentation

std::string const& getIdentifier ( ) const
inline
CLASS * newInstance ( std::string const &  childIdentifier) const
inline

Return a new instance of the class with the given identifier.

Exceptions
XFactoryLogicalIf the class is abstract.
XFactoryLogicalIf the class has no default constructor
CLASS* newInstance ( std::string const &  childIdentifier) const

Return a new instance of the class with the given identifier.

The class is casted to the desired class type.

Exceptions
XFactoryBadCastIf the cast fails
XFactoryLogicalIf the class is abstract.
XFactoryLogicalIf the class has no default constructor

The documentation for this class was generated from the following files: