private:
/// Adds a single file to the TreeHandler
- /// **WITHOUT** testing werther it is handled or not
+ /// **WITHOUT** testing wether it is handled or not
/// hence you have to call IsHandledFile before using AddFile!
void AddFile( const std::string& filename );
/// Recursive method which does the main job for AddDirectory
void AddDirectoryRecursor( const std::string& directory,
bool recurse );
+
+ ///Sets the number of children for the tree
+ void SetNumberOfChildren();
+
+ ///Sets the number of children recursively for the given node
+ void SetNumberOfChildrenRecursor(tree::Node* node);
TreeHandler* mTreeHandler;
Progress mProgress;
ProgressSignalType mProgressSignal;
+
+
};
// EO class TreeHandlerImageAdder
//=======================================================================
+
+
+
} // EO namespace creaImageIO
+#include <iostream>
+inline std::ostream& operator << ( std::ostream& o,
+ const creaImageIO::TreeHandlerImageAdder::Progress& p)
+{
+ o << p.GetNumberScannedFiles() << " files - "
+ << p.GetNumberScannedDirs() << " dirs - "
+ << p.GetNumberHandledFiles() << " handled -"
+ << p.GetNumberAddedFiles() << " added";
+ return o;
+}
+
// EOF
#endif