ZeusBase-Library  2.0.4
zeus::IXObject Class Referenceabstract

#include <IXObject.hpp>

Inheritance diagram for zeus::IXObject:
zeus::IZUnknown zeus::TXObject zeus::TAbstractXProcess zeus::TNamedContext zeus::TNamedObject zeus::TSimpleCommand zeus::TXLoaderObject zeus::TXProcTarget zeus::TXRootObject zeus::TXProcCall zeus::TXProcCopy zeus::TXProcDelete zeus::TXProcGroup zeus::TXProcProperty zeus::TModule zeus::TSystemManager zeus::TXErrorObject zeus::TXProcProject

Public Types

typedef Retval MQUALIFIER(* DltCreateXObject) (IXMLNode *pMainNode, IXMLDocument *pDocu, IXObject *&rpObj)
 

Public Member Functions

virtual void MQUALIFIER getName (IString &rstrName) const =0
 
virtual void MQUALIFIER getClassName (IString &rstrName) const =0
 
virtual Uint MQUALIFIER getID () const =0
 
virtual Retval MQUALIFIER addChild (IXObject &rChild)=0
 
virtual Retval MQUALIFIER deleteChild (Int iIndex, bool bDoFreeze=false)=0
 
virtual Retval MQUALIFIER removeChild (IXObject &rChild, bool bDoFreeze=false)=0
 
virtual Int MQUALIFIER getChildCount () const =0
 
virtual Retval MQUALIFIER getChild (Int iIndex, IXObject *&rpChild)=0
 
virtual Retval MQUALIFIER getChildByName (const IString &rstrName, IXObject *&rpChild)=0
 
virtual Retval MQUALIFIER getChildrenByName (const IString &rstrName, IXObjectCollection *&rpObjects)=0
 
virtual Retval MQUALIFIER getParent (IXObject *&rpParent) const =0
 
virtual Retval MQUALIFIER getXMLNode (IXMLNode *&rpParent) const =0
 
virtual Retval MQUALIFIER setParent (IXObject *pParent)=0
 
virtual Retval MQUALIFIER setChild (IXObject &rChild)=0
 
virtual Retval MQUALIFIER getRootObject (IXObject *&rpObj)=0
 
virtual Retval MQUALIFIER getObject (const IString &rstrPath, IXObject *&rpObj)=0
 
virtual Retval MQUALIFIER getObjects (const IString &rstrPath, IXObjectCollection *&rpObjects)=0
 
virtual bool MQUALIFIER canCreateChildren () const =0
 
virtual bool MQUALIFIER freeze ()=0
 
virtual bool MQUALIFIER unfreeze ()=0
 
virtual bool MQUALIFIER isFrozen () const =0
 
virtual void MQUALIFIER setTreeLock (ICriticalSection *pSection)=0
 
virtual void MQUALIFIER lockTree ()=0
 
virtual void MQUALIFIER unlockTree ()=0
 
virtual Retval MQUALIFIER onExecute (ISimpleCommand &rCommand, Uint uiMode)=0
 
virtual void MQUALIFIER onBroadCast (ISimpleCommand &rMessage)=0
 
virtual Retval MQUALIFIER insertChild (Int iIndex, IXObject &rChild)=0
 
virtual Int MQUALIFIER indexOfChild (IXObject &rChild)=0
 
virtual Retval MQUALIFIER createChildObject (const IString &rstrName, const IString &rstrClassName, const IString &rstrCodeModule, IXObject *&rpChild)=0
 
virtual Retval MQUALIFIER createChildObjectCustom (const IString &rstrName, const IString &rstrClassName, const IString &rstrCodeModule, const IStringList &rList, IXObject *&rpChild)=0
 
virtual Retval MQUALIFIER getCastedObject (const IString &rstrPath, const InterfaceID &rInterfaceID, IZUnknown *&rpObj)=0
 
virtual Retval MQUALIFIER readIntAttribute (const IString &rstrName, Int &riValue, Int iDefault=0) const =0
 
