CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkXnatResourceCatalogXmlParser Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ctkXnatResourceCatalogXmlParser()

ctkXnatResourceCatalogXmlParser::ctkXnatResourceCatalogXmlParser ( )

◆ ~ctkXnatResourceCatalogXmlParser()

ctkXnatResourceCatalogXmlParser::~ctkXnatResourceCatalogXmlParser ( )

Member Function Documentation

◆ parseXml()

void ctkXnatResourceCatalogXmlParser::parseXml ( QList< QVariantMap > &  result)

Parses the xml input and extracts the md5 hashes of the resource catalog.

Parameters
resultthe QList in which the md5 hashes will be stored

◆ setData()

void ctkXnatResourceCatalogXmlParser::setData ( const QByteArray &  xmlInput)

Set the xml input for the parser.

Parameters
xmlInputas QByteArray

The documentation for this class was generated from the following file: