summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Factory
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-05-02 05:09:42 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-05-02 05:09:42 +0000
commitf923db913bcfa43c097b18e2ab83756bd381656c (patch)
tree5e42c3ef5bc8ab21193e3640f98ec17d4fcb5d3c /TAO/tests/OBV/Factory
parent2e3f5f9a79900d93195ac153789f50b223dfe81b (diff)
downloadATCD-f923db913bcfa43c097b18e2ab83756bd381656c.tar.gz
ChangeLogTag:Sat May 1 22:05:59 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tests/OBV/Factory')
-rw-r--r--TAO/tests/OBV/Factory/FactoryC_impl.cpp15
-rw-r--r--TAO/tests/OBV/Factory/FactoryC_impl.h56
2 files changed, 35 insertions, 36 deletions
diff --git a/TAO/tests/OBV/Factory/FactoryC_impl.cpp b/TAO/tests/OBV/Factory/FactoryC_impl.cpp
index 652740765c7..ee0512b4177 100644
--- a/TAO/tests/OBV/Factory/FactoryC_impl.cpp
+++ b/TAO/tests/OBV/Factory/FactoryC_impl.cpp
@@ -1,8 +1,8 @@
-// $Id$
-
#include "FactoryC_impl.h"
-ACE_RCSID(Factory, FactoryC_impl, "$Id$")
+ACE_RCSID (Factory,
+ FactoryC_impl,
+ "$Id$")
OBV_FactoryTest::Value2*
Value2_init_impl::create_default (CORBA::ULong id)
@@ -47,12 +47,13 @@ Value2_init_impl::create (
}
CORBA::ValueBase *
-Value2_init_impl::create_for_unmarshal (void)
+Value2_init_impl::create_for_unmarshal (ACE_ENV_SINGLE_ARG_DECL)
{
OBV_FactoryTest::Value2* ret_val = 0;
- ACE_NEW_RETURN (ret_val,
- Value2_impl,
- 0);
+ ACE_NEW_THROW_EX (ret_val,
+ Value2_impl,
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
return ret_val;
}
diff --git a/TAO/tests/OBV/Factory/FactoryC_impl.h b/TAO/tests/OBV/Factory/FactoryC_impl.h
index 6863db9d262..895d9fb808b 100644
--- a/TAO/tests/OBV/Factory/FactoryC_impl.h
+++ b/TAO/tests/OBV/Factory/FactoryC_impl.h
@@ -1,45 +1,43 @@
-// $Id$
+// -*- C++ -*-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/OBV/Factory
-//
-// = FILENAME
-// FactoryC_impl.h
-//
-// = AUTHOR
-// Boris Kolpackov <bosk@ipmce.ru>
-//
-// ============================================================================
+// ===================================================================
+/**
+ * @file FactoryC_impl.h
+ *
+ * $Id$
+ *
+ * @author Boris Kolpackov <bosk@ipmce.ru>
+ */
+// ===================================================================
#ifndef TAO_FACTORY_FACTORY_C_IMPL_H
#define TAO_FACTORY_FACTORY_C_IMPL_H
#include "FactoryC.h"
-// Just need to mix-in RefCounter
+/**
+ * @class Value2_impl
+ *
+ * @brief Value2 implementation.
+ *
+ * Implements the Value2 valuetype.
+ *
+ * @note Just need to mix-in RefCounter
+ */
class Value2_impl : public virtual OBV_OBV_FactoryTest::Value2,
public virtual CORBA::DefaultValueRefCountBase
{
- // = TITLE
- // Value2 implementation
- //
- // = DESCRIPTION
- // Implements the Value2 valuetype
- //
-
};
-// Factory implementation
+/**
+ * @class Value2_init_impl
+ *
+ * @brief OBV factory implementation.
+ *
+ * Implements the Value2 factory implementation.
+ */
class Value2_init_impl : public OBV_FactoryTest::Value2_init
{
- // = TITLE
- // OBV factory implementation
- //
- // = DESCRIPTION
- // Implements the Value2 factory implementation
- //
public:
virtual OBV_FactoryTest::Value2* create_default (
@@ -59,7 +57,7 @@ public:
public:
- virtual CORBA::ValueBase * create_for_unmarshal (void);
+ virtual CORBA::ValueBase * create_for_unmarshal (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
};