CFx SDK Documentation  2023 SP0
Namespaces | Macros | Enumerations | Functions
daiAccessDefines.h File Reference
#include "daiModel.h"
#include "daiError/daiException.h"

Go to the source code of this file.

Namespaces

 OdDAI
 

Macros

#define DAI_ENTITY_ACCESSORS_GET_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_ACCESSORS_SET_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_GET_ATTR_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_PUT_ATTR_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_TEST_ATTR_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_UNSET_ATTR_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_GET_ATTR_DEF_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_PUT_ATTR_DEF_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_TEST_ATTR_DEF_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_UNSET_ATTR_DEF_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_IN_FIELDS_CHECK()   checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_OUT_FIELDS_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)
 
#define DAI_ENTITY_SET_INVERSE_COUNTER_PARTS_CHECK()   checkWriteModePtr(owningModel(), TD_FUNC, assertApproveAccessAction)
 
#define DAI_MODEL_TRY_READ()   checkReadMode(this, TD_FUNC)
 
#define DAI_MODEL_TRY_WRITE()   checkWriteMode(this, TD_FUNC)
 

Enumerations

enum  OdDAI::NullModelAction { OdDAI::exceptionAction , OdDAI::assertApproveAccessAction , OdDAI::silentApproveAccessAction }
 

Functions

void OdDAI::checkReadMode (const Model *model, const char *functionName, NullModelAction nullModelAction=exceptionAction)
 
void OdDAI::checkWriteMode (const Model *model, const char *functionName, NullModelAction nullModelAction=exceptionAction)
 
void OdDAI::checkReadModePtr (const ModelPtr &model, const char *functionName, NullModelAction modelAction=exceptionAction)
 
void OdDAI::checkWriteModePtr (const ModelPtr &model, const char *functionName, NullModelAction modelAction=exceptionAction)
 

Macro Definition Documentation

◆ DAI_ENTITY_ACCESSORS_GET_CHECK

#define DAI_ENTITY_ACCESSORS_GET_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 113 of file daiAccessDefines.h.

◆ DAI_ENTITY_ACCESSORS_SET_CHECK

#define DAI_ENTITY_ACCESSORS_SET_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 114 of file daiAccessDefines.h.

◆ DAI_ENTITY_GET_ATTR_CHECK

#define DAI_ENTITY_GET_ATTR_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 116 of file daiAccessDefines.h.

◆ DAI_ENTITY_GET_ATTR_DEF_CHECK

#define DAI_ENTITY_GET_ATTR_DEF_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 121 of file daiAccessDefines.h.

◆ DAI_ENTITY_IN_FIELDS_CHECK

#define DAI_ENTITY_IN_FIELDS_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 126 of file daiAccessDefines.h.

◆ DAI_ENTITY_OUT_FIELDS_CHECK

#define DAI_ENTITY_OUT_FIELDS_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 127 of file daiAccessDefines.h.

◆ DAI_ENTITY_PUT_ATTR_CHECK

#define DAI_ENTITY_PUT_ATTR_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 117 of file daiAccessDefines.h.

◆ DAI_ENTITY_PUT_ATTR_DEF_CHECK

#define DAI_ENTITY_PUT_ATTR_DEF_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 122 of file daiAccessDefines.h.

◆ DAI_ENTITY_SET_INVERSE_COUNTER_PARTS_CHECK

#define DAI_ENTITY_SET_INVERSE_COUNTER_PARTS_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, assertApproveAccessAction)

Definition at line 129 of file daiAccessDefines.h.

◆ DAI_ENTITY_TEST_ATTR_CHECK

#define DAI_ENTITY_TEST_ATTR_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 118 of file daiAccessDefines.h.

◆ DAI_ENTITY_TEST_ATTR_DEF_CHECK

#define DAI_ENTITY_TEST_ATTR_DEF_CHECK ( )    checkReadModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 123 of file daiAccessDefines.h.

◆ DAI_ENTITY_UNSET_ATTR_CHECK

#define DAI_ENTITY_UNSET_ATTR_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 119 of file daiAccessDefines.h.

◆ DAI_ENTITY_UNSET_ATTR_DEF_CHECK

#define DAI_ENTITY_UNSET_ATTR_DEF_CHECK ( )    checkWriteModePtr(owningModel(), TD_FUNC, silentApproveAccessAction)

Definition at line 124 of file daiAccessDefines.h.

◆ DAI_MODEL_TRY_READ

#define DAI_MODEL_TRY_READ ( )    checkReadMode(this, TD_FUNC)

Definition at line 131 of file daiAccessDefines.h.

◆ DAI_MODEL_TRY_WRITE

#define DAI_MODEL_TRY_WRITE ( )    checkWriteMode(this, TD_FUNC)

Definition at line 132 of file daiAccessDefines.h.