DATAKIT API  V2025.1
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 {
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:728
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
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