Logo Search packages:      
Sourcecode: gdcm version File versions

gdcm::Sorter Class Reference

#include <gdcmSorter.h>

Inheritance diagram for gdcm::Sorter:

gdcm::IPPSorter

List of all members.


Detailed Description

Sorter General class to do sorting using a custom function You simply need to provide a function of type: Sorter::SortFunction.

Warning:
implementation details. For now there is no cache mechanism. Which means that everytime you call Sort, all files specified as input paramater are *read*
See also:
Scanner

Definition at line 39 of file gdcmSorter.h.


Public Types

typedef bool(* SortFunction )(DataSet const &, DataSet const &)
 Set the sort function which compares one dataset to the other.

Public Member Functions

bool AddSelect (Tag const &tag, const char *value)
 UNSUPPORTED FOR NOW.
const std::vector< std::string > & GetFilenames () const
void Print (std::ostream &os) const
 Print.
void SetSortFunction (SortFunction f)
virtual bool Sort (std::vector< std::string > const &filenames)
 Typically the output of gdcm::Directory::GetFilenames().
virtual bool StableSort (std::vector< std::string > const &filenames)

Protected Types

typedef std::map< Tag,
std::string > 
SelectionMap

Protected Attributes

std::vector< std::string > Filenames
std::map< Tag, std::string > Selection
SortFunction SortFunc

Friends

std::ostream & operator<< (std::ostream &_os, const Sorter &s)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index