hpp::corbaServer::ServantFactoryBase< ServantBaseType > Class Template Referenceabstract

Class used to dynamiccally cast HPP classes and create the corresponding servant. More...

#include <hpp/corbaserver/servant-base.hh>

Inheritance diagram for hpp::corbaServer::ServantFactoryBase< ServantBaseType >:
[legend]

Public Types

typedef ServantBaseType::Storage Storage
 
typedef ServantBaseType::Object_var Object_var
 

Public Member Functions

 ServantFactoryBase (const size_type &depth)
 
virtual Object_var servant (Server *server, const Storage &obj)=0
 
size_type depth () const
 Get the depth in the hierarchy tree. More...
 

Detailed Description

template<typename ServantBaseType>
class hpp::corbaServer::ServantFactoryBase< ServantBaseType >

Class used to dynamiccally cast HPP classes and create the corresponding servant.

See also
HPP_CORBASERVER_ADD_DOWNCAST_OBJECT

Member Typedef Documentation

template<typename ServantBaseType>
typedef ServantBaseType::Object_var hpp::corbaServer::ServantFactoryBase< ServantBaseType >::Object_var
template<typename ServantBaseType>
typedef ServantBaseType::Storage hpp::corbaServer::ServantFactoryBase< ServantBaseType >::Storage

Constructor & Destructor Documentation

template<typename ServantBaseType>
hpp::corbaServer::ServantFactoryBase< ServantBaseType >::ServantFactoryBase ( const size_type depth)
inline

Member Function Documentation

template<typename ServantBaseType>
size_type hpp::corbaServer::ServantFactoryBase< ServantBaseType >::depth ( ) const
inline

Get the depth in the hierarchy tree.

This allows to ensure that child classes are always handled before parent classes.

template<typename ServantBaseType>
virtual Object_var hpp::corbaServer::ServantFactoryBase< ServantBaseType >::servant ( Server server,
const Storage obj 
)
pure virtual