本文整理汇总了C++中NetClient::QueryServerGroup方法的典型用法代码示例。如果您正苦于以下问题:C++ NetClient::QueryServerGroup方法的具体用法?C++ NetClient::QueryServerGroup怎么用?C++ NetClient::QueryServerGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetClient
的用法示例。
在下文中一共展示了NetClient::QueryServerGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: query_from_net
//.........这里部分代码省略.........
}
else {
date = date_from + "-" + date_to;
}
if(date_from == date_to) {
date = date_from;
}
/*std::string station;
if(!stationname.empty()) {
station = "*" + convert_string_to(stationname.c_str(), system_enc) + "*";
}*/
DcmDataset query;
DcmElement* e = NULL;
e = newDicomElement(DCM_QueryRetrieveLevel);
e->putString("STUDY");
query.insert(e);
e = newDicomElement(DCM_SpecificCharacterSet);
e->putString(dicom_enc.c_str());
query.insert(e);
e = newDicomElement(DCM_PatientsName);
e->putString(patientsname.c_str());
query.insert(e);
e = newDicomElement(DCM_PatientID);
e->putString(convert_string_to(patientid.c_str(), system_enc).c_str());
query.insert(e);
e = newDicomElement(DCM_SOPClassesInStudy);
query.insert(e);
e = newDicomElement(DCM_ModalitiesInStudy);
e->putString(modality.c_str());
query.insert(e);
e = newDicomElement(DCM_PatientsBirthDate);
query.insert(e);
e = newDicomElement(DCM_PatientsSex);
query.insert(e);
e = newDicomElement(DCM_StudyDate);
e->putString(date.c_str());
query.insert(e);
e = newDicomElement(DCM_StudyTime);
query.insert(e);
e = newDicomElement(DCM_NumberOfStudyRelatedSeries);
query.insert(e);
e = newDicomElement(DCM_NumberOfStudyRelatedInstances);
query.insert(e);
e = newDicomElement(DCM_AccessionNumber);
e->putString(accessionnumber.c_str());
query.insert(e);
e = newDicomElement(DCM_StudyID);
query.insert(e);
e = newDicomElement(DCM_StudyInstanceUID);
query.insert(e);
e = newDicomElement(DCM_StudyDescription);
e->putString(description.c_str());
query.insert(e);
// StationName not allowed in StudyRoot
/*e = newDicomElement(DCM_StationName);
e->putString(station.c_str());
query.insert(e);*/
std::cout << "NEW QUERY:" << std::endl;
query.print(COUT);
NetClient<FindAssociation> a;
a.signal_server_result.connect(sigc::bind(sigc::ptr_fun(on_query_from_net_result), resultslot));
//std::set<std::string> groups = get_servergroups();
std::set<std::string>::iterator i = groups.begin();
// do we have groups defined ?
if(groups.size() > 0) {
while(i != groups.end()) {
a.QueryServerGroup(&query, *i, local_aet, UID_FINDStudyRootQueryRetrieveInformationModel);
i++;
}
}
// no query all servers
else {
a.QueryServerGroup(&query, "", local_aet, UID_FINDStudyRootQueryRetrieveInformationModel);
}
}