virtual Retval MQUALIFIER readUintAttribute (const IString &rstrName, Uint &ruiValue, Uint uiDefault=0) const =0
 
virtual Retval MQUALIFIER readFloatAttribute (const IString &rstrName, Float &rfValue, Float fDefault=0) const =0
 
virtual Retval MQUALIFIER readStringAttribute (const IString &rstrName, IString &rstrValue) const =0
 
virtual Retval MQUALIFIER readTimevalAttribute (const IString &rstrName, Timeval &rtmValue, Timeval tmDefault=0) const =0
 
virtual Retval MQUALIFIER readBoolAttribute (const IString &rstrName, bool &rbValue, bool bDefault=false) const =0
 
virtual Retval MQUALIFIER storeIntAttribute (const IString &rstrName, const Int &riValue)=0
 
virtual Retval MQUALIFIER storeUintAttribute (const IString &rstrName, const Uint &ruiValue)=0
 
virtual Retval MQUALIFIER storeFloatAttribute (const IString &rstrName, const Float &rfValue)=0
 
virtual Retval MQUALIFIER storeStringAttribute (const IString &rstrName, const IString &rstrValue)=0
 
virtual Retval MQUALIFIER storeTimevalAttribute (const IString &rstrName, const Timeval &rtmValue)=0
 
virtual Retval MQUALIFIER storeBoolAttribute (const IString &rstrName, const bool &rbValue)=0
 
virtual Int MQUALIFIER getMemberCount () const =0
 
virtual Retval MQUALIFIER getMemberVariable (Int iIndex, IXMemberVariable *&rpMember) const =0
 
virtual Retval MQUALIFIER getMemberVariableByName (const IString &rstrName, IXMemberVariable *&rpMember) const =0
 
virtual Retval MQUALIFIER addNewMemberVariable (const IString &rstrName, IXMemberVariable::EVariableType eType)=0
 
virtual Retval MQUALIFIER removeMemberVariable (const IString &rstrName)=0
 
virtual Retval MQUALIFIER getMemberObjectReference (const IString &rstrName, IXObject *&rpRef)=0
 
virtual Retval MQUALIFIER getMemberXMLNode (const IString &rstrName, IXMLNode *&rpNode) const =0
 
virtual Retval MQUALIFIER readMemberVariable (const IString &rstrName, IZVariant &rValue) const =0
 
virtual Retval MQUALIFIER storeMemberVariable (const IString &rstrName, const IZVariant &rValue)=0
 
virtual void MQUALIFIER resetMemberVariables ()=0
 
- Public Member Functions inherited from zeus::IZUnknown
virtual Retval MQUALIFIER askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface)=0
 
virtual void MQUALIFIER addRef () const =0
 
virtual void MQUALIFIER release () const =0
 

Detailed Description

This interface defines a X-Object interface. An X-Object wrapps a XML node and can be created using automated factories. X-Objects are used to created object trees and for persistent object layers using xml.

Member Typedef Documentation

§ DltCreateXObject

typedef Retval MQUALIFIER(* zeus::IXObject::DltCreateXObject) (IXMLNode *pMainNode, IXMLDocument *pDocu, IXObject *&rpObj)

Callback function definition for creation of an XObject

Parameters
pMainNodeXml node repersenting the object
pDocuXml document containing node definition
rpObjCreated object

Member Function Documentation

§ addChild()

virtual Retval MQUALIFIER zeus::IXObject::addChild ( IXObject rChild)
pure virtual

This methods adds an XObject as a child to this object

Parameters
rChildchild object to add
Return values
RET_NOERRORChild object added
RET_REQUEST_FAILEDCould not add object

Implemented in zeus::TXLoaderObject, and zeus::TXObject.

§ addNewMemberVariable()

virtual Retval MQUALIFIER zeus::IXObject::addNewMemberVariable ( const IString rstrName,
IXMemberVariable::EVariableType  eType 
)
pure virtual

