summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/IdAssignmentStrategy.cpp')
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategy.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategy.cpp b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
new file mode 100644
index 00000000000..969a6bfa112
--- /dev/null
+++ b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
@@ -0,0 +1,46 @@
+// $Id$
+
+#include "tao/PortableServer/IdAssignmentStrategy.h"
+
+ACE_RCSID (PortableServer,
+ IdAssignmentStrategy,
+ "$Id$")
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ void
+ IdAssignmentStrategy::strategy_init (TAO_Root_POA * /*poa*/
+ ACE_ENV_ARG_DECL_NOT_USED)
+ {
+ }
+
+ void
+ IdAssignmentStrategy::strategy_cleanup(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ {
+ }
+
+ char
+ IdAssignmentStrategy::key_type_length (void) const
+ {
+ return sizeof (char);
+ }
+
+ void
+ IdAssignmentStrategy::create_key (
+ CORBA::Octet *buffer,
+ CORBA::ULong& starting_at)
+ {
+ // Copy the system id byte.
+ buffer[starting_at] = (CORBA::Octet) this->id_assignment_key_type ();
+ starting_at += this->key_type_length ();
+ }
+
+ }
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL