summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp')
-rw-r--r--modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp b/modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp
new file mode 100644
index 00000000000..30a12b438b3
--- /dev/null
+++ b/modules/CIAO/ciao/Valuetype_Factories/ConfigValue.cpp
@@ -0,0 +1,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();
+ }
+}