Adds a new member variable to the x-object class. This method is used to design a X-Object.

Parameters
rstrNameName of the member variable
eTypeType of the member variable
Return values
RET_NOERRORMember created and added
RET_REQUEST_FAILEDInvalid name

Implemented in zeus::TXObject.

§ canCreateChildren()

virtual bool MQUALIFIER zeus::IXObject::canCreateChildren ( ) const
pure virtual

This methods checks if the children components can be created

Return values
trueAble to create children
falseDo not create children

Implemented in zeus::TXObject, and zeus::TXLoaderObject.

§ createChildObject()

virtual Retval MQUALIFIER zeus::IXObject::createChildObject ( const IString rstrName,
const IString rstrClassName,
const IString rstrCodeModule,
IXObject *&  rpChild 
)
pure virtual

creates a new child object

Parameters
rstrNameObject name
rstrClassNameName of the class
rstrCodeModuleCodemodule
rpChildReturn parameter of the child object
Return values
RET_NOERRORChild created
RET_INVALID_DATACould not generate XML data
RET_REQUEST_FAILEDCould not create child

Implemented in zeus::TXObject.

§ createChildObjectCustom()

virtual Retval MQUALIFIER zeus::IXObject::createChildObjectCustom ( const IString rstrName,
const IString rstrClassName,
const IString rstrCodeModule,
const IStringList rList,
IXObject *&  rpChild 
)
pure virtual

creates a new child object

Parameters
rstrNameObject name
rstrClassNameName of the class
rstrCodeModuleCodemodule
rListList of attribute - value pairs
rpChildReturn parameter of the child object
Return values
RET_NOERRORChild created
RET_INVALID_DATACould not generate XML data
RET_REQUEST_FAILEDCould not create child

Implemented in zeus::TXObject.

§ deleteChild()

virtual Retval MQUALIFIER zeus::IXObject::deleteChild ( Int  iIndex,
bool  bDoFreeze = false 
)
pure virtual

Deletes a child out of the list.

Parameters
iIndexIndex of child to Remove
bDoFreezeFlag to freeze the removed child. Default is false
Return values
RET_NOERRORChild deleted
RET_REQUEST_FAILEDCould not delete child.

Implemented in zeus::TXObject.

§ freeze()

virtual bool MQUALIFIER zeus::IXObject::freeze ( )
pure virtual

This method freezes a xobject. All external references has to be released at that point.

Return values
trueFreezing has been performed
falseAlready frozen

Implemented in zeus::TXObject, zeus::TSimpleCommand, zeus::TModule, zeus::TSystemManager, and zeus::TXLoaderObject.

§ getCastedObject()

virtual Retval MQUALIFIER zeus::IXObject::getCastedObject ( const IString rstrPath,
const InterfaceID rInterfaceID,
IZUnknown *&  rpObj 
)
pure virtual

This method is used to get an object from the tree. Therefor a special Syntax is used. The object will be casted to the required type. If the cast fails, this method will return the next object with the corresponding name and interface id.

Parameters
rstrPathObjectpath
rInterfaceIDID of the interface
rpObjReturn parameter of the object
Return values
RET_NOERRORobject found and returned
RET_REQUEST_FAILEDCould not find object
RET_INVALID_DATAInvalid path

Implemented in zeus::TXObject.

§ getChild()

virtual Retval MQUALIFIER zeus::IXObject::getChild ( Int  iIndex,
IXObject *&  rpChild 
)
pure virtual

Get a child object by index

Parameters
iIndexIndex of the object
rpChildReturn parameter of the found object
Return values
RET_NOERRORChild object found
RET_INVALID_PARAMETERInvalid parameter received

Implemented in zeus::TXLoaderObject, and zeus::TXObject.

§ getChildByName()

virtual Retval MQUALIFIER zeus::IXObject::getChildByName ( const IString rstrName,
IXObject *&  rpChild 
)
pure virtual

