OpenRTM-aist  1.2.1
Public Member Functions | Protected Member Functions | List of all members
RTM::ProcessUniquePolicy Class Reference

Class for naming policy management when creating objects. More...

#include <NumberingPolicy.h>

Inheritance diagram for RTM::ProcessUniquePolicy:
Inheritance graph
[legend]
Collaboration diagram for RTM::ProcessUniquePolicy:
Collaboration graph
[legend]

Public Member Functions

 ProcessUniquePolicy ()
 Constructor. More...
 
virtual ~ProcessUniquePolicy (void)
 Destractor. More...
 
virtual std::string onCreate (void *obj)
 Create the name when creating object. More...
 
virtual void onDelete (void *obj)
 Delete the name when deleting object. More...
 
- Public Member Functions inherited from RTM::NumberingPolicyBase
virtual ~NumberingPolicyBase (void)
 Virtual destractor. More...
 

Protected Member Functions

long int find (void *obj)
 Find the object. More...
 

Detailed Description

Class for naming policy management when creating objects.

This is a class to manage the naming policy when creating objects.

Since
0.4.0

Constructor & Destructor Documentation

RTM::ProcessUniquePolicy::ProcessUniquePolicy ( )
inline

Constructor.

Constructor

virtual RTM::ProcessUniquePolicy::~ProcessUniquePolicy ( void  )
inlinevirtual

Member Function Documentation

long int RTM::ProcessUniquePolicy::find ( void *  obj)
protected

Find the object.

Find the specified object in the object list and return its index when it is stored.

Parameters
objThe target object for the find
Returns
Object index for storage

Referenced by ~ProcessUniquePolicy().

virtual std::string RTM::ProcessUniquePolicy::onCreate ( void *  obj)
virtual

Create the name when creating object.

Create the name when creating object. Create the name corresponding to the number of generated instances.

Parameters
objThe target object for the name creation
Returns
Names of the created object

Implements RTM::NumberingPolicyBase.

Referenced by ~ProcessUniquePolicy().

virtual void RTM::ProcessUniquePolicy::onDelete ( void *  obj)
virtual

Delete the name when deleting object.

Delete the name when deleting object. Substract the generated number of instances when deleting the object.

Parameters
objThe target object for the name delete

Implements RTM::NumberingPolicyBase.

Referenced by ~ProcessUniquePolicy().


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