Open CASCADE Technology 7.8.2.dev
Storage_Macros.hxx File Reference

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)
 
#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 ; \
BindType(theTypeName,cback); \
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

◆ Storage_BEGIN_ADD_TYPES

#define Storage_BEGIN_ADD_TYPES ( schema)
Value:
Handle(Storage_CallBack) schema::AddTypeSelection(const Handle(Standard_Persistent)& p) const \
{ \
Handle(Storage_CallBack) cback; \
if (!p.IsNull()) { \
const Handle(Standard_Type)& t = p->DynamicType(); \
static TCollection_AsciiString theTypeName;\
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
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)
Value:
Handle(Storage_CallBack) schema::CallBackSelection(const TCollection_AsciiString& rt) const \
{ \
Handle(Standard_Persistent) p; \
Handle(Storage_CallBack) cback;

◆ Storage_BEGIN_SCHEMA_TYPES

#define Storage_BEGIN_SCHEMA_TYPES ( schema)
Value:
const TColStd_SequenceOfAsciiString& schema::SchemaKnownTypes() const \
{ \
static Standard_Boolean jsuidjaalai = Standard_False; \
if (!jsuidjaalai) { \
jsuidjaalai = Standard_True;
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)
Value:
public: \
Standard_EXPORT Handle(Storage_CallBack) CallBackSelection(const TCollection_AsciiString&) const; \
Standard_EXPORT Handle(Storage_CallBack) AddTypeSelection(const Handle(Standard_Persistent)&) const; \
Standard_EXPORT const TColStd_SequenceOfAsciiString& SchemaKnownTypes() const;

◆ Storage_END_ADD_TYPES

#define Storage_END_ADD_TYPES ( schema)
Value:
cback = ResolveUnknownType(theTypeName,p,Storage_AddSolve); \
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:
cback = ResolveUnknownType(rt,p,Storage_WriteSolve); \
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)
Value:
aSeq.Append(#classe);