Get a child object by name

Parameters
rstrNameName of the object
rpChildReturn parameter of the found object
Return values
RET_NOERRORChild object found
RET_INVALID_PARAMETERInvalid parameter received
RET_REQUEST_FAILEDNo child found

Implemented in zeus::TXLoaderObject, and zeus::TXObject.

§ getChildCount()

virtual Int MQUALIFIER zeus::IXObject::getChildCount ( ) const
pure virtual

Get count of the children

Returns
number of children

Implemented in zeus::TXObject.

§ getChildrenByName()

virtual Retval MQUALIFIER zeus::IXObject::getChildrenByName ( const IString rstrName,
IXObjectCollection *&  rpObjects 
)
pure virtual

Get children objects by name. If the name is empty, all children of this object are returned.

Parameters
rstrNameName of the objects
rpObjectsReturn parameter of the found objects
Return values
RET_NOERRORChild objects found
RET_INVALID_PARAMETERInvalid parameter received
RET_REQUEST_FAILEDNo child found

Implemented in zeus::TXObject.

§ getClassName()

virtual void MQUALIFIER zeus::IXObject::getClassName ( IString rstrName) const
pure virtual

This methods returns the classname of the object

Parameters
rstrNamereturn parameter

Implemented in zeus::TXObject.

§ getID()

virtual Uint MQUALIFIER zeus::IXObject::getID ( ) const
pure virtual

This methods returns the id of an object

Returns
id of object

Implemented in zeus::TXObject.

§ getMemberCount()

virtual Int MQUALIFIER zeus::IXObject::getMemberCount ( ) const
pure virtual

Gets the number of member variables

Returns
Number of members

Implemented in zeus::TXObject.

§ getMemberObjectReference()

virtual Retval MQUALIFIER zeus::IXObject::getMemberObjectReference ( const IString rstrName,
IXObject *&  rpRef 
)
pure virtual

Returns the object reference if the member value is of type 'ref'. The Reference attribute of the member node contains the X-Object path of the requested object. This method is not const since reading a X-Object can change the X-Object tree (see XLoaderObject).

Parameters
rstrNameName of the member variable
rpRefReturn value
Return values
RET_NOERRORobject found and returned
RET_INVALID_PARAMETERno such member found. Name is invalid.
RET_INVALID_TYPEInvalid type. Must be 'ref'.
RET_REQUEST_FAILEDNo such object found.

Implemented in zeus::TXObject.

§ getMemberVariable()

virtual Retval MQUALIFIER zeus::IXObject::getMemberVariable ( Int  iIndex,
IXMemberVariable *&  rpMember 
) const
pure virtual

Returns the indexed member variable

Parameters
iIndexIndex of the member
rpMemberMember description object
Return values
RET_NOERRORMember returned
RET_REQUEST_FAILEDCould not find such a member

Implemented in zeus::TXObject.

§ getMemberVariableByName()

virtual Retval MQUALIFIER zeus::IXObject::getMemberVariableByName ( const IString rstrName,
IXMemberVariable *&  rpMember 
) const
pure virtual

Returns the a member variable by name

Parameters
rstrNameName of the member
rpMemberMember description object
Return values
RET_NOERRORMember returned
RET_REQUEST_FAILEDCould not find such a member

Implemented in zeus::TXObject.

§ getMemberXMLNode()

virtual Retval MQUALIFIER zeus::IXObject::getMemberXMLNode ( const IString rstrName,
IXMLNode *&  rpNode 
) const
pure virtual

This returns the XML node of a requested member variable. The type of the variable must be 'xml'.

Parameters
rstrNameName of the member variable
rpNodeReturn value
Return values
RET_NOERRORXML Node returned
RET_INVALID_PARAMETERno such member found. Name is invalid
RET_INVALID_TYPEType is not 'xml'

Implemented in zeus::TXObject.

§ getName()

virtual void MQUALIFIER zeus::IXObject::getName ( IString rstrName) const
pure virtual

