summaryrefslogtreecommitdiff
path: root/DAnCE/dance/LocalityManager/Scheduler/Deployment_Event.inl
blob: d29d6685e1770aeb23c792a5a6cf67099cfdecad (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
44
45
46
47
48
49
#ifndef DEPLOYMENT_EVENT_INL
#define DEPLOYMENT_EVENT_INL

namespace DAnCE
{
  ACE_INLINE
  Event_Result::Event_Result (void)
    : id_ (""),
      exception_ (true)
  {
  }

  ACE_INLINE
  Event_Result::Event_Result (const std::string &id,
                              bool exception)
    : id_ (id),
      exception_ (exception)
  {
  }

  ACE_INLINE
  Event_Result::Event_Result (const std::string &id,
                              bool exception,
                              ::CORBA::Any *any)
    : id_ (id),
      exception_ (exception),
      contents_ (any)
  {
  }

  ACE_INLINE
  Deployment_Event::Deployment_Event (Event_Future holder,
                                      const char *name,
                                      const char *inst_type)
    : holder_ (holder),
      name_ (name),
      instance_type_ (inst_type)
  {
  }

  ACE_INLINE
  Event_Future
  Deployment_Event::get_future (void)
  {
    return holder_;
  }
}

#endif