summaryrefslogtreecommitdiff
path: root/DAnCE/tests/LocalityManager/CircularDependency/Handler_A.cpp
blob: 901b538e506f2e63b870c151a37c586c45df234a (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// -*- C++ -*-
// $Id$

// TAO_IDL - Generated from
// be/be_codegen.cpp:1560

#include "tao/ORB_Core.h"
#include "Handler_A.h"

#include "dance/DAnCE_PropertiesC.h"

#ifdef GEN_OSTREAM_OPS
#include <iostream>
#include <sstream>
#endif /* GEN_OSTREAM_OPS */

namespace DAnCE
{
  const char *
  Handler_A_Impl::instance_type_ =
    "Handler_A";

  // Implementation skeleton constructor
  Handler_A_Impl::
  Handler_A_Impl (void)
  {
  }

  // Implementation skeleton destructor
  Handler_A_Impl::~Handler_A_Impl (void)
  {
  }

  ::CORBA::StringSeq *
  Handler_A_Impl::dependencies (void)
  {
    ::CORBA::StringSeq *retval (0);
    ACE_NEW_THROW_EX (retval,
                      ::CORBA::StringSeq (1),
                      CORBA::NO_MEMORY ());

    retval->length (1);
    (*retval)[0] = "Handler_B";

    return retval;
  }

  void
  Handler_A_Impl::close (void)
  {
  }

  char * Handler_A_Impl::instance_type (void)
  {
    DANCE_TRACE ("Handler_A_Impl::instance_type");
    return CORBA::string_dup (Handler_A_Impl::instance_type_);
  }

  void
  Handler_A_Impl::install_instance (const ::Deployment::DeploymentPlan &,
                                       ::CORBA::ULong,
                                       ::CORBA::Any_out)
  {
    throw CORBA::NO_IMPLEMENT ();
  }

  void
  Handler_A_Impl::remove_instance (const ::Deployment::DeploymentPlan &,
                                             ::CORBA::ULong,
                                             const ::CORBA::Any &)
  {
    throw CORBA::NO_IMPLEMENT ();
  }

  void
  Handler_A_Impl::connect_instance (const ::Deployment::DeploymentPlan &,
                                              ::CORBA::ULong,
                                              const ::CORBA::Any &)
  {
    throw CORBA::NO_IMPLEMENT ();
  }

  void
  Handler_A_Impl::disconnect_instance (const ::Deployment::DeploymentPlan &,
                                          ::CORBA::ULong)
  {
    throw CORBA::NO_IMPLEMENT ();
  }

  void
  Handler_A_Impl::configure (const ::Deployment::Properties &prop )
  {
    ::DAnCE::Utility::PROPERTY_MAP pmap (prop.length ());

    ::DAnCE::Utility::build_property_map (pmap,
                                          prop);
  }
}

extern "C"
{
  ::DAnCE::InstanceDeploymentHandler_ptr create_Handler_A (void)
  {
    return new DAnCE::Handler_A_Impl ();
  }
}