summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp
blob: 79dbb0f6e21f4a9fbe60fdf7e13f5de36e1328d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// -*- C++ -*-
// $Id$

#include "tao/PortableServer/IdAssignmentStrategySystem.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Portable_Server
  {
    char
    IdAssignmentStrategySystem::id_assignment_key_type (void) const
    {
      return 'S';
    }

    bool
    IdAssignmentStrategySystem::has_system_id (void) const
    {
      return true;
    }
  }
}

ACE_FACTORY_NAMESPACE_DEFINE (
  ACE_Local_Service,
  IdAssignmentStrategySystem,
  TAO::Portable_Server::IdAssignmentStrategySystem)

ACE_STATIC_SVC_DEFINE (
  IdAssignmentStrategySystem,
  ACE_TEXT ("IdAssignmentStrategySystem"),
  ACE_SVC_OBJ_T,
  &ACE_SVC_NAME (IdAssignmentStrategySystem),
  ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
  0)

TAO_END_VERSIONED_NAMESPACE_DECL