CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef _DAI_ACCESSS_DEFINES_H_
25 #define _DAI_ACCESSS_DEFINES_H_
44 switch (nullModelAction)
53 ODA_ASSERT_ONCE(0 &&
"Model is null. Abnoraml situation. Try to fix it yourself.");
75 switch (nullModelAction)
84 ODA_ASSERT_ONCE(0 &&
"Model is null. Abnoraml situation. Try to fix it yourself.");
113 #define DAI_ENTITY_ACCESSORS_GET_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
114 #define DAI_ENTITY_ACCESSORS_SET_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
116 #define DAI_ENTITY_GET_ATTR_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
117 #define DAI_ENTITY_PUT_ATTR_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
118 #define DAI_ENTITY_TEST_ATTR_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
119 #define DAI_ENTITY_UNSET_ATTR_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
121 #define DAI_ENTITY_GET_ATTR_DEF_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
122 #define DAI_ENTITY_PUT_ATTR_DEF_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
123 #define DAI_ENTITY_TEST_ATTR_DEF_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
124 #define DAI_ENTITY_UNSET_ATTR_DEF_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
126 #define DAI_ENTITY_IN_FIELDS_CHECK() checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
127 #define DAI_ENTITY_OUT_FIELDS_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
129 #define DAI_ENTITY_SET_INVERSE_COUNTER_PARTS_CHECK() checkWriteModePtr(owningModel(), TD_FUNC, assertApproveAccessAction)
131 #define DAI_MODEL_TRY_READ() checkReadMode(this, TD_FUNC)
132 #define DAI_MODEL_TRY_WRITE() checkWriteMode(this, TD_FUNC)
void checkReadModePtr(const ModelPtr &model, const char *functionName, NullModelAction modelAction=exceptionAction)
void checkWriteModePtr(const ModelPtr &model, const char *functionName, NullModelAction modelAction=exceptionAction)
#define ODA_ASSERT_ONCE(exp)
void checkReadMode(const Model *model, const char *functionName, NullModelAction nullModelAction=exceptionAction)
void checkWriteMode(const Model *model, const char *functionName, NullModelAction nullModelAction=exceptionAction)
SdaiAccessMode mode() const
@ assertApproveAccessAction
@ silentApproveAccessAction