Open CASCADE Technology  7.0.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

#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:26
#define Storage_BEGIN_ADD_TYPES (   schema)
Value:
Handle(Storage_CallBack) schema::AddTypeSelection(const Handle(Standard_Persistent)& p) const \
{ \
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:403
Root of "persistent" classes, a legacy support of object oriented databases, now outdated.
Definition: Standard_Persistent.hxx:22
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:50
Definition: Storage_CallBack.hxx:33
This class provides legacy interface (type descriptor) to run-time type information (RTTI) for OCCT c...
Definition: Standard_Type.hxx:86
#define Storage_BEGIN_READ_SELECTION (   schema)
Value:
Handle(Storage_CallBack) schema::CallBackSelection(const TCollection_AsciiString& rt) const \
{ \
Handle(Standard_Persistent) p; \
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:403
Root of "persistent" classes, a legacy support of object oriented databases, now outdated.
Definition: Standard_Persistent.hxx:22
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:50
Definition: Storage_CallBack.hxx:33
#define Storage_BEGIN_SCHEMA_TYPES (   schema)
Value:
const TColStd_SequenceOfAsciiString& schema::SchemaKnownTypes() const \
{ \
static Standard_Boolean jsuidjaalai = Standard_False; \
if (!jsuidjaalai) { \
jsuidjaalai = Standard_True;
unsigned int Standard_Boolean
Definition: Standard_TypeDef.hxx:61
#define Standard_True
Definition: Standard_TypeDef.hxx:55
#define Standard_False
Definition: Standard_TypeDef.hxx:54
#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;
#define Handle(Class)
Define Handle() macro.
Definition: Standard_Handle.hxx:403
Root of "persistent" classes, a legacy support of object oriented databases, now outdated.
Definition: Standard_Persistent.hxx:22
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:50
Definition: Storage_CallBack.hxx:33
#define Storage_END_ADD_TYPES (   schema)
Value:
cback = ResolveUnknownType(theTypeName,p,Storage_AddSolve); \
if (!cback.IsNull()) { \
cback->Add(p,this); \
} \
return cback; \
} \
return cback; \
}
Definition: Storage_SolveMode.hxx:23
#define Storage_END_READ_SELECTION (   schema)
Value:
cback = ResolveUnknownType(rt,p,Storage_WriteSolve); \
return cback; \
}
Definition: Storage_SolveMode.hxx:24
#define Storage_END_SCHEMA_TYPES (   schema)
Value:
} return aSeq; \
}
#define Storage_READ_SELECTION (   schema,
  classe,
  callback 
)
Value:
if (strcmp(rt.ToCString(),#classe) == 0) { \
cback = new callback ; \
return cback; \
}
#define Storage_SCHEMA_TYPES (   classe)    aSeq.Append(#classe);