This methods returns the name of the object

Parameters
rstrNamereturn parameter

Implemented in zeus::TSystemManager, zeus::TModule, and zeus::TXObject.

§ getObject()

virtual Retval MQUALIFIER zeus::IXObject::getObject ( const IString rstrPath,
IXObject *&  rpObj 
)
pure virtual

This method is used to get an object from the tree. Therefor a special Syntax is used.

Parameters
rstrPathPath of the object inside the xobject tree
rpObjReturn parameter of the object
Return values
RET_NOERRORobject found and returned
RET_REQUEST_FAILEDCould not find object
RET_INVALID_DATAInvalid path

Implemented in zeus::TXObject.

§ getObjects()

virtual Retval MQUALIFIER zeus::IXObject::getObjects ( const IString rstrPath,
IXObjectCollection *&  rpObjects 
)
pure virtual

This method is used to get an object list from the tree. Therefor a special Syntax is used.

Parameters
rstrPathPath of the object inside the xobject tree
rpObjectsReturn parameter of the objects
Return values
RET_NOERRORobject list returned (maybe empty)
RET_REQUEST_FAILEDno object list returned (maybe invalid xpath)

Implemented in zeus::TXObject.

§ getParent()

virtual Retval MQUALIFIER zeus::IXObject::getParent ( IXObject *&  rpParent) const
pure virtual

Get the parent object

Parameters
rpParentReturn parameter of the found object
Return values
RET_NOERRORparent found
RET_REQUEST_FAILEDNo parent found -> this is the root object

Implemented in zeus::TXObject.

§ getRootObject()

virtual Retval MQUALIFIER zeus::IXObject::getRootObject ( IXObject *&  rpObj)
pure virtual

Returns the root object of the object tree.

Parameters
rpObjReturn parameter of the root object
Return values
RET_NOERRORRoot object returned
RET_INVALID_PARAMETERInvalid parameter received;

Implemented in zeus::TXObject.

§ getXMLNode()

virtual Retval MQUALIFIER zeus::IXObject::getXMLNode ( IXMLNode *&  rpParent) const
pure virtual

Get the xml node of the xobject

Parameters
rpParentreturn parameter of the xml node
Return values
RET_NOERRORnode returned
RET_REQUEST_FAILEDCould not get the xml node

Implemented in zeus::TXObject.

§ indexOfChild()

virtual Int MQUALIFIER zeus::IXObject::indexOfChild ( IXObject rChild)
pure virtual

This method returns the index of a child object

Parameters
rChildChild reference
Return values
>=0index of child in the list
-1the child does not exists inside the list.

Implemented in zeus::TXObject.

§ insertChild()

virtual Retval MQUALIFIER zeus::IXObject::insertChild ( Int  iIndex,
IXObject rChild 
)
pure virtual

This method inserts a child to the parent object. The child will be added at the insert position. If the insert position is bigger than the child list, it will add the child at the end of the list.

Parameters
iIndexInsert position of the child
rChildChild reference
Return values
RET_NOERRORChild inserted
RET_REQUEST_FAILEDCould not inset the child object

Implemented in zeus::TXObject, and zeus::TXLoaderObject.

§ isFrozen()

virtual bool MQUALIFIER zeus::IXObject::isFrozen ( ) const
pure virtual

Checks if a xobject is frozen.

Return values
truexobject is frozen
falsexobject is alive

Implemented in zeus::TXObject.

§ lockTree()

virtual void MQUALIFIER zeus::IXObject::lockTree ( )
pure virtual

This locks the xobject tree. Before using this method, set a lock object using setTreeLock()

Implemented in zeus::TXObject.

§ onBroadCast()

virtual void MQUALIFIER zeus::IXObject::onBroadCast ( ISimpleCommand rMessage)
pure virtual

Handles and sents a broad cast message to all its children.

Parameters
rMessageMessage to perform

Implemented in zeus::TXObject.

