X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOTreeNode.h;h=c38680ba1029dd0e8f37d9dec1bf338d4658efde;hb=1813f80def50d02057c58a83245739066f37f9f0;hp=bd5299187d6a22b562ca5e7403edd3e05105ccea;hpb=c7482ec7d04a5e5987841932a6856ebd471cebdb;p=creaImageIO.git diff --git a/src/creaImageIOTreeNode.h b/src/creaImageIOTreeNode.h index bd52991..c38680b 100644 --- a/src/creaImageIOTreeNode.h +++ b/src/creaImageIOTreeNode.h @@ -29,7 +29,7 @@ #ifndef __creaImageIOTreeNode_h_INCLUDED__ #define __creaImageIOTreeNode_h_INCLUDED__ -#include +#include #include #include #include @@ -66,7 +66,6 @@ namespace creaImageIO public: typedef std::map AttributeMapType; - /// Ctor with parent Node(Node* parent); /// Ctor with parent and attributes map @@ -88,7 +87,6 @@ namespace creaImageIO /// Returns the level of the node in the tree virtual int GetLevel() const { return mParent->GetLevel()+1; } - /// Returns the parent of the node Node* GetParent() const { return mParent; } @@ -96,7 +94,7 @@ namespace creaImageIO /// Warning : if the children are not loaded then might return 0 /// even if the node has children ! /// see TreeHandler::GetNumberOfChildren - unsigned int GetNumberOfChildren() const { return mChildren.size(); } + unsigned int GetNumberOfChildren() const { return (int)mChildren.size(); } /// Returns true iff the node's children are loaded bool GetChildrenLoaded() const { return mChildrenLoaded; } @@ -113,7 +111,6 @@ namespace creaImageIO /// Remove the given children from the children list int RemoveChildrenFromList(Node*); - /// Get the Attributes Map AttributeMapType& GetAttributeMap() { return mAttributeMap; }