Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InjectionOverrideProperty.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_INJECTIONOVERRIDEPROPERTY_H_INCLUDED
2 #define SAFIR_DOB_INJECTIONOVERRIDEPROPERTY_H_INCLUDED
3 
4 #ifdef _MSC_VER
5 #ifdef DOTS_GENERATED_CPP_EXPORTS
6 #define GENERATED_API __declspec(dllexport)
7 #else
8 #define GENERATED_API __declspec(dllimport)
9 #ifdef _DEBUG
10 
11 #pragma comment( lib, "dots_generated-Safir-cppd.lib" )
12 #else
13 #pragma comment( lib, "dots_generated-Safir-cpp.lib" )
14 
15 #endif
16 #endif
17 #endif
18 #ifdef __GNUC__
19 #define GENERATED_API
20 #endif
21 
23 
25 
29 namespace Safir
30 {
34 namespace Dob
35 {
36 
41  class GENERATED_API InjectionOverrideProperty
42  {
43  public:
44  //HasProperty
45  static bool HasProperty(const Safir::Dob::Typesystem::ObjectPtr object);
46 
47  //Injection
52  static void SetOrdinalInjection(Safir::Dob::Typesystem::ObjectPtr object, const Safir::Dob::Typesystem::EnumerationValue value);
53  static void SetNullInjection(Safir::Dob::Typesystem::ObjectPtr object);
54  static bool IsNullInjection(const Safir::Dob::Typesystem::ObjectPtr object);
55  static bool IsChangedInjection(const Safir::Dob::Typesystem::ObjectPtr object);
56  static bool IsReadOnlyInjection(const Safir::Dob::Typesystem::ObjectPtr object);
61  static Safir::Dob::Typesystem::EnumerationValue GetOrdinalInjection(const Safir::Dob::Typesystem::ObjectPtr object);
62 
64  static const Safir::Dob::Typesystem::TypeId ClassTypeId = 7423724997645802149LL;
65 
66  };
67 } // Dob
68 } // Safir
69 
70 #endif
71 
Defines the Injection used for entities of this class.
Definition: InjectionOverrideProperty.h:41
Enumeration
Definition: InjectionKind.h:42
static const Safir::Dob::Typesystem::TypeId Checksum
Definition: InjectionKind.h:62
DotsC_TypeId TypeId
A unique type identifier.
Definition: Dob/Typesystem/Defs.h:221
boost::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition: Object.h:41
DotsC_EnumerationValue EnumerationValue
The ordinal value of an enumeration.
Definition: Dob/Typesystem/Defs.h:273
DOTS_API bool HasProperty(const Dob::Typesystem::TypeId classType, const Dob::Typesystem::TypeId propertyType)
Checks if the a class has a property.