![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Parses the xml response when requesting the catalog xml of a resource. More...
#include <Libs/XNAT/Core/ctkXnatResourceCatalogXmlParser.h>
Public Member Functions | |
ctkXnatResourceCatalogXmlParser () | |
void | parseXml (QList< QVariantMap > &result) |
Parses the xml input and extracts the md5 hashes of the resource catalog. More... | |
void | setData (const QByteArray &xmlInput) |
Set the xml input for the parser. More... | |
~ctkXnatResourceCatalogXmlParser () | |
Parses the xml response when requesting the catalog xml of a resource.
When sending the following request to XNAT: <xnat-url>/projects/myProject/resources/<resource-id> you get the catalog xml of the resource folder as response
This class parses this response and returns the MD5 hashes of all the resource files, which are contained by the resource folder.
Definition at line 44 of file ctkXnatResourceCatalogXmlParser.h.
ctkXnatResourceCatalogXmlParser::ctkXnatResourceCatalogXmlParser | ( | ) |
ctkXnatResourceCatalogXmlParser::~ctkXnatResourceCatalogXmlParser | ( | ) |
void ctkXnatResourceCatalogXmlParser::parseXml | ( | QList< QVariantMap > & | result | ) |
Parses the xml input and extracts the md5 hashes of the resource catalog.
result | the QList in which the md5 hashes will be stored |
void ctkXnatResourceCatalogXmlParser::setData | ( | const QByteArray & | xmlInput | ) |
Set the xml input for the parser.
xmlInput | as QByteArray |