Sorter General class to do sorting using a custom function You simply need to provide a function of type: Sorter::SortFunction.
More...
#include <gdcmSorter.h>
List of all members.
Public Types |
typedef bool(* | SortFunction )(DataSet const &, DataSet const &) |
| Set the sort function which compares one dataset to the other.
|
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
- Examples:
- SortImage.cxx, and VolumeSorter.cxx.
Member Typedef Documentation
typedef bool(* gdcm::Sorter::SortFunction)(DataSet const &, DataSet const &) |
Set the sort function which compares one dataset to the other.
Constructor & Destructor Documentation
virtual gdcm::Sorter::~Sorter |
( |
| ) |
|
|
virtual |
Member Function Documentation
bool gdcm::Sorter::AddSelect |
( |
Tag const & |
tag, |
|
|
const char * |
value |
|
) |
| |
const std::vector<std::string>& gdcm::Sorter::GetFilenames |
( |
| ) |
const |
|
inline |
void gdcm::Sorter::Print |
( |
std::ostream & |
os | ) |
const |
virtual bool gdcm::Sorter::Sort |
( |
std::vector< std::string > const & |
filenames | ) |
|
|
virtual |
virtual bool gdcm::Sorter::StableSort |
( |
std::vector< std::string > const & |
filenames | ) |
|
|
virtual |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
_os, |
|
|
const Sorter & |
s |
|
) |
| |
|
friend |
Member Data Documentation
std::vector<std::string> gdcm::Sorter::Filenames |
|
protected |
std::map<Tag,std::string> gdcm::Sorter::Selection |
|
protected |
The documentation for this class was generated from the following file: