DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
UnionCase.hpp
Go to the documentation of this file.
1 /*
2  * TUnionCase.hpp
3  *
4  * Created on: Oct 24, 2012
5  * Author: angelo
6  */
7 
8 #ifndef OMG_DDS_CORE_XTYPES_UNION_CASE_HPP_
9 #define OMG_DDS_CORE_XTYPES_UNION_CASE_HPP_
10 
11 #include <dds/core/Reference.hpp>
14 
15 namespace dds {
16  namespace core {
17  namespace xtypes {
18  template <typename T, template <typename Q> class DELEGATE = detail::UnionCase>
19  class UnionCase;
20  }
21  }
22 }
23 
24 template <typename T, template <typename Q> class DELEGATE>
25 class UnionCase : public dds::core::Reference<DELEGATE<T> > {
26 public:
27  // Nil case
28  UnionCase();
29 public:
31 public:
32  T discriminator();
33  const MemberType& member();
34 };
35 
36 #endif /* OMG_DDS_CORE_XTYPES_T_UNION_CASE_HPP_ */