summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp
blob: 30a12b438b39f579cf962d7e735c5d3b191b49bc (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
// $Id$
#include "ConfigValue.h"

ACE_RCSID (ciao,
           ConfigValue,
           "$Id$")

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();
   }
}