§ onExecute()

virtual Retval MQUALIFIER zeus::IXObject::onExecute ( ISimpleCommand rCommand,
Uint  uiMode 
)
pure virtual

Executes a simple command. This can be used as a action method

Parameters
rCommandCommand to execute
uiModeMode of execution
Return values
RET_NOERRORCommand executed
RET_REQUEST_FAILEDCommand has not been understand

Implemented in zeus::TXObject.

§ readBoolAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readBoolAttribute ( const IString rstrName,
bool &  rbValue,
bool  bDefault = false 
) const
pure virtual

Returns a bool attribute of the object.

Parameters
rstrNameName of the attribute
rbValueReturn value
bDefaultDefault value if the attribute can not be converted
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ readFloatAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readFloatAttribute ( const IString rstrName,
Float &  rfValue,
Float  fDefault = 0 
) const
pure virtual

Returns a float attribute of the object.

Parameters
rstrNameName of the attribute
rfValueReturn value
fDefaultDefault value if the attribute can not be converted
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ readIntAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readIntAttribute ( const IString rstrName,
Int &  riValue,
Int  iDefault = 0 
) const
pure virtual

Returns an integer attribute of the object.

Parameters
rstrNameName of the attribute
riValueReturn value
iDefaultDefault value if the attribute can not be converted
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ readMemberVariable()

virtual Retval MQUALIFIER zeus::IXObject::readMemberVariable ( const IString rstrName,
IZVariant rValue 
) const
pure virtual

Returns an member variable of the object.

Parameters
rstrNameName of the member variable
rValueReturn value
Return values
RET_NOERRORmember returned
RET_INVALID_PARAMETERno such member found. Name is invalid
RET_INVALID_TYPEInvalid member type. Could not get value.

Implemented in zeus::TXObject.

§ readStringAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readStringAttribute ( const IString rstrName,
IString rstrValue 
) const
pure virtual

Returns a string attribute of the object.

Parameters
rstrNameName of the attribute
rstrValueReturn value
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ readTimevalAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readTimevalAttribute ( const IString rstrName,
Timeval &  rtmValue,
Timeval  tmDefault = 0 
) const
pure virtual

Returns a timeval attribute of the object.

Parameters
rstrNameName of the attribute
rtmValueReturn value
tmDefaultDefault value if the attribute can not be converted
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ readUintAttribute()

virtual Retval MQUALIFIER zeus::IXObject::readUintAttribute ( const IString rstrName,
Uint &  ruiValue,
Uint  uiDefault = 0 
) const
pure virtual

Returns an unsigned integer attribute of the object.

Parameters
rstrNameName of the attribute
ruiValueReturn value
uiDefaultDefault value if the attribute can not be converted
Return values
RET_NOERRORAttribute returned
RET_REQUEST_FAILEDNo such attribute found

Implemented in zeus::TXObject.

§ removeChild()

virtual Retval MQUALIFIER zeus::IXObject::removeChild ( IXObject rChild,
bool  bDoFreeze = false 
)
pure virtual

This methods removes an XObject

Parameters
rChildchild object to remove
bDoFreezeFlag to freeze the removed child. Default is false
Return values
RET_NOERRORChild removed
RET_REQUEST_FAILEDCould not remove child.

Implemented in zeus::TXObject.

§ removeMemberVariable()

virtual Retval MQUALIFIER zeus::IXObject::removeMemberVariable ( const IString rstrName)
pure virtual

Removes a member variable from this X-Object. This method is used to design a X-Object.

Parameters
rstrNameName of the member variable
Return values
RET_NOERRORMember removed
RET_REQUEST_FAILEDMember not found

Implemented in zeus::TXObject.

§ resetMemberVariables()

virtual void MQUALIFIER zeus::IXObject::resetMemberVariables ( )
pure virtual

Resets the list of member variables. This is nessecary if the XMember structure of the XML changes. This might happen during a synchronizing process of the XObjectTreeSynchronizing.

