RefleX
Build DDS Applications in Modern C++ without IDL
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
reflex_fwd.h
Go to the documentation of this file.
1 /*********************************************************************************************
2 (c) 2005-2014 Copyright, Real-Time Innovations, Inc. All rights reserved.
3 RTI grants Licensee a license to use, modify, compile, and create derivative works
4 of the Software. Licensee has the right to distribute object form only for use with RTI
5 products. The Software is provided "as is", with no warranty of any type, including
6 any warranty for fitness for any purpose. RTI is under no obligation to maintain or
7 support the Software. RTI shall not be liable for any incidental or consequential
8 damages arising out of the use or inability to use the software.
9 **********************************************************************************************/
10 
11 #ifndef RTIREFLEX_REFLEX_FWD_H
12 #define RTIREFLEX_REFLEX_FWD_H
13 
14 struct DDS_DynamicData;
15 
19 namespace reflex {
20 
21  class AutoDynamicData; // See auto_dd.h
22 
23  template <class T>
24  class SafeDynamicData; // See safe_dynamidata.h
25 
26  template <class T>
27  class SafeTypeCode; // See safe_typecode.h
28 
37  template <class T>
38  SafeTypeCode<T> make_typecode(const char * name = 0);
39 
49  template <class T>
50  void write_dynamicdata(DDS_DynamicData &dest, const T & src);
51 
60  template <class T>
61  void write_dynamicdata(AutoDynamicData &dest, const T & src);
62 
71  template <class T>
72  void read_dynamicdata(T & dest, const DDS_DynamicData & src);
73 
82  template <class T>
83  void read_dynamicdata(T & dest, const AutoDynamicData & src);
84 
89  void swap(AutoDynamicData & lhs, AutoDynamicData & rhs) throw();
90 
91  template <class T>
92  void swap(SafeDynamicData<T> & lhs, SafeDynamicData<T> & rhs) throw();
93 
94  template <class T>
95  void swap(SafeTypeCode<T> & lhs, SafeTypeCode<T> & rhs) throw();
97 
98 
103  namespace match {}
104 
105 }
106 
107 
108 
109 #endif // RTIREFLEX_REFLEX_FWD_H
void write_dynamicdata(DDS_DynamicData &dest, const T &src)
Copies source data into the destination DDS_DynamicData instance.
Definition: reflex.h:157
SafeTypeCode< T > make_typecode(const char *name)
Creates a TypeCode for structured type T.
Definition: reflex.h:175
Typesafe, exception-safe, poulated DynamicData.
Definition: reflex_fwd.h:24
Automatically manages the memory of a DynamicData instance.
Definition: auto_dd.h:33
void swap(AutoDynamicData &lhs, AutoDynamicData &rhs)
Swap the contents of two AutoDynamicData instances. Never throws.
Definition: auto_dd.cxx:106
void read_dynamicdata(T &dest, const DDS_DynamicData &src)
Extracts data out from the source DDS_DynamicData instance and copies into the destination object of ...
Definition: reflex.h:186
A type-safe, exception-safe wrapper for DDS TypeCode.
Definition: reflex_fwd.h:27