RTC::NamingManager Class Reference

NamingServer management class. More...

#include <NamingManager.h>

List of all members.

Public Member Functions

 NamingManager (Manager *manager)
 Constructor.
virtual ~NamingManager ()
 Destructor.
void registerNameServer (const char *method, const char *name_server)
 Regster the NameServer.
void bindObject (const char *name, const RTObject_impl *rtobj)
 Bind the specified objects to NamingService.
void update ()
 Update information of NamingServer.
void unbindObject (const char *name)
 Unbind the specified objects from NamingService.
void unbindAll ()
 Unbind all objects from NamingService.
std::vector
< RTObject_impl * > 
getObjects ()
 Get all bound objects.

Protected Member Functions

NamingBasecreateNamingObj (const char *method, const char *name_server)
 Create objects for NameServer management.
void bindCompsTo (NamingBase *ns)
 Register the configured component to NameServer.
void registerCompName (const char *name, const RTObject_impl *rtobj)
 Configure the components that will be registered to NameServer.
void unregisterCompName (const char *name)
 Unregister the components that will be registered to NameServer.

Protected Attributes

std::vector< Names * > m_names
 NameServer list.
ACE_Thread_Mutex m_namesMutex
std::vector< Comps * > m_compNames
 Component list.
ACE_Thread_Mutex m_compNamesMutex
Managerm_manager
 Manager object.
MedLogbuf m_MedLogbuf
 Logger mediation buffer.
LogStream rtcout
 Logger stream.

Classes

struct  Comps
 Structure for component management. More...
struct  Names
 Structure for NameServer management. More...


Detailed Description

NamingServer management class.

NamingServer management class. Manage to register and unregister components to NamingService.

Since:
0.4.0

Constructor & Destructor Documentation

RTC::NamingManager::NamingManager ( Manager manager  ) 

Constructor.

Constructor

Parameters:
manager Manager object

virtual RTC::NamingManager::~NamingManager (  )  [virtual]

Destructor.


Member Function Documentation

void RTC::NamingManager::registerNameServer ( const char *  method,
const char *  name_server 
)

Regster the NameServer.

Register NameServer by specified format. Currently. only CORBA can be specified.

Parameters:
method Format of NamingService
name_server Name of NameServer for registration

void RTC::NamingManager::bindObject ( const char *  name,
const RTObject_impl rtobj 
)

Bind the specified objects to NamingService.

Bind the specified objects to CORBA NamingService by specified names.

Parameters:
name Names at the binding
rtobj The target objects for the binding

void RTC::NamingManager::update (  ) 

Update information of NamingServer.

Update the object information registered in the specified NameServer.

void RTC::NamingManager::unbindObject ( const char *  name  ) 

Unbind the specified objects from NamingService.

Unbind the specified objects from NamingService.

Parameters:
name The target objects for the unbinding

void RTC::NamingManager::unbindAll (  ) 

Unbind all objects from NamingService.

Unbind all objects from CORBA NamingService.

std::vector<RTObject_impl*> RTC::NamingManager::getObjects (  ) 

Get all bound objects.

Get all bound objects.

Returns:
Bound object list

NamingBase* RTC::NamingManager::createNamingObj ( const char *  method,
const char *  name_server 
) [protected]

Create objects for NameServer management.

Create objects of specified type for NameServer management.

Parameters:
method NamingService format
name_server NameServer name
Returns:
Created NameServer objects

void RTC::NamingManager::bindCompsTo ( NamingBase ns  )  [protected]

Register the configured component to NameServer.

Register the already configured components to NameServer.

Parameters:
ns The target NameServer for the registration

void RTC::NamingManager::registerCompName ( const char *  name,
const RTObject_impl rtobj 
) [protected]

Configure the components that will be registered to NameServer.

Configure the components that will be registered to NameServer.

Parameters:
name Names of components at the registration
rtobj The target objects for registration

void RTC::NamingManager::unregisterCompName ( const char *  name  )  [protected]

Unregister the components that will be registered to NameServer.

Unregister the components that will be registered to NameServer.

Parameters:
name Names of the target components for unregistration


Member Data Documentation

std::vector<Names*> RTC::NamingManager::m_names [protected]

NameServer list.

ACE_Thread_Mutex RTC::NamingManager::m_namesMutex [protected]

std::vector<Comps*> RTC::NamingManager::m_compNames [protected]

Component list.

ACE_Thread_Mutex RTC::NamingManager::m_compNamesMutex [protected]

Manager* RTC::NamingManager::m_manager [protected]

Manager object.

MedLogbuf RTC::NamingManager::m_MedLogbuf [protected]

Logger mediation buffer.

LogStream RTC::NamingManager::rtcout [protected]

Logger stream.


Generated on Wed May 21 05:17:34 2008 for OpenRTM by  doxygen 1.5.3