#include <DynamicDataFactory.hpp>
Public Types | |
| using | _ref_type = typename traits<DynamicDataFactory>::ref_type |
Public Member Functions | |
| virtual FASTDDS_EXPORTED_API traits< DynamicData >::ref_type | create_data (traits< DynamicType >::ref_type type)=0 |
| Creates a new DynamicData reference based on the given DynamicType reference. | |
| virtual FASTDDS_EXPORTED_API ReturnCode_t | delete_data (traits< DynamicData >::ref_type &data)=0 |
| Resets the internal reference if it is cached. | |
Static Public Member Functions | |
| static FASTDDS_EXPORTED_API traits< DynamicDataFactory >::ref_type | get_instance () |
| Returns the singleton factory object. | |
| static FASTDDS_EXPORTED_API ReturnCode_t | delete_instance () |
| Resets the singleton reference. | |
Protected Member Functions | |
| virtual | ~DynamicDataFactory ()=default |
| using _ref_type = typename traits<DynamicDataFactory>::ref_type |
|
protectedvirtualdefault |
|
pure virtual |
Creates a new DynamicData reference based on the given DynamicType reference.
All objects returned by this operation should eventually be deleted by calling delete_data.
| [in] | type | DynamicType reference associated. |
|
pure virtual |
Resets the internal reference if it is cached.
| [in] | data | DynamicData reference whose internal cached reference to reset. |
| RETCODE_BAD_PARAMETER | if reference is nil. |
| RETCODE_OK | is otherwise returned. |
|
static |
Resets the singleton reference.
| RETCODE_BAD_PARAMETER | if singleton reference is currently nil. |
| RETCODE_OK | otherwise. |
|
static |
Returns the singleton factory object.