GDCM
2.2.0
|
#include <gdcmFilenameGenerator.h>
Public Types | |
typedef std::vector< FilenameType > | FilenamesType |
typedef std::string | FilenameType |
typedef FilenamesType::size_type | SizeType |
Public Member Functions | |
FilenameGenerator () | |
~FilenameGenerator () | |
bool | Generate () |
Generate (return success) | |
const char * | GetFilename (SizeType n) const |
Get a particular filename (call after Generate) | |
FilenamesType const & | GetFilenames () const |
Return all filenames. | |
SizeType | GetNumberOfFilenames () const |
const char * | GetPattern () const |
const char * | GetPrefix () const |
void | SetNumberOfFilenames (SizeType nfiles) |
Set/Get the number of filenames to generate. | |
void | SetPattern (const char *pattern) |
Set/Get pattern. | |
void | SetPrefix (const char *prefix) |
Set/Get prefix. |
class to generate filenames based on a pattern (C-style)
Output will be:
for i = 0, number of filenames: outfilename[i] = prefix + (pattern % i)
where pattern % i means C-style snprintf of Pattern using value 'i'
typedef std::vector<FilenameType> gdcm::FilenameGenerator::FilenamesType |
typedef std::string gdcm::FilenameGenerator::FilenameType |
typedef FilenamesType::size_type gdcm::FilenameGenerator::SizeType |
|
inline |
|
inline |
bool gdcm::FilenameGenerator::Generate | ( | ) |
Generate (return success)
const char* gdcm::FilenameGenerator::GetFilename | ( | SizeType | n | ) | const |
Get a particular filename (call after Generate)
|
inline |
Return all filenames.
SizeType gdcm::FilenameGenerator::GetNumberOfFilenames | ( | ) | const |
|
inline |
|
inline |
void gdcm::FilenameGenerator::SetNumberOfFilenames | ( | SizeType | nfiles | ) |
Set/Get the number of filenames to generate.
|
inline |
Set/Get pattern.
|
inline |
Set/Get prefix.