Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QueueRule.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_QUEUERULE_H_INCLUDED
2 #define SAFIR_DOB_QUEUERULE_H_INCLUDED
3 
8 
9 #include <Safir/Dob/Item.h>
11 
12 #include <Safir/Utilities/Internal/VisibilityHelpers.h>
13 
14 #ifdef dots_generated_Safir_cpp_EXPORTS
15 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_EXPORT
16 #else
17 # define DOTS_GENERATED_Safir_API SAFIR_HELPER_DLL_IMPORT
18 # define SAFIR_LIBRARY_NAME "dots_generated-Safir-cpp"
19 # include <Safir/Utilities/Internal/AutoLink.h>
20 #endif
21 #define DOTS_GENERATED_Safir_API_LOCAL SAFIR_HELPER_DLL_LOCAL
22 
26 namespace Safir
27 {
31 namespace Dob
32 {
33 
34  class QueueRule; //forward declaration
35  typedef boost::shared_ptr<QueueRule> QueueRulePtr;
36  typedef boost::shared_ptr<const QueueRule> QueueRuleConstPtr;
37 
40 
46  {
47  public:
48  //Constructors and Create routines
49  QueueRule();
50  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
51  static QueueRulePtr Create();
52 
53  //ConnectionNameRegex
54  static Safir::Dob::Typesystem::MemberIndex ConnectionNameRegexMemberIndex();
55  static Safir::Dob::Typesystem::Int32 ConnectionNameRegexMaxStringLength();
61 
62 
63  //MessageInQueueCapacity
64  static Safir::Dob::Typesystem::MemberIndex MessageInQueueCapacityMemberIndex();
70 
71 
72  //MessageOutQueueCapacity
73  static Safir::Dob::Typesystem::MemberIndex MessageOutQueueCapacityMemberIndex();
79 
80 
81  //RequestInQueueCapacity
82  static Safir::Dob::Typesystem::MemberIndex RequestInQueueCapacityMemberIndex();
88 
89 
90  //RequestOutQueueCapacity
91  static Safir::Dob::Typesystem::MemberIndex RequestOutQueueCapacityMemberIndex();
97 
98 
100  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -903230366519919466LL;
101 
102  //Type id for QueueRule
103  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
104 
105  //Check if anything in the object has change flags set
106  virtual bool IsChanged();
107 
108  //Recursively set all change flags in the object
109  virtual void SetChanged(const bool changed);
110 
111 
112  //Reflection part (Don't use unless you really know what you're doing!!)
115  virtual const Safir::Dob::Typesystem::ContainerBase & GetMember(const Safir::Dob::Typesystem::MemberIndex member,
116  const Safir::Dob::Typesystem::ArrayIndex index) const;
117 
118  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
119  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
120  explicit QueueRule(char const * const blob);
121 
122  private:
123 
124 #ifdef _MSC_VER
125 #pragma warning (push)
126 #pragma warning (disable : 4251)
127 #endif
128 
129  Safir::Dob::Typesystem::StringContainer m_ConnectionNameRegexMember;
130  Safir::Dob::Typesystem::Int32Container m_MessageInQueueCapacityMember;
131  Safir::Dob::Typesystem::Int32Container m_MessageOutQueueCapacityMember;
132  Safir::Dob::Typesystem::Int32Container m_RequestInQueueCapacityMember;
133  Safir::Dob::Typesystem::Int32Container m_RequestOutQueueCapacityMember;
134 
135 #ifdef _MSC_VER
136 #pragma warning (pop)
137 #endif
138  };
139 
140 } // Dob
141 } // Safir
142 
143 #endif
144 
#define DOTS_GENERATED_Safir_API
Definition: QueueRule.h:17
Container for base types.
Definition: ValueContainers.h:60
Safir::Dob::Typesystem::ObjectContainerImpl< QueueRule > QueueRuleContainer
Definition: QueueRule.h:38
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: QueueRule.h:103
Definition: ContainerProxies.h:38
Representation of one queue capacity parameter rule.
Definition: QueueRule.h:45
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
Container for strings (std::wstring).
Definition: ValueContainers.h:128
Safir::Dob::Typesystem::ArrayContainer< QueueRuleContainer > QueueRuleContainerArray
Definition: QueueRule.h:39
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
boost::shared_ptr< QueueRule > QueueRulePtr
Definition: QueueRule.h:34
boost::shared_ptr< const QueueRule > QueueRuleConstPtr
Definition: QueueRule.h:36
Base class for all Containers.
Definition: ContainerBase.h:41
The baseclass for all items.
Definition: Item.h:43
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