Skip to content

Commit

Permalink
Merge pull request OpenDDS#4320 from jrw972/dynamic-APIs
Browse files Browse the repository at this point in the history
Implementation of DynamicDataFactory is incomplete
  • Loading branch information
jrw972 authored Oct 25, 2023
2 parents 06c07cc + 93879ec commit 2353978
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions dds/DCPS/XTypes/DynamicDataFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ DynamicDataFactory_ptr DynamicDataFactory::get_instance()
return ACE_Singleton<DynamicDataFactory, ACE_SYNCH_MUTEX>::instance();
}

ReturnCode_t DynamicDataFactory::delete_instance()
{
return RETCODE_OK;
}

DynamicData_ptr DynamicDataFactory::create_data(DynamicType_ptr type)
{
return new OpenDDS::XTypes::DynamicDataImpl(type);
Expand Down
2 changes: 2 additions & 0 deletions dds/DCPS/XTypes/DynamicDataFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class OpenDDS_Dcps_Export DynamicDataFactory

static DynamicDataFactory_ptr get_instance();

static ReturnCode_t delete_instance();

DynamicData_ptr create_data(DynamicType_ptr type);

ReturnCode_t delete_data(DynamicData_ptr /*data*/)
Expand Down
7 changes: 3 additions & 4 deletions dds/DdsDynamicData.idl
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,10 @@ module DDS {

local interface DynamicDataFactoryInterf {
// Implemented in C++
//static DynamicDataFactory get_instance();
// Not Implemented
//static DDS::ReturnCode_t delete_instance();
// static DynamicDataFactory get_instance();
// Implemented in C++
// static DDS::ReturnCode_t delete_instance();
DynamicData create_data(in DynamicType type);
/// This is a NOP in OpenDDS
DDS::ReturnCode_t delete_data(in DynamicData data);
};

Expand Down
5 changes: 5 additions & 0 deletions docs/news.d/xtypes-dynamic-data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. news-prs: 4320
.. news-start-section: Additions
- Complete interfaces for dealing with DynamicData and DynamicTypes.
.. news-end-section

0 comments on commit 2353978

Please sign in to comment.