|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
Helper class for parsing value range pairs, as in date/time ranges. More...
Public Member Functions | |
| Range (const void *const data, const size_t size, const char separator='-') | |
| Separate the given value into two range components (if possible). | |
| OFBool | isRange () const |
| Return the information whether *this refers to an actual range of values or just a single value. | |
| OFBool | hasOpenBeginning () const |
| Return the information whether *this refers to an open range without a definite beginning. | |
| OFBool | hasOpenEnd () const |
| Return the information whether *this refers to an open range without a definite end. | |
Public Attributes | |
| const char * | first |
| The first value in the range, i.e. | |
| size_t | firstSize |
| The size in bytes of the first value, will be zero if the argument is an open range with no definite beginning. | |
| const char * | second |
| The second value in the range, e.g. | |
| size_t | secondSize |
| The size in bytes of the second value, will be zero if the argument is an open range with no definite end. | |
Helper class for parsing value range pairs, as in date/time ranges.
| DcmAttributeMatching::Range::Range | ( | const void *const | data, |
| const size_t | size, | ||
| const char | separator = '-' ) |
Separate the given value into two range components (if possible).
| data | any data that might be a range of values. |
| size | the size in bytes of the value(s) passed as data. |
| separator | optional argument for using another separator than the default one (dash character '-'). |
| OFBool DcmAttributeMatching::Range::hasOpenBeginning | ( | ) | const |
Return the information whether *this refers to an open range without a definite beginning.
| OFBool DcmAttributeMatching::Range::hasOpenEnd | ( | ) | const |
Return the information whether *this refers to an open range without a definite end.
| OFBool DcmAttributeMatching::Range::isRange | ( | ) | const |
Return the information whether *this refers to an actual range of values or just a single value.
| const char* DcmAttributeMatching::Range::first |
The first value in the range, i.e.
the beginning of the range.
| const char* DcmAttributeMatching::Range::second |
The second value in the range, e.g.
the end of the range.