Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DistributionChannelParameters.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_DISTRIBUTIONCHANNELPARAMETERS_H_INCLUDED
2 #define SAFIR_DOB_DISTRIBUTIONCHANNELPARAMETERS_H_INCLUDED
3 
8 
12 
13 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
14 
15 #ifdef dots_generated_Safir_cpp_EXPORTS
16 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
17 #else
18 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
19 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
20 # include <Safir/Utilities/Internal/AutoLink.h>
21 #endif
22 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
23 
27 namespace Safir
28 {
32 namespace Dob
33 {
34 
35  class DistributionChannelParameters; //forward declaration
36  typedef boost::shared_ptr<DistributionChannelParameters> DistributionChannelParametersPtr;
37  typedef boost::shared_ptr<const DistributionChannelParameters> DistributionChannelParametersConstPtr;
38 
41 
47  {
48  public:
49  //Constructors and Create routines
51  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
52  static DistributionChannelParametersPtr Create();
53 
54  //DistributionChannels
55  static Safir::Dob::Typesystem::ArrayIndex DistributionChannelsArraySize();
67  static Safir::Dob::DistributionChannelPtr DistributionChannels(const Safir::Dob::Typesystem::ArrayIndex index);
68 
70  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -8530922450979563010LL;
71 
72  //Type id for DistributionChannelParameters
73  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
74 
75  //Check if anything in the object has change flags set
76  virtual bool IsChanged();
77 
78  //Recursively set all change flags in the object
79  virtual void SetChanged(const bool changed);
80 
81 
82  //Reflection part (Don't use unless you really know what you're doing!!)
86  const Safir::Dob::Typesystem::ArrayIndex index) const;
87 
88  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
89  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
90  explicit DistributionChannelParameters(char const * const blob);
91 
92  private:
93 
94 #ifdef _MSC_VER
95 #pragma warning (push)
96 #pragma warning (disable : 4251)
97 #endif
98 
99 
100 #ifdef _MSC_VER
101 #pragma warning (pop)
102 #endif
103  };
104 
105 } // Dob
106 } // Safir
107 
108 #endif
109 
Contains the parametrization of all distribution channels.
Definition: DistributionChannelParameters.h:46
boost::shared_ptr< DistributionChannelParameters > DistributionChannelParametersPtr
Definition: DistributionChannelParameters.h:35
Safir::Dob::Typesystem::ObjectContainerImpl< DistributionChannelParameters > DistributionChannelParametersContainer
Definition: DistributionChannelParameters.h:39
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: DistributionChannelParameters.h:73
Safir::Dob::Typesystem::ArrayContainer< DistributionChannelParametersContainer > DistributionChannelParametersContainerArray
Definition: DistributionChannelParameters.h:40
DotsC_TypeId TypeId
A unique type identifier.
Definition: Defs.h:219
Template class for all containers of automatically generated DOB objects.
Definition: ObjectContainer.h:185
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_ArrayIndex ArrayIndex
Index into an array.
Definition: Defs.h:247
This class is intended to be used as baseclass for classes that only contains parameters.
Definition: Parametrization.h:43
Base class for all Containers.
Definition: ContainerBase.h:41
boost::shared_ptr< DistributionChannel > DistributionChannelPtr
Definition: DistributionChannel.h:34
#define DOTS_GENERATED_Safir_API
Definition: DistributionChannelParameters.h:18
boost::shared_ptr< const DistributionChannelParameters > DistributionChannelParametersConstPtr
Definition: DistributionChannelParameters.h:37
STL container for arrays of DOB-containers.
Definition: ArrayContainer.h:58
DotsC_Int32 Int32
32 bit integer type.
Definition: Defs.h:67
DotsC_MemberIndex MemberIndex
The index of a member in an object.
Definition: Defs.h:238
static bool IsChanged(const ContainerBase &container)
Check if a container is changed.
Definition: ContainerBase.h:134