#include <itkRegularExpressionSeriesFileNames.h>
Inheritance diagram for itk::RegularExpressionSeriesFileNames:
Public Types | |
typedef RegularExpressionSeriesFileNames | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
const std::vector< std::string > & | GetFileNames () |
virtual void | SetDirectory (const char *_arg) |
virtual const char * | GetDirectory () const |
virtual void | SetRegularExpression (const char *_arg) |
virtual const char * | GetRegularExpression () const |
virtual void | SetSubMatch (unsigned int _arg) |
virtual unsigned int | GetSubMatch () |
virtual void | SetNumericSort (bool _arg) |
virtual bool | GetNumericSort () |
virtual void | NumericSortOn () |
virtual void | NumericSortOff () |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
RegularExpressionSeriesFileNames () | |
~RegularExpressionSeriesFileNames () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
This class generates an ordered sequence of files whose filenames match a regular expression. The file names are sorted using a sub expression match selected by SubMatch. Regular expressions are a powerful, compact mechanism for parsing strings. Expressions consist of the following metacharacters:
^ Matches at beginning of a line
$ Matches at end of a line
. Matches any single character
[ ] Matches any character(s) inside the brackets
[^ ] Matches any character(s) not inside the brackets
* Matches preceding pattern zero or more times
+ Matches preceding pattern one or more times
? Matches preceding pattern zero or once only
() Saves a matched expression and uses it in a later match
Note that more than one of these metacharacters can be used in a single regular expression in order to create complex search patterns. For example, the pattern [^ab1-9] says to match any character sequence that does not begin with the characters "ab" followed by numbers in the series one through nine.
Definition at line 72 of file itkRegularExpressionSeriesFileNames.h.
|
Reimplemented from itk::Object. Definition at line 78 of file itkRegularExpressionSeriesFileNames.h. |
|
Standard class typedefs. Reimplemented from itk::Object. Definition at line 76 of file itkRegularExpressionSeriesFileNames.h. Referenced by ~RegularExpressionSeriesFileNames(). |
|
Reimplemented from itk::Object. Definition at line 77 of file itkRegularExpressionSeriesFileNames.h. |
|
Definition at line 116 of file itkRegularExpressionSeriesFileNames.h. |
|
Definition at line 122 of file itkRegularExpressionSeriesFileNames.h. References Self. |
|
The directory containing the files. |
|
Returns a vector containing the series' file names. The file names are sorted by the sub expression selected by the SubMatch id. |
|
Run-time type information (and related methods). Reimplemented from itk::Object. |
|
NumericSortOn changes the sort of the submatch field to a numeric sort. NumericSortOff is the default, and sorts the submatch alphabetically. |
|
The RegularExpression. Refer to the description for valid expressions |
|
The index of the submatch that will be used to sort the matches. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
NumericSortOn changes the sort of the submatch field to a numeric sort. NumericSortOff is the default, and sorts the submatch alphabetically. |
|
NumericSortOn changes the sort of the submatch field to a numeric sort. NumericSortOff is the default, and sorts the submatch alphabetically. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Object. |
|
The directory containing the files. |
|
NumericSortOn changes the sort of the submatch field to a numeric sort. NumericSortOff is the default, and sorts the submatch alphabetically. |
|
The RegularExpression. Refer to the description for valid expressions |
|
The index of the submatch that will be used to sort the matches. |