IdAssignmentStrategy.cpp

Go to the documentation of this file.
00001 // $Id: IdAssignmentStrategy.cpp 76551 2007-01-24 13:42:44Z johnnyw $
00002 
00003 #include "tao/PortableServer/IdAssignmentStrategy.h"
00004 
00005 ACE_RCSID (PortableServer,
00006            IdAssignmentStrategy,
00007            "$Id: IdAssignmentStrategy.cpp 76551 2007-01-24 13:42:44Z johnnyw $")
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     {
00019     }
00020 
00021     void
00022     IdAssignmentStrategy::strategy_cleanup(void)
00023     {
00024     }
00025 
00026     char
00027     IdAssignmentStrategy::key_type_length (void) const
00028     {
00029       return sizeof (char);
00030     }
00031 
00032     void
00033     IdAssignmentStrategy::create_key (
00034       CORBA::Octet *buffer,
00035       CORBA::ULong& starting_at)
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     }
00041 
00042   }
00043 }
00044 
00045 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7