OpenDDS  Snapshot(2023/04/28-20:55)
DynamicDataFactory.cpp
Go to the documentation of this file.
1 /*
2  * Distributed under the OpenDDS License.
3  * See: http://www.opendds.org/license.html
4  */
5 
6 #include <DCPS/DdsDcps_pch.h>
7 
8 #ifndef OPENDDS_SAFETY_PROFILE
9 # include "DynamicDataFactory.h"
10 
11 # include "DynamicDataImpl.h"
12 
13 #include <ace/Singleton.h>
14 
15 using namespace OpenDDS::DCPS;
16 
18 namespace DDS {
19 
20 DynamicDataFactory_ptr DynamicDataFactory::get_instance()
21 {
23 }
24 
25 DynamicData_ptr DynamicDataFactory::create_data(DynamicType_ptr type)
26 {
27  return new OpenDDS::XTypes::DynamicDataImpl(type);
28 }
29 
30 DynamicDataFactory_ptr DynamicDataFactory::_duplicate(DynamicDataFactory_ptr obj)
31 {
32  if (obj) {
33  obj->_add_ref();
34  }
35  return obj;
36 }
37 
38 } // namespace DDS
40 
42 namespace TAO {
43 
44 DDS::DynamicDataFactory_ptr Objref_Traits<DDS::DynamicDataFactory>::duplicate(DDS::DynamicDataFactory_ptr p)
45 {
47 }
48 
49 void Objref_Traits<DDS::DynamicDataFactory>::release(DDS::DynamicDataFactory_ptr p)
50 {
51  CORBA::release(p);
52 }
53 
54 DDS::DynamicDataFactory_ptr Objref_Traits<DDS::DynamicDataFactory>::nil()
55 {
56  return static_cast<DDS::DynamicDataFactory_ptr>(0);
57 }
58 
59 CORBA::Boolean Objref_Traits<DDS::DynamicDataFactory>::marshal(
61 {
62  return false;
63 }
64 
65 } // namespace TAO
67 
68 #endif // OPENDDS_SAFETY_PROFILE
static DynamicDataFactory_ptr _duplicate(DynamicDataFactory_ptr obj)
#define TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void release(T x)
ACE_CDR::Boolean Boolean
The End User API.
static TYPE * instance(void)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define TAO_END_VERSIONED_NAMESPACE_DECL