#include "b2object.H"
Public Member Functions | |
OBJECT * | new_object () |
OBJECT * | new_object (Allocator &allocator) |
bool | is_type (const Object *o) |
bool | is_subtype (const Object *o) |
ObjectTypeIncomplete * | get_subtype (const std::string &name_, Module &module_=b2000_module) |
![]() | |
const std::string | get_name () const |
bool | normalize_name (std::string &identifier) const |
The ObjectType class to be used for abstract sub-classes of Object. Abstract classes should define the static member "type" using ObjectTypeIncomplete.
The abstract class "Integration" derives from Object.
The static member is then initialized as follows:
|
inlinevirtual |
Get a subtype of this object type.
name_ | The name under which the subtype was registered. |
module_ | The module to search. |
If the subtype is not found in the module, an attempt to load the sub-module module_.name() + "." + name is made. If the sub-module cannot be loaded, KeyError is thrown.
Reimplemented from b2000::ObjectType.
|
inlinevirtual |
Reimplemented from b2000::ObjectType.
|
inlinevirtual |
Reimplemented from b2000::ObjectType.
|
inlinevirtual |
Create an instance of the Object sub-class that is associated with this object type.
Reimplemented from b2000::ObjectType.
|
inlinevirtual |
Create an instance of the Object sub-class that is associated with this object type.
allocator | A memory allocator object. |
Reimplemented from b2000::ObjectType.