summaryrefslogtreecommitdiff
path: root/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp
blob: 3e5c02f15d98cdb7da4c6af64795a4510a153a77 (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
// $Id$

#include "ConfigValue.h"

namespace CIAO
{
   ConfigValue_impl::ConfigValue_impl()
   {
      CORBA::Any any;
      any <<= CORBA::Short(0);
      name((const char*)"");
      value(any);
   }


   ConfigValue_impl::ConfigValue_impl(const char*       the_name,
                                      const CORBA::Any& the_value)
      : OBV_Components::ConfigValue()
   {
      CORBA::Any any = the_value;
      name (the_name);
      value (any);
   }

   CORBA::ValueBase* ConfigValue_impl::_copy_value()
   {
      return new ConfigValue_impl(name(),value());
   }

   ConfigValue_impl::~ConfigValue_impl()
      throw ()
   {
   }

   CORBA::ValueBase *
   ConfigValueFactory::create_for_unmarshal ()
   {
      return new ConfigValue_impl();
   }
}