OMK::ServiceRootAccess Class Reference

Service to get the simulation root node. More...

#include <OMKServiceRootAccess.h>

Inheritance diagram for OMK::ServiceRootAccess:

Inheritance graph
[legend]
Collaboration diagram for OMK::ServiceRootAccess:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ServiceRootAccess (ObjectDescriptor *root=0)
 Stores the simulation root node.
 ~ServiceRootAccess ()
 Constructor.
virtual ObjectDescriptorgetRootObjectDescriptor ()
 To access to the root node.
virtual void setRootObjectDescriptor (ObjectDescriptor *root)
 To initalise the root node.

Protected Attributes

ObjectDescriptor_root
 to access to the root node.

Detailed Description

Service to get the simulation root node.

Example of use:

Definition at line 57 of file OMKServiceRootAccess.h.


Constructor & Destructor Documentation

ServiceRootAccess::ServiceRootAccess ( ObjectDescriptor root = 0  ) 

Stores the simulation root node.

Definition at line 26 of file OMKServiceRootAccess.cpp.

00027 : IServiceRootAccess(), 
00028   _root( root ) 
00029 {
00030 }

ServiceRootAccess::~ServiceRootAccess (  ) 

Constructor.

Definition at line 32 of file OMKServiceRootAccess.cpp.

References _root.

00033 {
00034   delete _root ;
00035 }


Member Function Documentation

ObjectDescriptor * ServiceRootAccess::getRootObjectDescriptor (  )  [virtual]

To access to the root node.

Implements OMK::IServiceRootAccess.

Definition at line 37 of file OMKServiceRootAccess.cpp.

References _root.

00038 {
00039   return _root ; 
00040 }

void ServiceRootAccess::setRootObjectDescriptor ( ObjectDescriptor root  )  [virtual]

To initalise the root node.

Implements OMK::IServiceRootAccess.

Definition at line 42 of file OMKServiceRootAccess.cpp.

References _root.

00043 { 
00044   if( _root != root ) delete _root ; 
00045   _root = root ; 
00046 }


Member Data Documentation

ObjectDescriptor* OMK::ServiceRootAccess::_root [protected]

to access to the root node.

Definition at line 70 of file OMKServiceRootAccess.h.

Referenced by getRootObjectDescriptor(), setRootObjectDescriptor(), and ~ServiceRootAccess().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:02 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007