Safir SDK Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ContextSharedOverrideProperty.h
Go to the documentation of this file.
1 #ifndef SAFIR_DOB_CONTEXTSHAREDOVERRIDEPROPERTY_H_INCLUDED
2 #define SAFIR_DOB_CONTEXTSHAREDOVERRIDEPROPERTY_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 
24 
28 namespace Safir
29 {
33 namespace Dob
34 {
35 
40  class GENERATED_API ContextSharedOverrideProperty
41  {
42  public:
43  //HasProperty
44  static bool HasProperty(const Safir::Dob::Typesystem::ObjectPtr object);
45 
46  //ContextShared
50  static void SetContextShared(Safir::Dob::Typesystem::ObjectPtr object, const bool value);
51  static void SetNullContextShared(Safir::Dob::Typesystem::ObjectPtr object);
52  static bool IsNullContextShared(const Safir::Dob::Typesystem::ObjectPtr object);
53  static bool IsChangedContextShared(const Safir::Dob::Typesystem::ObjectPtr object);
54  static bool IsReadOnlyContextShared(const Safir::Dob::Typesystem::ObjectPtr object);
58  static bool GetContextShared(const Safir::Dob::Typesystem::ObjectPtr object);
59 
61  static const Safir::Dob::Typesystem::TypeId ClassTypeId = -1788815086694455561LL;
62 
63  };
64 } // Dob
65 } // Safir
66 
67 #endif
68 
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
Used to determine if a class should be visible in all contexts.
Definition: ContextSharedOverrideProperty.h:40
DOTS_API bool HasProperty(const Dob::Typesystem::TypeId classType, const Dob::Typesystem::TypeId propertyType)
Checks if the a class has a property.