Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DistributionChannel.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_DISTRIBUTIONCHANNEL_H_INCLUDED
2 #define SAFIR_DOB_DISTRIBUTIONCHANNEL_H_INCLUDED
3 
8 
9 #include <Safir/Dob/Item.h>
11 
12 #ifdef _MSC_VER
13 #ifdef DOTS_GENERATED_CPP_EXPORTS
14 #define GENERATED_API __declspec(dllexport)
15 #else
16 #define GENERATED_API __declspec(dllimport)
17 #ifdef _DEBUG
18 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
19 #else
20 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
21 #endif
22 #endif
23 #endif
24 #ifdef __GNUC__
25 #define GENERATED_API
26 #endif
27 
31 namespace Safir
32 {
36 namespace Dob
37 {
38 
39  class DistributionChannel; //forward declaration
40  typedef boost::shared_ptr<DistributionChannel> DistributionChannelPtr;
41  typedef boost::shared_ptr<const DistributionChannel> DistributionChannelConstPtr;
42 
45 
50  class GENERATED_API DistributionChannel : public Safir::Dob::Item
51  {
52  public:
53  //Constructors and Create routines
55  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
56  static DistributionChannelPtr Create();
57 
58  //Name
59  static Safir::Dob::Typesystem::MemberIndex NameMemberIndex();
60  static Safir::Dob::Typesystem::Int32 NameMaxStringLength();
66 
67 
68  //IncludedNodes
69  static Safir::Dob::Typesystem::MemberIndex IncludedNodesMemberIndex();
70  static Safir::Dob::Typesystem::Int32 IncludedNodesMaxStringLength();
76 
77 
78  //MulticastAddress
79  static Safir::Dob::Typesystem::MemberIndex MulticastAddressMemberIndex();
80  static Safir::Dob::Typesystem::Int32 MulticastAddressMaxStringLength();
86 
87 
89  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -280055486269545485LL;
90 
91  //Type id for DistributionChannel
92  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
93 
94  //Check if anything in the object has change flags set
95  virtual bool IsChanged();
96 
97  //Recursively set all change flags in the object
98  virtual void SetChanged(const bool changed);
99 
100 
101  //Reflection part (Don't use unless you really know what you're doing!!)
104  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
105  const Safir::Dob::Typesystem::ArrayIndex index) const;
106 
107  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
108  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
109  explicit DistributionChannel(char const * const blob);
110 
111  private:
112 
113 #ifdef _MSC_VER
114 #pragma warning (push)
115 #pragma warning (disable : 4251)
116 #endif
117 
119  Safir::Dob::Typesystem::StringContainer m_IncludedNodesMember;
120  Safir::Dob::Typesystem::StringContainer m_MulticastAddressMember;
121 
122 #ifdef _MSC_VER
123 #pragma warning (pop)
124 #endif
125  };
126 
127 } // Dob
128 } // Safir
129 
130 #endif
131 
boost::shared_ptr< const DistributionChannel > DistributionChannelConstPtr
Definition: DistributionChannel.h:41
Definition: ContainerProxies.h:38
Safir::Dob::Typesystem::ObjectContainerImpl< DistributionChannel > DistributionChannelContainer
Definition: DistributionChannel.h:43
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
Contains the definition of a distribution channel name.
Definition: DistributionChannel.h:50
Template class for all containers of automatically generated DOB objects.
Definition: ObjectContainer.h:185
Container for strings (std::wstring).
Definition: ValueContainers.h:128
Safir::Dob::Typesystem::ArrayContainer< DistributionChannelContainer > DistributionChannelContainerArray
Definition: DistributionChannel.h:44
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition: Dob/Typesystem/Defs.h:249
Base class for all Containers.
Definition: ContainerBase.h:41
The baseclass for all items.
Definition: Item.h:48
boost::shared_ptr< DistributionChannel > DistributionChannelPtr
Definition: DistributionChannel.h:39
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: DistributionChannel.h:92
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
DotsC_Int32 Int32
32 bit integer type.
Definition: Dob/Typesystem/Defs.h:69
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Dob/Typesystem/Defs.h:240
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134