sdaiRemove
Table 1 – Required value buffer depending on valueType (on the example of sdaiRemove but valid for all put-functions)
valueType C/C++ C#
sdaiINTEGER int_t val = 123; int_t val = 123;
sdaiRemove (aggregate, sdaiINTEGER, &val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiINTEGER, ref val);
sdaiREAL or sdaiNUMBER double val = 123.456; double val = 123.456;
sdaiRemove (aggregate, sdaiREAL, &val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiREAL, ref val);
sdaiBOOLEAN SdaiBoolean val = sdaiTRUE; bool val = true;
sdaiRemove (aggregate, sdaiBOOLEAN, &val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiBOOLEAN, ref val);
sdaiLOGICAL const TCHAR* val = "U"; string val = "U";
sdaiRemove (aggregate, sdaiLOGICAL, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiLOGICAL, val);
sdaiENUM const TCHAR* val = "NOTDEFINED"; string val = "NOTDEFINED";
sdaiRemove (aggregate, sdaiENUM, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiENUM, val);
sdaiBINARY const TCHAR* val = "0123456ABC"; string val = "0123456ABC";
sdaiRemove (aggregate, sdaiBINARY, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiBINARY, val);
sdaiSTRING const char* val = "My Simple String"; string val = "My Simple String";
sdaiRemove (aggregate, sdaiSTRING, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiSTRING, val);
sdaiUNICODE const wchar_t* val = L"Any Unicode String"; string val = "Any Unicode String";
sdaiRemove (aggregate, sdaiUNICODE, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiUNICODE, val);
sdaiEXPRESSSTRING const char* val = "EXPRESS format, i.e. \\X2\\00FC\\X0\\"; string val = "EXPRESS format, i.e. \\X2\\00FC\\X0\\";
sdaiRemove (aggregate, sdaiEXPRESSSTRING, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiEXPRESSSTRING, val);
sdaiINSTANCE SdaiInstance val = ... int_t val = ...
sdaiRemove (aggregate, sdaiINSTANCE, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiINSTANCE, val);
sdaiAGGR SdaiAggr val = ... int_t val = ...
sdaiRemove (aggregate, sdaiAGGR, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiAGGR, val);
sdaiADB SdaiADB val = ... int_t val = ...
sdaiRemove (aggregate, sdaiADB, val); ifcengine.sdaiRemove (aggregate, ifcengine.sdaiADB, val);
TCHAR is “char” or “wchar_t” depending on setStringUnicode.
(Non-standard behavior) sdaiLOGICAL behaves differently from ISO 10303-24-2001: it expects char* while standard declares int_t.
Table 2 - valueType can be requested depending on actual model data.
valueType Works for following values in the model
integer real .T. or .F. .U. other enum binary string instance list $ (empty)
sdaiINTEGER Yes . . . . . . . . .
sdaiREAL . Yes . . . . . . . .
sdaiNUMBER . Yes . . . . . . . .
sdaiBOOLEAN . . Yes . . . . . . .
sdaiLOGICAL . . Yes Yes . . . . . .
sdaiENUM . . Yes Yes Yes . . . . .
sdaiBINARY . . . . . Yes . . . .
sdaiSTRING . . . . . . Yes . . .
sdaiUNICODE . . . . . . Yes . . .
sdaiEXPRESSSTRING . . . . . . Yes . . .
sdaiINSTANCE . . . . . . . Yes . .
sdaiAGGR . . . . . . . . Yes .
sdaiADB Yes Yes Yes Yes Yes Yes Yes Yes Yes .
Syntax
// // Strong typing definition // void sdaiRemove( SdaiAggr aggregate, SdaiPrimitiveType valueType, const void * value ); // // Weak typing definition // void __declspec(dllexport) __stdcall sdaiRemove( int_t * aggregate, int_t valueType, const void * value );