#ifndef __creaImageIOTreeNode_h_INCLUDED__
#define __creaImageIOTreeNode_h_INCLUDED__
-#include <creaImageIOTreeDescriptor.h>
+#include <creaImageIOTreeLevelDescriptor.h>
#include <creaImageIOTreeComparators.h>
#include<boost/filesystem/operations.hpp>
#include <vector>
public:
typedef std::map<std::string,std::string> AttributeMapType;
-
/// Ctor with parent
Node(Node* parent);
/// Ctor with parent and attributes map
/// 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; }
/// 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; }
/// Remove the given children from the children list
int RemoveChildrenFromList(Node*);
-
/// Get the Attributes Map
AttributeMapType& GetAttributeMap() { return mAttributeMap; }