Open CASCADE Technology Reference Manual
8.0.0
Loading...
Searching...
No Matches
src
FoundationClasses
TKernel
Storage
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
;
\
BindType
(
theTypeName
,
cback
); \
cback
->Add(
p
,
this
); \
return
cback
; \
}
p
GLfloat GLfloat p
Definition
OpenGl_glext.h:21564
STANDARD_TYPE
#define STANDARD_TYPE(theType)
Helper macro to get instance of a type descriptor for a class in a legacy way.
Definition
Standard_Type.hxx:36
NCollection_ForwardRangeIterator
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition
NCollection_ForwardRange.hxx:142
◆
Storage_BEGIN_ADD_TYPES
#
define
Storage_BEGIN_ADD_TYPES
(
schema
)
Value:
occ::handle<Storage_CallBack>
schema::AddTypeSelection
( \
const
occ::handle<Standard_Persistent>
&
p
)
const
\
{ \
occ::handle<Storage_CallBack>
cback
;
\
if
(!
p
.IsNull()) \
{ \
const
occ::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
; \
}
NCollection_ForwardRangeIterator::NCollection_ForwardRangeIterator
NCollection_ForwardRangeIterator(HostType *theHost)
Construct from a pointer to the host iterator.
Definition
NCollection_ForwardRange.hxx:156
TCollection_AsciiString
Class defines a variable-length sequence of 8-bit characters. Despite class name (kept for historical...
Definition
TCollection_AsciiString.hxx:53
opencascade::handle
Intrusive smart pointer for use with Standard_Transient class and its descendants.
Definition
Standard_Handle.hxx:54
◆
Storage_BEGIN_READ_SELECTION
#
define
Storage_BEGIN_READ_SELECTION
(
schema
)
Value:
occ::handle<Storage_CallBack>
schema::CallBackSelection
(
const
TCollection_AsciiString
&
rt
)
const
\
{ \
occ::handle<Standard_Persistent>
p
; \
occ::handle<Storage_CallBack>
cback
;
◆
Storage_BEGIN_SCHEMA_TYPES
#
define
Storage_BEGIN_SCHEMA_TYPES
(
schema
)
Value:
const
NCollection_Sequence<TCollection_AsciiString>
&
schema::SchemaKnownTypes
() const \
{ \
static
NCollection_Sequence<TCollection_AsciiString>
aSeq
; \
static
bool
jsuidjaalai
=
false
;
\
if
(!
jsuidjaalai
) \
{ \
jsuidjaalai
=
true
;
◆
Storage_DECLARE_SCHEMA_METHODS
#
define
Storage_DECLARE_SCHEMA_METHODS
(
schema
)
Value:
public
: \
Standard_EXPORT
occ::handle<Storage_CallBack>
CallBackSelection
(
const
TCollection_AsciiString
&) \
const
; \
Standard_EXPORT
occ::handle<Storage_CallBack>
AddTypeSelection
( \
const
occ::handle<Standard_Persistent>
&)
const
; \
Standard_EXPORT
const
NCollection_Sequence<TCollection_AsciiString>
&
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
@ Storage_AddSolve
Definition
Storage_SolveMode.hxx:22
◆
Storage_END_READ_SELECTION
#
define
Storage_END_READ_SELECTION
(
schema
)
Value:
cback
=
ResolveUnknownType
(
rt
,
p
,
Storage_WriteSolve
); \
return
cback
; \
}
Storage_WriteSolve
@ Storage_WriteSolve
Definition
Storage_SolveMode.hxx:23
◆
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
);
Generated by
1.10.0