Open CASCADE Technology 7.8.0
Macros
Storage_Macros.hxx File Reference
#include <Storage_SolveMode.hxx>

Macros

#define Storage_DECLARE_SCHEMA_METHODS(schema)
 
#define Storage_BEGIN_READ_SELECTION(schema)
 
#define Storage_READ_SELECTION(schema, classe, callback)
 
#define Storage_END_READ_SELECTION(schema)
 
#define Storage_BEGIN_SCHEMA_TYPES(schema)
 
#define Storage_SCHEMA_TYPES(classe)   aSeq.Append(#classe);
 
#define Storage_END_SCHEMA_TYPES(schema)
 
#define Storage_BEGIN_ADD_TYPES(schema)
 
#define Storage_ADD_TYPES(schema, classe, callback)
 
#define Storage_END_ADD_TYPES(schema)
 

Macro Definition Documentation

◆ Storage_ADD_TYPES

#define Storage_ADD_TYPES (   schema,
  classe,
  callback 
)
Value:
if (t == STANDARD_TYPE(classe)) { \
cback = new callback ; \
cback->Add(p,this); \
return cback; \
}
#define STANDARD_TYPE(theType)
Helper macro to get instance of a type descriptor for a class in a legacy way.
Definition Standard_Type.hxx:86
Definition NCollection_UBTree.hxx:64
virtual Standard_Boolean Add(const TheObjType &theObj, const TheBndType &theBnd)
Definition NCollection_UBTree.hxx:351

◆ Storage_BEGIN_ADD_TYPES

#define Storage_BEGIN_ADD_TYPES (   schema)
Value:
{ \
if (!p.IsNull()) { \
const Handle(Standard_Type)& t = p->DynamicType(); \
theTypeName = t->Name(); \
if (HasTypeBinding(theTypeName)) { \
cback = TypeBinding(theTypeName); \
cback->Add(p,this); \
return cback; \
}
#define Handle(Class)
Define Handle() macro.
Definition Standard_Handle.hxx:399
NCollection_UBTree()
Definition NCollection_UBTree.hxx:243
Root of "persistent" classes, a legacy support of object oriented databases, now outdated.
Definition Standard_Persistent.hxx:23
This class provides legacy interface (type descriptor) to run-time type information (RTTI) for OCCT c...
Definition Standard_Type.hxx:146
Definition Storage_CallBack.hxx:33
Class defines a variable-length sequence of 8-bit characters. Despite class name (kept for historical...
Definition TCollection_AsciiString.hxx:46

◆ Storage_BEGIN_READ_SELECTION

#define Storage_BEGIN_READ_SELECTION (   schema)

◆ Storage_BEGIN_SCHEMA_TYPES

#define Storage_BEGIN_SCHEMA_TYPES (   schema)
Value:
{ \
bool Standard_Boolean
Definition Standard_TypeDef.hxx:64
#define Standard_False
Definition Standard_TypeDef.hxx:56
#define Standard_True
Definition Standard_TypeDef.hxx:57

◆ Storage_DECLARE_SCHEMA_METHODS

#define Storage_DECLARE_SCHEMA_METHODS (   schema)

◆ Storage_END_ADD_TYPES

#define Storage_END_ADD_TYPES (   schema)
Value:
if (!cback.IsNull()) { \
cback->Add(p,this); \
} \
return cback; \
} \
return cback; \
}
@ Storage_AddSolve
Definition Storage_SolveMode.hxx:23

◆ Storage_END_READ_SELECTION

#define Storage_END_READ_SELECTION (   schema)
Value:
return cback; \
}
@ Storage_WriteSolve
Definition Storage_SolveMode.hxx:24

◆ Storage_END_SCHEMA_TYPES

#define Storage_END_SCHEMA_TYPES (   schema)
Value:
} return aSeq; \
}

◆ Storage_READ_SELECTION

#define Storage_READ_SELECTION (   schema,
  classe,
  callback 
)
Value:
if (strcmp(rt.ToCString(),#classe) == 0) { \
cback = new callback ; \
return cback; \
}

◆ Storage_SCHEMA_TYPES

#define Storage_SCHEMA_TYPES (   classe)    aSeq.Append(#classe);