IdAssignmentStrategy.cpp

Go to the documentation of this file.
00001 // IdAssignmentStrategy.cpp,v 1.5 2006/03/10 07:19:13 jtc Exp
00002 
00003 #include "tao/PortableServer/IdAssignmentStrategy.h"
00004 
00005 ACE_RCSID (PortableServer,
00006            IdAssignmentStrategy,
00007            "IdAssignmentStrategy.cpp,v 1.5 2006/03/10 07:19:13 jtc Exp")
00008 
00009 
00010 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00011 
00012 namespace TAO
00013 {
00014   namespace Portable_Server
00015   {
00016     void
00017     IdAssignmentStrategy::strategy_init (TAO_Root_POA * /*poa*/
00018                                          ACE_ENV_ARG_DECL_NOT_USED)
00019     {
00020     }
00021 
00022     void
00023     IdAssignmentStrategy::strategy_cleanup(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00024     {
00025     }
00026 
00027     char
00028     IdAssignmentStrategy::key_type_length (void) const
00029     {
00030       return sizeof (char);
00031     }
00032 
00033     void
00034     IdAssignmentStrategy::create_key (
00035       CORBA::Octet *buffer,
00036       CORBA::ULong& starting_at)
00037     {
00038       // Copy the system id byte.
00039       buffer[starting_at] = (CORBA::Octet) this->id_assignment_key_type ();
00040       starting_at += this->key_type_length ();
00041     }
00042 
00043   }
00044 }
00045 
00046 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 12:40:38 2006 for TAO_PortableServer by doxygen 1.3.6