summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/Activator_Info.cpp
blob: 4633fa0dfcff758ef7b054f413e2ef47ccba6045 (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
41
42
43
#include "Activator_Info.h"

Activator_Info::Activator_Info (void)
  : name ("")
  , token (0)
  , ior ("")
  , activator ()
{
}

Activator_Info::Activator_Info (const Activator_Info &other)
  : name (other.name)
  , token (other.token)
  , ior (other.ior)
  , activator (other.activator)
{
}
Activator_Info::Activator_Info (const ACE_CString& aname,
                                CORBA::Long atoken,
                                const ACE_CString& aior,
                                ImplementationRepository::Activator_ptr act)
  : name (aname)
  , token (atoken)
  , ior (aior)
  , activator (ImplementationRepository::Activator::_duplicate (act))
{
}

void
Activator_Info::clear (void)
{
  this->name = "";
  this->token = 0;
  this->ior = "";
  this->activator = ImplementationRepository::Activator::_nil ();
}

void
Activator_Info::reset_runtime (void)
{
  this->ior = "";
  this->activator = ImplementationRepository::Activator::_nil ();
}