#include <creaImageIOTreeDescriptor.h>
#include <creaImageIOTreeComparators.h>
+#include<boost/filesystem/operations.hpp>
#include <vector>
#include <map>
+
namespace creaImageIO
{
{ if (mData!=0) return dynamic_cast<T>(mData); return 0; }
/// Sets the node data. Deletes existing data if any.
- void SetData(NodeData* d) { if (mData) delete mData; mData = d; }
+ void SetData(boost::shared_ptr<NodeData> d) { mData = d; }//{ if (mData) delete mData; mData = d; }
/// Sorts the children of the node
void SortChildren(const LexicographicalComparator&);
/// The map of attributes
AttributeMapType mAttributeMap;
/// User data
- NodeData* mData;
+ boost::shared_ptr<NodeData> mData;
/// Are the children loaded ?
bool mChildrenLoaded;
/// The number of children