BaseContext Init Methods
[BaseContext Related Documentations]


Detailed Description

Init Methods for BaseContext.


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.
VirtualMachineBaseContext::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:.


Function Documentation

BaseContext void   )  [inherited]
 

Constructor.

VirtualMachine* GetMachine  )  [inline, inherited]
 

return the machine currently linked to the context.

Parameters:
_pMachine the machine then used by the context

Definition at line 155 of file BaseContext.h.

References BaseContext::m_pMachine.

void RegisterClassList const BaseObject::ClassDescription *const *  _ppclassDescriptionList  )  [inherited]
 

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);
In editable mode, you can check all class has been serialized with CheckClassListError()
Parameters:
_ppclassDescriptionList BaseObject ( and inherited class ) 's 0-ended class descriptor list.

virtual void SetMachine VirtualMachine _pMachine  )  [inline, virtual, inherited]
 

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.

Parameters:
_pMachine the machine then used by the context

Definition at line 149 of file BaseContext.h.

References BaseContext::m_pMachine.

virtual ~BaseContext void   )  [virtual, inherited]
 

Destructor.


      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/