|
static OFBool | isDateQuery (const void *queryData, const size_t querySize) |
| Check whether the given query data conforms to the VR DA. More...
|
|
static OFBool | isTimeQuery (const void *queryData, const size_t querySize) |
| Check whether the given query data conforms to the VR TM. More...
|
|
static OFBool | isDateTimeQuery (const void *queryData, const size_t querySize) |
| Check whether the given query data conforms to the VR DT. More...
|
|
static OFBool | singleValueMatching (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query data and the candidate using Single Value Matching, as defined by the DICOM standard. More...
|
|
static OFBool | wildCardMatching (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query and the candidate string using Wild Card Matching, as defined by the DICOM standard. More...
|
|
static OFBool | rangeMatchingDate (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query date or date range and the candidate date. More...
|
|
static OFBool | rangeMatchingTime (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query time or time range and the candidate time. More...
|
|
static OFBool | rangeMatchingDateTime (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query date time or date time range and the candidate date time. More...
|
|
static OFBool | rangeMatchingDateTime (const void *dateQueryData, const size_t dateQuerySize, const void *timeQueryData, const size_t timeQuerySize, const void *dateCandidateData, const size_t dateCandidateSize, const void *timeCandidateData, const size_t timeCandidateSize) |
| Match the query date and time or date and time range and the candidate date and time using combined datetime matching. More...
|
|
static OFBool | listOfUIDMatching (const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Match the query list of UIDs with the candidate UID. More...
|
|
|
static OFBool | checkRangeQuery (OFBool(*check)(const char *, const size_t), const void *queryData, const size_t querySize) |
| Helper function for generically implementing check functions operating on ranges. More...
|
|
template<typename T > |
static OFBool | rangeMatchingTemplate (OFCondition(*parse)(const char *, const size_t, T &), const Range &query, const T &candidate) |
| Helper template function for generically implementing range matching. More...
|
|
template<typename T > |
static OFBool | rangeMatchingTemplate (OFCondition(*parse)(const char *, const size_t, T &), const void *queryData, const size_t querySize, const void *candidateData, const size_t candidateSize) |
| Helper template function for generically implementing range matching. More...
|
|
A class that implements the different kinds attribute matching.
DcmAttributeMatching may either be used by directly calling the appropriate matching function, e.g. wildCardMatching() or by creating a DcmAttributeMatching object for a specific VR. In the latter case, DcmAttributeMatching will choose the appropriate matching function for the VR in its constructor and remember the result during its lifetime.
static OFBool DcmAttributeMatching::rangeMatchingDate |
( |
const void * |
queryData, |
|
|
const size_t |
querySize, |
|
|
const void * |
candidateData, |
|
|
const size_t |
candidateSize |
|
) |
| |
|
static |
Match the query date or date range and the candidate date.
- Parameters
-
queryData | a pointer to a character string that contains a DICOM Date (DA) or a date range. |
querySize | the size (in bytes) of the string queryData refers to. |
candidateData | a pointer to a character string that contains a DICOM Date (DA). |
candidateSize | the size (in bytes) of the string candidateData refers to. |
- Returns
- OFTrue if the query and the candidate match, OFFalse otherwise.
If querySize equals zero, the result will be OFTrue, as appropriate for Universal Matching. Otherwise query will be converted to an OFDate or a range defined by two OFDates and candidate will be converted to an OFDate. It will then be tested whether the candidate date lies within the range given by the query or is equal to the queried date as appropriate. If the conversion to OFDate is unsuccessful for any of the dates, the result will be OFFalse.
static OFBool DcmAttributeMatching::rangeMatchingDateTime |
( |
const void * |
dateQueryData, |
|
|
const size_t |
dateQuerySize, |
|
|
const void * |
timeQueryData, |
|
|
const size_t |
timeQuerySize, |
|
|
const void * |
dateCandidateData, |
|
|
const size_t |
dateCandidateSize, |
|
|
const void * |
timeCandidateData, |
|
|
const size_t |
timeCandidateSize |
|
) |
| |
|
static |
Match the query date and time or date and time range and the candidate date and time using combined datetime matching.
- Parameters
-
dateQueryData | a pointer to a character string that contains a DICOM Date (DA) or a date range. |
dateQuerySize | the size (in bytes) of the string dateQueryData refers to. |
timeQueryData | a pointer to a character string that contains a DICOM Time (TM) or a time range. |
timeQuerySize | the size (in bytes) of the string timeQueryData refers to. |
dateCandidateData | a pointer to a character string that contains a DICOM Date (DA). |
dateCandidateSize | the size (in bytes) of the string dateCandidateData refers to. |
timeCandidateData | a pointer to a character string that contains a DICOM Time (TM). |
timeCandidateSize | the size (in bytes) of the string timeCandidateData refers to. |
- Returns
- OFTrue if the query and the candidate match, OFFalse otherwise.
If dateQuerySize and timeQuerySize equal zero, the result will be OFTrue, as appropriate for Universal Matching. Otherwise the query will be converted to an OFDateTime or a range defined by two OFDateTimes and candidate will be converted to an OFDateTime as defined by combined datetime matching. It will then be tested whether the candidate date time lies within the range given by the query or is equal to the queried date time as appropriate. If the conversion to OFDateTime is unsuccessful for any of the dates or times, the result will be OFFalse.
static OFBool DcmAttributeMatching::rangeMatchingDateTime |
( |
const void * |
queryData, |
|
|
const size_t |
querySize, |
|
|
const void * |
candidateData, |
|
|
const size_t |
candidateSize |
|
) |
| |
|
static |
Match the query date time or date time range and the candidate date time.
- Parameters
-
queryData | a pointer to a character string that contains a DICOM Date Time (DT) or a date time range. |
querySize | the size (in bytes) of the string queryData refers to. |
candidateData | a pointer to a character string that contains a DICOM Date Time (DT). |
candidateSize | the size (in bytes) of the string candidateData refers to. |
- Returns
- OFTrue if the query and the candidate match, OFFalse otherwise.
If querySize equals zero, the result will be OFTrue, as appropriate for Universal Matching. Otherwise query will be converted to an OFDateTime or a range defined by two OFDateTimes and candidate will be converted to an OFDateTime. It will then be tested whether the candidate date time lies within the range given by the query or is equal to the queried date time as appropriate. If the conversion to OFDateTime is unsuccessful for any of the date times, the result will be OFFalse.
static OFBool DcmAttributeMatching::rangeMatchingTime |
( |
const void * |
queryData, |
|
|
const size_t |
querySize, |
|
|
const void * |
candidateData, |
|
|
const size_t |
candidateSize |
|
) |
| |
|
static |
Match the query time or time range and the candidate time.
- Parameters
-
queryData | a pointer to a character string that contains a DICOM Time (TM) or a time range. |
querySize | the size (in bytes) of the string queryData refers to. |
candidateData | a pointer to a character string that contains a DICOM Time (TM). |
candidateSize | the size (in bytes) of the string candidateData refers to. |
- Returns
- OFTrue if the query and the candidate match, OFFalse otherwise.
If querySize equals zero, the result will be OFTrue, as appropriate for Universal Matching. Otherwise query will be converted to an OFTime or a range defined by two OFTimes and candidate will be converted to an OFTime. It will then be tested whether the candidate time lies within the range given by the query or is equal to the queried time as appropriate. If the conversion to OFTime is unsuccessful for any of the times, the result will be OFFalse.