RefleX
Build DDS Applications in Modern C++ without IDL
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Macros
dd_extra.cxx File Reference
#include <iostream>
#include <map>
#include <stdexcept>
#include <sstream>
#include "reflex/dllexport.h"
#include "reflex/dd_extra.h"
#include "reflex/dd_manip.h"

Namespaces

 reflex
 The top-level namespace for all the RefleX APIs.
 

Macros

#define SET_SEQUENCE_DEF(DDS_SEQ_TYPE, FUNCTION)
 
#define GET_SEQUENCE_DEF(DDS_SEQ_TYPE, FUNCTION)
 
#define SET_ARRAY_DEF(BASIC_TYPE, DDS_TYPE, FUNCTION)
 
#define GET_ARRAY_DEF(BASIC_TYPE, DDS_TYPE, FUNCTION)
 

Macro Definition Documentation

#define GET_ARRAY_DEF (   BASIC_TYPE,
  DDS_TYPE,
  FUNCTION 
)
Value:
REFLEX_INLINE DDS_ReturnCode_t get_array( \
const DDS_DynamicData & instance, \
BASIC_TYPE *array, \
DDS_UnsignedLong *length, \
const MemberAccess &ma) \
{ \
if(ma.access_by_id()) \
return instance.FUNCTION(reinterpret_cast<DDS_TYPE *>(array), \
length, NULL, ma.get_id()); \
else \
return instance.FUNCTION(reinterpret_cast<DDS_TYPE *>(array), \
length, ma.get_name(), \
DDS_DYNAMIC_DATA_MEMBER_ID_UNSPECIFIED); \
}
#define REFLEX_INLINE
Definition: dllexport.h:38
#define GET_SEQUENCE_DEF (   DDS_SEQ_TYPE,
  FUNCTION 
)
Value:
REFLEX_INLINE DDS_ReturnCode_t get_sequence( \
const DDS_DynamicData & instance, \
DDS_SEQ_TYPE &seq, \
const MemberAccess &ma) \
{ \
if(ma.access_by_id()) \
return instance.FUNCTION(seq, NULL, ma.get_id()); \
else \
return instance.FUNCTION(seq, ma.get_name(), \
DDS_DYNAMIC_DATA_MEMBER_ID_UNSPECIFIED); \
}
#define REFLEX_INLINE
Definition: dllexport.h:38
#define SET_ARRAY_DEF (   BASIC_TYPE,
  DDS_TYPE,
  FUNCTION 
)
Value:
REFLEX_INLINE DDS_ReturnCode_t set_array( \
DDS_DynamicData &instance, \
const MemberAccess &ma, \
DDS_UnsignedLong length, \
const BASIC_TYPE *array) \
{ \
if(ma.access_by_id()) \
return instance.FUNCTION(NULL, ma.get_id(), length, \
reinterpret_cast<const DDS_TYPE *>(array)); \
else \
return instance.FUNCTION(ma.get_name(), \
DDS_DYNAMIC_DATA_MEMBER_ID_UNSPECIFIED, \
length, \
reinterpret_cast<const DDS_TYPE *>(array)); \
}
#define REFLEX_INLINE
Definition: dllexport.h:38
#define SET_SEQUENCE_DEF (   DDS_SEQ_TYPE,
  FUNCTION 
)
Value:
REFLEX_INLINE DDS_ReturnCode_t set_sequence( \
DDS_DynamicData &instance, \
const MemberAccess &ma, \
const DDS_SEQ_TYPE &value) \
{ \
if(ma.access_by_id()) \
return instance.FUNCTION(NULL, ma.get_id(), value); \
else \
return instance.FUNCTION(ma.get_name(), \
DDS_DYNAMIC_DATA_MEMBER_ID_UNSPECIFIED, \
value); \
}
#define REFLEX_INLINE
Definition: dllexport.h:38