BaseContext Object Edition Methods
[BaseContext Related Documentations]


Detailed Description

The methods that allows to create Objects in a BaseContext. Then to edit objects, use the objects methods.


Functions

BaseObjectBaseContext::NewObject (const BaseObject::ClassDescription &_classDescription, char *_ObjectName=0L)
 Faktory Method to create a new Object in the context. All object members should be inited to default, then use BaseObject's Set methods in editable mode to modify them. You must pass a valid Class descriptor and an _ObjectName, or nothing, in which case a name will be computed according to the class. If an object with the same name exists, then a new name is computed. get the final name with BaseObject::GetName(); This method is only compiled in editable mode, in non-editable, Serialize_In() should construct everything.
void BaseContext::DestroyObject (BaseObject *_objectToDelete)
 In editable mode, it is possible to destroy an object from the context base: You got to use this method, not "delete".
void BaseContext::DestroyAllObjects ()
 Really destroy all object from the context. It should result a clean context like it it was just constructed empty.
void BaseContext::Resources_SetLinkModeToAll (bool _isLink)
 All File Resources used by objects in the context will be set as binaries Linked within the context, or not according to parameter.
void BaseContext::DestroyAllIndependantObjects (BaseObject *_pObjectWhichAllOtherShouldDependOn)
 Remove all objects that are not refered directly or indirectly by the object passed.
void BaseContext::CloneClassesAndObjects (BaseContext *_pContextToModify)
 give to _ContextToModify the same shape as this. It means, the same classes are first registered to it, and then the same objects are cloned into it.
void ClassNode::CloseAllObjects ()
 Declare all objects as if each were used with BaseObject::Close(). This can be used to force a re-creation of the whole context.


Function Documentation

void CloneClassesAndObjects BaseContext _pContextToModify  )  [inherited]
 

give to _ContextToModify the same shape as this. It means, the same classes are first registered to it, and then the same objects are cloned into it.

Parameters:
_pContextToModify to object modified to shape this.

void CloseAllObjects  )  [inherited]
 

Declare all objects as if each were used with BaseObject::Close(). This can be used to force a re-creation of the whole context.

void DestroyAllIndependantObjects BaseObject _pObjectWhichAllOtherShouldDependOn  )  [inherited]
 

Remove all objects that are not refered directly or indirectly by the object passed.

Parameters:
_pObjectWhichAllOtherShouldDependOn Object Which All Other Should Depend On.

void DestroyAllObjects  )  [inherited]
 

Really destroy all object from the context. It should result a clean context like it it was just constructed empty.

void DestroyObject BaseObject _objectToDelete  )  [inherited]
 

In editable mode, it is possible to destroy an object from the context base: You got to use this method, not "delete".

Parameters:
_objectToDelete The object to delete.

BaseObject* NewObject const BaseObject::ClassDescription _classDescription,
char *  _ObjectName = 0L
[inherited]
 

Faktory Method to create a new Object in the context. All object members should be inited to default, then use BaseObject's Set methods in editable mode to modify them. You must pass a valid Class descriptor and an _ObjectName, or nothing, in which case a name will be computed according to the class. If an object with the same name exists, then a new name is computed. get the final name with BaseObject::GetName(); This method is only compiled in editable mode, in non-editable, Serialize_In() should construct everything.

Parameters:
_classDescription the description struct of a class, like BaseObject::m_Description
_ObjectName. the objectName then used to reference it can be NULL, then a new name is computed.
Returns:
The Object Created. 0L if class unknown or anywhat.

void Resources_SetLinkModeToAll bool  _isLink  )  [inherited]
 

All File Resources used by objects in the context will be set as binaries Linked within the context, or not according to parameter.

Parameters:
_isLink true: is linked, false, is in file.


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