This is an auxiliary to enable more verbose exception messages.
More...
#include <factory/Object.h>
|
| std::string const & | getIdentifier () const |
| |
| Object * | newInstance (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...
|
| |
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.
◆ getIdentifier()
| std::string const& getIdentifier |
( |
| ) |
const |
|
inline |
◆ newInstance() [1/2]
| Object * newInstance |
( |
std::string const & |
childIdentifier | ) |
const |
|
inline |
Return a new instance of the class with the given identifier.
- Exceptions
-
| XFactoryLogical | If the class is abstract. |
| XFactoryLogical | If the class has no default constructor |
◆ newInstance() [2/2]
| CLASS * newInstance |
( |
std::string const & |
childIdentifier | ) |
const |
|
inline |
Return a new instance of the class with the given identifier.
The class is casted to the desired class type.
- Exceptions
-
| XFactoryBadCast | If the cast fails |
| XFactoryLogical | If the class is abstract. |
| XFactoryLogical | If the class has no default constructor |
The documentation for this class was generated from the following files: