Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CreateRoutineParameters.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_CREATEROUTINEPARAMETERS_H_INCLUDED
2 #define SAFIR_DOB_CREATEROUTINEPARAMETERS_H_INCLUDED
3 
8 
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 CreateRoutineParameters; //forward declaration
40  typedef boost::shared_ptr<CreateRoutineParameters> CreateRoutineParametersPtr;
41  typedef boost::shared_ptr<const CreateRoutineParameters> CreateRoutineParametersConstPtr;
42 
45 
51  {
52  public:
53  //Constructors and Create routines
55  virtual Safir::Dob::Typesystem::ObjectPtr Clone() const;
56  static CreateRoutineParametersPtr Create();
57 
58  //Zero
62  static Safir::Dob::Typesystem::Int32 Zero();
63 
64  //One
68  static Safir::Dob::Typesystem::Int32 One();
69 
70  //Two
74  static Safir::Dob::Typesystem::Int32 Two();
75 
77  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 1732503792734576524LL;
78 
79  //Type id for CreateRoutineParameters
80  virtual Safir::Dob::Typesystem::TypeId GetTypeId() const {return ClassTypeId;}
81 
82  //Check if anything in the object has change flags set
83  virtual bool IsChanged();
84 
85  //Recursively set all change flags in the object
86  virtual void SetChanged(const bool changed);
87 
88 
89  //Reflection part (Don't use unless you really know what you're doing!!)
93  const Safir::Dob::Typesystem::ArrayIndex index) const;
94 
95  virtual Safir::Dob::Typesystem::Int32 CalculateBlobSize() const;
96  virtual void WriteToBlob(char * blob, char * & beginningOfUnused) const;
97  explicit CreateRoutineParameters(char const * const blob);
98 
99  private:
100 
101 #ifdef _MSC_VER
102 #pragma warning (push)
103 #pragma warning (disable : 4251)
104 #endif
105 
106 
107 #ifdef _MSC_VER
108 #pragma warning (pop)
109 #endif
110  };
111 
112 } // Dob
113 } // Safir
114 
115 #endif
116 
Safir::Dob::Typesystem::ArrayContainer< CreateRoutineParametersContainer > CreateRoutineParametersContainerArray
Definition: CreateRoutineParameters.h:44
Safir::Dob::Typesystem::ObjectContainerImpl< CreateRoutineParameters > CreateRoutineParametersContainer
Definition: CreateRoutineParameters.h:43
virtual Safir::Dob::Typesystem::TypeId GetTypeId() const
Get the type id of this object.
Definition: CreateRoutineParameters.h:80
boost::shared_ptr< CreateRoutineParameters > CreateRoutineParametersPtr
Definition: CreateRoutineParameters.h:39
Contains parameters to be used as values in CreateRoutines.
Definition: CreateRoutineParameters.h:50
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
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: Dob/Typesystem/Defs.h:249
This class is intended to be used as baseclass for classes that only contains parameters.
Definition: Parametrization.h:48
Base class for all Containers.
Definition: ContainerBase.h:41
boost::shared_ptr< const CreateRoutineParameters > CreateRoutineParametersConstPtr
Definition: CreateRoutineParameters.h:41
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