X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOTreeNode.h;h=c38680ba1029dd0e8f37d9dec1bf338d4658efde;hb=refs%2Fheads%2Fvtk8itk5wx3-macos;hp=2905c1a8a0e2784d201da383fe54c2697919afd7;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOTreeNode.h b/src/creaImageIOTreeNode.h index 2905c1a..c38680b 100644 --- a/src/creaImageIOTreeNode.h +++ b/src/creaImageIOTreeNode.h @@ -1,7 +1,35 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Santé) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ +*/ + + #ifndef __creaImageIOTreeNode_h_INCLUDED__ #define __creaImageIOTreeNode_h_INCLUDED__ -#include +#include #include #include #include @@ -38,7 +66,6 @@ namespace creaImageIO public: typedef std::map AttributeMapType; - /// Ctor with parent Node(Node* parent); /// Ctor with parent and attributes map @@ -60,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; } @@ -68,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; } @@ -85,7 +111,6 @@ namespace creaImageIO /// Remove the given children from the children list int RemoveChildrenFromList(Node*); - /// Get the Attributes Map AttributeMapType& GetAttributeMap() { return mAttributeMap; }