#include "b2object.H"
ObjectType instances are factory objects: They are used to create instances of sub-classes of Object. Implementors should not use ObjectType directly but instead use either ObjectTypeIncomplete or ObjectTypeComplete.
◆ get_name()
const std::string b2000::ObjectType::get_name |
( |
| ) |
const |
|
inline |
- Returns
- The name under which the object type is registered.
◆ get_subtype()
virtual ObjectType * b2000::ObjectType::get_subtype |
( |
const std::string & |
name_, |
|
|
Module & |
module_ = b2000_module |
|
) |
| |
|
inlinevirtual |
◆ is_subtype()
virtual bool b2000::ObjectType::is_subtype |
( |
const Object * |
o | ) |
|
|
inlinevirtual |
◆ is_type()
virtual bool b2000::ObjectType::is_type |
( |
const Object * |
o | ) |
|
|
inlinevirtual |
◆ new_object() [1/2]
virtual Object * b2000::ObjectType::new_object |
( |
| ) |
|
|
inlinevirtual |
◆ new_object() [2/2]
◆ normalize_name()
bool b2000::ObjectType::normalize_name |
( |
std::string & |
identifier | ) |
const |
|
inline |
Normalize the given identifier, if it matches the original name or any alias of the object, without suffix. The argument is not changed, if there is no match. The function returns whether the identifier matches the object name or not.
The documentation for this class was generated from the following file: