DATAKIT API
V2025.4
Main Page
API Reference
Functions
|
Variables
WriteFeature.cpp File Reference
Functions
void
ActivateFeatureDump
(
Dtk_bool
inDumpFeature)
void
WriteFeature
(
Dtk_NodePtr
inNode)
Variables
Dtk_bool
toDumpFeatures
Function Documentation
◆
ActivateFeatureDump()
void ActivateFeatureDump
(
Dtk_bool
inDumpFeature
)
8
{
9
toDumpFeatures
= inDumpFeature;
10
}
◆
WriteFeature()
void WriteFeature
(
Dtk_NodePtr
inNode
)
14
{
15
if
(
toDumpFeatures
==
DTK_FALSE
)
16
return
;
17
18
// Get the Feature associated to the current node, if exists,
19
// otherwise a NULL pointer is returned
20
Dtk_FeaturePtr
TmpFeature = inNode->
GetDtk_FeaturePtr
();
21
if
(TmpFeature.
IsNotNULL
())
22
{
23
// Used to write an XML File
24
if
(
IsXmlDumpActivated
())
25
{
26
XmlWriteFeature
(TmpFeature);
27
}
28
29
}
30
}
Variable Documentation
◆
toDumpFeatures
Dtk_bool
toDumpFeatures
Dtk_SmartPtr::IsNotNULL
Dtk_bool IsNotNULL() const
Definition:
util_ptr_dtk.hpp:119
toDumpFeatures
Dtk_bool toDumpFeatures
Definition:
WriteFeature.cpp:5
XmlWriteFeature
void XmlWriteFeature(const Dtk_FeaturePtr &inFeature)
Definition:
XmlWrite.cpp:112
DTK_FALSE
#define DTK_FALSE
Definition:
define.h:730
Dtk_SmartPtr< Dtk_feat >
Dtk_Node::GetDtk_FeaturePtr
Dtk_FeaturePtr GetDtk_FeaturePtr()
Retrieves the Dtk_Node as a Dtk_FeaturePtr - if exists -.
IsXmlDumpActivated
Dtk_bool IsXmlDumpActivated()
Definition:
XmlWrite.cpp:17
ClientsCMake
SampleSources
LibReadersSample
RunThroughAPI
ThroughData
WriteFeature.cpp