Open CASCADE Technology: Storage_Macros.hxx File Reference

Open CASCADE Technology 6.9.1

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

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; \
}
STANDARD_TYPE
#define STANDARD_TYPE(aType)
Definition: Standard_Macro.hxx:24

#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; \
}
Standard_Persistent
Definition: Standard_Persistent.hxx:30
TCollection_AsciiString
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:39
Handle
#define Handle(ClassName)
Definition: Standard_Macro.hxx:23
Storage_CallBack
Definition: Storage_CallBack.hxx:22
Standard_Type
The class provides services to find out information about a type defined in CDL...
Definition: Standard_Type.hxx:39

#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;
Standard_Persistent
Definition: Standard_Persistent.hxx:30
TCollection_AsciiString
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:39
Handle
#define Handle(ClassName)
Definition: Standard_Macro.hxx:23
Storage_CallBack
Definition: Storage_CallBack.hxx:22

#define Storage_BEGIN_SCHEMA_TYPES | ( |  | schema | ) |

Value:
const TColStd_SequenceOfAsciiString& schema::SchemaKnownTypes() const \
{ \
static TColStd_SequenceOfAsciiString aSeq; \
static Standard_Boolean jsuidjaalai = Standard_False; \
if (!jsuidjaalai) { \
jsuidjaalai = Standard_True;
Standard_Boolean
unsigned int Standard_Boolean
Definition: Standard_TypeDef.hxx:61
Standard_True
#define Standard_True
Definition: Standard_TypeDef.hxx:55
Standard_False
#define Standard_False
Definition: Standard_TypeDef.hxx:54
TColStd_SequenceOfAsciiString
Definition: TColStd_SequenceOfAsciiString.hxx:23

#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;
Standard_Persistent
Definition: Standard_Persistent.hxx:30
TCollection_AsciiString
A variable-length sequence of ASCII characters (normal 8-bit character type). It provides editing ope...
Definition: TCollection_AsciiString.hxx:39
Handle
#define Handle(ClassName)
Definition: Standard_Macro.hxx:23
Storage_CallBack
Definition: Storage_CallBack.hxx:22
TColStd_SequenceOfAsciiString
Definition: TColStd_SequenceOfAsciiString.hxx:23

#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:14

#define Storage_END_READ_SELECTION | ( |  | schema | ) |

Value:
cback = ResolveUnknownType(rt,p,Storage_WriteSolve); \
return cback; \
}
Storage_WriteSolve
Definition: Storage_SolveMode.hxx:15

#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);