25 #ifndef WREADERCLUSTERING_H_
26 #define WREADERCLUSTERING_H_
35 #include "core/common/WStringUtils.h"
36 #include "core/dataHandler/WDataSetHierarchicalClustering.h"
37 #include "core/dataHandler/datastructures/WTreeNode.h"
38 #include "core/dataHandler/exceptions/WDHIOFailure.h"
39 #include "core/dataHandler/exceptions/WDHNoSuchFile.h"
40 #include "core/dataHandler/exceptions/WDHParseError.h"
41 #include "core/dataHandler/io/WReader.h"
Represents a hierarchy of clusters.
Represents a cluster of indices of a WDataSetFiberVector.
Reads a hierarchical clustering from a FDG file.
std::map< size_t, WFiberCluster::SPtr > m_clustering
Stores the hierarchical clustering map.
friend class WReaderClusteringTest
Only UnitTests may be friends.
virtual std::shared_ptr< WDataSetHierarchicalClustering > read()
Reads the clustering file and creates a dataset out of it.
std::shared_ptr< size_t > m_level
The current hierarchy level the reader is reading.
virtual ~WReaderClustering()
Destroys this instance and closes the file.
std::map< size_t, WTreeNode::SPtr > m_nodes
Stores the hierarchical clustering map.
std::vector< std::string > m_lines
The lines of the fdg file.
WReaderClustering(std::string fname)
Constructs and makes a new FDG reader for separate thread start.
Read some data from a given file.
A node in a tree, holding an index, a level in the tree and pointers to its child nodes.