X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeNode.h;h=c85a94471cbce6e4718e366f126a6d0aafcac14b;hb=b44e1db0d66c00e0726e88dd49c5d8fbb775f558;hp=a97925ec05b5b4e4f25493c29737b5847e4399d7;hpb=bae4df8a3e1ea669400c3a6c44ef4aa8d90fa1ed;p=creaImageIO.git diff --git a/src2/creaImageIOTreeNode.h b/src2/creaImageIOTreeNode.h index a97925e..c85a944 100644 --- a/src2/creaImageIOTreeNode.h +++ b/src2/creaImageIOTreeNode.h @@ -11,13 +11,16 @@ namespace creaImageIO namespace tree { + /** + * \ingroup Tree + */ //===================================================================== /// Forward declaration of Tree class Tree; //===================================================================== //===================================================================== - /// Abstract class to store user data on a tree node + /// Abstract class to store user data on a Tree node struct NodeData { NodeData() {} @@ -27,7 +30,7 @@ namespace creaImageIO //===================================================================== - /// Node of an attributed tree structure + /// Node of an attributed Tree structure class Node { public: @@ -41,6 +44,8 @@ namespace creaImageIO /// Virtual destructor virtual ~Node(); + /// Initializes the attribute map i.e. creates the entries + void InitializeAttributeMap(); /// Returns the level descriptor of the node const LevelDescriptor& GetLevelDescriptor() const; @@ -89,8 +94,7 @@ namespace creaImageIO void UnsafeSetAttribute(const std::string& k, const std::string& v) { mAttributeMap[k] = v; } - const AttributeDescriptor& GetAttributeDescriptor(const std::string& k) - const; + const AttributeDescriptor& GetAttributeDescriptor(const std::string& k)const; // { return GetTypeDescription().GetFieldDescription(k); } @@ -107,9 +111,10 @@ namespace creaImageIO /// Sorts the children of the node void SortChildren(const LexicographicalComparator&); - /* - virtual void Print() const; + + virtual void Print() const; std::string GetLabel() const; + /* int ImageGetRows() const; int ImageGetColumns() const; int ImageGetFrames() const;