DATAKIT API  V2025.1
Dtk_feat_node Class Reference

Node (the node in the tree structure storing the data features) More...

Public Member Functions

 Dtk_feat_node ()
 Constructor of a node
More...
 
int get_feature (Dtk_FeaturePtr &)
 Returns the feature , valid if the node is feature type
More...
 
int get_id (long *)
 Get the id if the node is Root type
More...
 
int get_isTreated (Bool *)
 Returns the value indicating whether the node is treated or not
More...
 
int get_name (Dtk_string *)
 Returns the root name
More...
 
int get_type (NODE_TYPE *)
 Gets the node type
More...
 
 ~Dtk_feat_node ()
 Destructor of a node
More...
 

Data Fields

Dtk_FeaturePtr feature
 
long id
 
Bool isTreated
 
Dtk_string name
 
NODE_TYPE type
 

Detailed Description

Node (the node in the tree structure storing the data features)

Constructor & Destructor Documentation

◆ Dtk_feat_node()

Dtk_feat_node::Dtk_feat_node ( )

Constructor of a node

Parameters
[in/out]
[out]<br>
Returns
Allocated node
Remarks

◆ ~Dtk_feat_node()

Dtk_feat_node::~Dtk_feat_node ( )

Destructor of a node

Parameters
[in]Genericnode to destruct
[in/out]
[out]<br>
Returns
Free node
Remarks

Member Function Documentation

◆ get_feature()

int Dtk_feat_node::get_feature ( Dtk_FeaturePtr )

Returns the feature , valid if the node is feature type

Parameters
[in]Node
[in/out]
[out]Dtk_feat
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_id()

int Dtk_feat_node::get_id ( long *  )

Get the id if the node is Root type

Parameters
[in]Node
[in/out]
[out]long
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_isTreated()

int Dtk_feat_node::get_isTreated ( Bool )

Returns the value indicating whether the node is treated or not

Parameters
[in]Node
[in/out]
[out]Dtk_feat
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_name()

int Dtk_feat_node::get_name ( Dtk_string )

Returns the root name

Parameters
[in]GenericRoot
[in/out]
[out]BodyName
Returns
NOTOK if error, ISOK if ok
Remarks

◆ get_type()

int Dtk_feat_node::get_type ( NODE_TYPE )

Gets the node type

Parameters
[in]Nodenode
[in/out]
[out]NODE_TYPE
Returns
NOTOK if error, ISOK if ok
Remarks
You need to test the type to get the inner feature

Field Documentation

◆ feature

Dtk_FeaturePtr Dtk_feat_node::feature

◆ id

long Dtk_feat_node::id

◆ isTreated

Bool Dtk_feat_node::isTreated

◆ name

Dtk_string Dtk_feat_node::name

◆ type

NODE_TYPE Dtk_feat_node::type