Functions | |
BaseContext::BaseContext (void) | |
Constructor. | |
virtual | BaseContext::~BaseContext (void) |
Destructor. | |
virtual void | BaseContext::SetMachine (VirtualMachine *_pMachine) |
Link a VirtualMachine object to the Context, to provide a hardware/API abstraction that objects will use. You must use this after the constructor and before serialization or any edition. the context DOES NOT manage machine object destruction. so don't destroy it 'till context is destroyed. | |
VirtualMachine * | BaseContext::GetMachine () |
return the machine currently linked to the context. | |
void | ClassNode::RegisterClassList (const BaseObject::ClassDescription *const *_ppclassDescriptionList) |
Register a 0-ended list of static class descriptors ( BaseObject::ClassDescription ) from objects inherited from BaseObject, to the context, down the class tree. It is used by to register the classes in a context, before any serialization or context edition. IMPORTANT: You must register the classes in an order so that the inherited classes are set after their parents. BaseContext registers BaseObject itself in its constructor. It can look like:. |
|
Constructor.
|
|
return the machine currently linked to the context.
Definition at line 155 of file BaseContext.h. References BaseContext::m_pMachine. |
|
Register a 0-ended list of static class descriptors ( BaseObject::ClassDescription ) from objects inherited from BaseObject, to the context, down the class tree. It is used by to register the classes in a context, before any serialization or context edition. IMPORTANT: You must register the classes in an order so that the inherited classes are set after their parents. BaseContext registers BaseObject itself in its constructor. It can look like:.
const BaseObject::ClassDescription * const descTable[]= { // standard class from VedaLib: & VirtualMedia::m_Description, & MediaTimePattern::m_Description, // class built over VirtualMedia. & MyClassInheritingBaseObject::m_Description, 0L }; BaseContext myContext; myContext.RegisterClassList(descTable);
|
|
Link a VirtualMachine object to the Context, to provide a hardware/API abstraction that objects will use. You must use this after the constructor and before serialization or any edition. the context DOES NOT manage machine object destruction. so don't destroy it 'till context is destroyed.
Definition at line 149 of file BaseContext.h. References BaseContext::m_pMachine. |
|
Destructor.
|
/\/\ 4 N k ! N D _______ _ __ ___ _____ ___ _ _ ____ ___________ __//___ /________ |/ / ___________\_______/ \ / _ _ \/ _ / _ / _/_/____/ _ __ / / / / / / / \ \/ / / \ \ / \\___/___/___/ ¯ _____/_____/ ______\___/_____/\________\\ \________/_ ___ __ l____\ /elD! http://www.m4nkind.com \____/