![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/XNAT/Core/ctkXnatProject.h>
Public Member Functions | |
virtual QString | childDataType () const |
Gets a human readable name of the child object type. More... | |
ctkXnatProject (ctkXnatObject *parent=0, const QString &schemaType=ctkXnatDefaultSchemaTypes::XSI_PROJECT) | |
const QString | piFirstName () const |
const QString | piLastName () const |
QString | projectDescription () const |
void | reset () |
virtual QString | resourceUri () const |
const QString | secondaryId () const |
void | setPiFirstName (const QString &piFirstName) |
void | setPiLastName (const QString &piLastName) |
void | setProjectDescription (const QString &description) |
void | setSecondaryId (const QString &secondaryId) |
virtual | ~ctkXnatProject () |
![]() | |
void | add (ctkXnatObject *child) |
Adds an object to the children of the current one. More... | |
virtual ctkXnatResource * | addResourceFolder (QString foldername, QString format="", QString content="", QString tags="") |
QList< ctkXnatObject * > | children () const |
Gets the children of the object. More... | |
QString | description () const |
Gets the description of the object. More... | |
void | download (const QString &) |
void | erase () |
Deletes the object on the XNAT server and removes it from its parent. More... | |
bool | exists () const |
Checks if the object exists on the XNAT server. More... | |
void | fetch (bool forceFetch=false) |
Fetches the children and the properties of the object. More... | |
virtual QString | id () const |
Gets the global ID of the object. More... | |
bool | isFetched () const |
Tells if the children and the properties of the objects have been fetched. More... | |
virtual QDateTime | lastModifiedTimeOnServer () |
Gets the last modification time from the server. More... | |
virtual QString | name () const |
Gets the name of the object. More... | |
ctkXnatObject * | parent () const |
const QMap< QString, QString > & | properties () const |
Gets the properties of the object. More... | |
QString | property (const QString &name) const |
Gets the value of the property with the given name. More... | |
void | remove (ctkXnatObject *child) |
Removes the object from the children of the current object. More... | |
void | save (bool overwrite=true) |
QString | schemaType () const |
void | setDescription (const QString &description) |
Sets the description of the object. More... | |
virtual void | setId (const QString &id) |
void | setLastModifiedTime (const QDateTime &lastModifiedTime) |
Sets the last modfication time on the server. More... | |
virtual void | setName (const QString &name) |
Sets the name of the object. More... | |
void | setParent (ctkXnatObject *parent) |
Sets the parent of the object in the data hierarchy. More... | |
void | setProperty (const QString &name, const QVariant &value) |
Sets the value of the property with the given name. More... | |
virtual | ~ctkXnatObject () |
Destructs the ctkXnatObject. More... | |
Static Public Attributes | |
static const QString | DESCRIPTION |
static const QString | PI_FIRSTNAME |
static const QString | PI_LASTNAME |
static const QString | SECONDARY_ID |
![]() | |
static const QString | ID |
static const QString | LABEL |
static const QString | NAME |
static const QString | URI |
static const QString | XSI_SCHEMA_TYPE |
Additional Inherited Members | |
![]() | |
ctkXnatObject (const ctkXnatObject &) | |
ctkXnatObject (ctkXnatObject *parent=0, const QString &schemaType=QString::null) | |
Constructs the ctkXnatObject. More... | |
ctkXnatObject (ctkXnatObjectPrivate &dd, ctkXnatObject *parent=0, const QString &schemaType=QString::null) | |
Constructs the ctkXnatObject with the given private part. More... | |
virtual void | fetchResources (const QString &path="/resources") |
Fetches the resources of the object. More... | |
ctkXnatSession * | session () const |
![]() | |
const QScopedPointer< ctkXnatObjectPrivate > | d_ptr |
The private implementation part of the object. More... | |
Definition at line 36 of file ctkXnatProject.h.
ctkXnatProject::ctkXnatProject | ( | ctkXnatObject * | parent = 0 , |
const QString & | schemaType = ctkXnatDefaultSchemaTypes::XSI_PROJECT |
||
) |
|
virtual |
|
virtual |
Gets a human readable name of the child object type.
Reimplemented from ctkXnatObject.
const QString ctkXnatProject::piFirstName | ( | ) | const |
const QString ctkXnatProject::piLastName | ( | ) | const |
QString ctkXnatProject::projectDescription | ( | ) | const |
|
virtual |
Resets the object so that its properties and children needs to be fetched again at the next request.
Reimplemented from ctkXnatObject.
|
virtual |
Gets the resource URI of the object that can be used to access it through the REST API.
Implements ctkXnatObject.
const QString ctkXnatProject::secondaryId | ( | ) | const |
void ctkXnatProject::setPiFirstName | ( | const QString & | piFirstName | ) |
void ctkXnatProject::setPiLastName | ( | const QString & | piLastName | ) |
void ctkXnatProject::setProjectDescription | ( | const QString & | description | ) |
void ctkXnatProject::setSecondaryId | ( | const QString & | secondaryId | ) |
|
static |
Definition at line 64 of file ctkXnatProject.h.
|
static |
Definition at line 65 of file ctkXnatProject.h.
|
static |
Definition at line 66 of file ctkXnatProject.h.
|
static |
Definition at line 63 of file ctkXnatProject.h.