Implemented in zeus::TXObject.

§ setChild()

virtual Retval MQUALIFIER zeus::IXObject::setChild ( IXObject rChild)
pure virtual

This methods sets an XObject as a child of this object. Do not use this method. Its only used by the factory creating the tree. Therefor the xml structure wont be touched. For adding children, use the method addChild() instead. It will update the xml structure as well.

Parameters
rChildchild object to add
Return values
RET_NOERRORChild object added
RET_REQUEST_FAILEDCould not add child

Implemented in zeus::TXObject.

§ setParent()

virtual Retval MQUALIFIER zeus::IXObject::setParent ( IXObject pParent)
pure virtual

Set the parent object. Only for internal use

Parameters
pParentParameter to set. If NULL is set, the object resets its parent
Return values
RET_NOERRORparent set
RET_REQUEST_FAILEDCould not set the parent

Implemented in zeus::TXObject.

§ setTreeLock()

virtual void MQUALIFIER zeus::IXObject::setTreeLock ( ICriticalSection pSection)
pure virtual

This method sets a lock for the whole XObject tree. This enables a secure multithreading access to the xobject tree.

Parameters
pSectionLock object

Implemented in zeus::TXObject.

§ storeBoolAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeBoolAttribute ( const IString rstrName,
const bool &  rbValue 
)
pure virtual

Stores a bool attribute of the object. The value will be stored as 0 for false, or 1 for true.

Parameters
rstrNameName of the attribute
rbValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ storeFloatAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeFloatAttribute ( const IString rstrName,
const Float &  rfValue 
)
pure virtual

Stores a float attribute of the object.

Parameters
rstrNameName of the attribute
rfValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ storeIntAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeIntAttribute ( const IString rstrName,
const Int &  riValue 
)
pure virtual

Stores an integer attribute of the object.

Parameters
rstrNameName of the attribute
riValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ storeMemberVariable()

virtual Retval MQUALIFIER zeus::IXObject::storeMemberVariable ( const IString rstrName,
const IZVariant rValue 
)
pure virtual

Stores an member variable of the object.

Parameters
rstrNameName of the member variable
rValueReturn value
Return values
RET_NOERRORmember stored
RET_INVALID_PARAMETERno such member found. Name is invalid
RET_INVALID_TYPEInvalid member type. Could not get value.

Implemented in zeus::TXObject.

§ storeStringAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeStringAttribute ( const IString rstrName,
const IString rstrValue 
)
pure virtual

Stores a string attribute of the object.

Parameters
rstrNameName of the attribute
rstrValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ storeTimevalAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeTimevalAttribute ( const IString rstrName,
const Timeval &  rtmValue 
)
pure virtual

Stores a timeval attribute of the object.

Parameters
rstrNameName of the attribute
rtmValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ storeUintAttribute()

virtual Retval MQUALIFIER zeus::IXObject::storeUintAttribute ( const IString rstrName,
const Uint &  ruiValue 
)
pure virtual

Stores an unsigned integer attribute of the object.

Parameters
rstrNameName of the attribute
ruiValuevalue to store
Return values
RET_NOERRORAttribute stored
RET_REQUEST_FAILEDStoring attribute failed

Implemented in zeus::TXObject.

§ unfreeze()

virtual bool MQUALIFIER zeus::IXObject::unfreeze ( )
pure virtual

This method unfreezes a xobject. The external References begin to live and are accecible for others.

Return values
trueUnfreezing has been performed
falseAlready unfrozen

Implemented in zeus::TXObject, zeus::TModule, zeus::TSystemManager, zeus::TXLoaderObject, and zeus::TXErrorObject.

§ unlockTree()

virtual void MQUALIFIER zeus::IXObject::unlockTree ( )
pure virtual

Unlocks the xobject tree

Implemented in zeus::TXObject.


The documentation for this class was generated from the following file:


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Tue Sep 13 2016 22:31:43