Parsing data from nodes of "Metadata" set of X3D.
More...
|
| Assimp |
| MACHINE-GENERATED by scripts/ICFImporter/CppGenerator.py.
|
|
Parsing data from nodes of "Metadata" set of X3D.
- Date
- 2015-2016
- Author
- smal..nosp@m.root.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
◆ MACRO_METADATA_FINDCREATE
#define MACRO_METADATA_FINDCREATE |
( |
|
pDEF_Var, |
|
|
|
pUSE_Var, |
|
|
|
pReference, |
|
|
|
pValue, |
|
|
|
pNE, |
|
|
|
pMetaClass, |
|
|
|
pMetaName, |
|
|
|
pType |
|
) |
| |
Value: \
if(!pUSE_Var.empty()) \
{ \
MACRO_USE_CHECKANDAPPLY(pDEF_Var, pUSE_Var, pType, pNE); \
} \
else \
{ \
pNE = new pMetaClass(NodeElement_Cur); \
if(!pDEF_Var.empty()) pNE->ID = pDEF_Var; \
\
((pMetaClass*)pNE)->
Reference = pReference; \
((pMetaClass*)pNE)->
Value = pValue; \
\
if(!mReader->isEmptyElement()) \
ParseNode_Metadata(pNE, pMetaName); \
else \
NodeElement_Cur->Child.push_back(pNE); \
\
NodeElement_List.push_back(pNE); \
} \
\
do {} while(false)
Find element by "USE" or create new one.
- Parameters
-
[in] | pDEF_Var | - variable name with "DEF" value. |
[in] | pUSE_Var | - variable name with "USE" value. |
[in] | pReference | - variable name with "reference" value. |
[in] | pValue | - variable name with "value" value. |
[in,out] | pNE | - pointer to node element. |
[in] | pMetaClass | - Class of node. |
[in] | pMetaName | - Name of node. |
[in] | pType | - type of element to find. |