TAO::Portable_Server::IdAssignmentStrategy Class Reference

#include <IdAssignmentStrategy.h>

Inheritance diagram for TAO::Portable_Server::IdAssignmentStrategy:

Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::IdAssignmentStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void strategy_init (TAO_Root_POA *poa)
virtual void strategy_cleanup (void)
virtual char id_assignment_key_type (void) const =0
char key_type_length (void) const
void create_key (CORBA::Octet *buffer, CORBA::ULong &starting_at)
virtual bool has_system_id (void) const =0

Detailed Description

Definition at line 31 of file IdAssignmentStrategy.h.


Member Function Documentation

void TAO::Portable_Server::IdAssignmentStrategy::create_key ( CORBA::Octet buffer,
CORBA::ULong starting_at 
)

Definition at line 33 of file IdAssignmentStrategy.cpp.

References key_type_length().

00036     {
00037       // Copy the system id byte.
00038       buffer[starting_at] = (CORBA::Octet) this->id_assignment_key_type ();
00039       starting_at += this->key_type_length ();
00040     }

virtual bool TAO::Portable_Server::IdAssignmentStrategy::has_system_id ( void   )  const [pure virtual]

Implemented in TAO::Portable_Server::IdAssignmentStrategySystem, and TAO::Portable_Server::IdAssignmentStrategyUser.

virtual char TAO::Portable_Server::IdAssignmentStrategy::id_assignment_key_type ( void   )  const [pure virtual]

Returns the key type the says which specific policy we have

Implemented in TAO::Portable_Server::IdAssignmentStrategySystem, and TAO::Portable_Server::IdAssignmentStrategyUser.

char TAO::Portable_Server::IdAssignmentStrategy::key_type_length ( void   )  const

Returns the length of the id_assignment type

Definition at line 27 of file IdAssignmentStrategy.cpp.

Referenced by create_key().

00028     {
00029       return sizeof (char);
00030     }

void TAO::Portable_Server::IdAssignmentStrategy::strategy_cleanup ( void   )  [virtual]

Implements TAO::Portable_Server::Policy_Strategy.

Definition at line 22 of file IdAssignmentStrategy.cpp.

00023     {
00024     }

void TAO::Portable_Server::IdAssignmentStrategy::strategy_init ( TAO_Root_POA poa  )  [virtual]

Implements TAO::Portable_Server::Policy_Strategy.

Definition at line 17 of file IdAssignmentStrategy.cpp.

00018     {
00019     }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:39 2010 for TAO_PortableServer by  doxygen 1.4.7