DCMTK
Version 3.6.7
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). More... | |
OFBool | isRange () const |
Return the information whether *this refers to an actual range of values or just a single value. More... | |
OFBool | hasOpenBeginning () const |
Return the information whether *this refers to an open range without a definite beginning. More... | |
OFBool | hasOpenEnd () const |
Return the information whether *this refers to an open range without a definite end. More... | |
Public Attributes | |
const char * | first |
The first value in the range, i.e. More... | |
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. More... | |
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.