VivoQuant 6.5.0
Loading...
Searching...
No Matches
AbstractDicomRepository Class Referenceabstract

Description

A DICOM repository: an iPACS server, a DICOM server or a local folder.

See also VQ.dcmRep(), VQ.currentDcmRep() and VQ.loadRepository() to obtain this object. Errors are reported through the functions it inherits from HasErrorQObject.

Public Member Functions

string get (string key)
 Returns one of the repository's stored settings.
void setUsername (string u)
 Sets the user name used to connect.
void setPassword (string p)
 Sets the password used to connect.
virtual bool deleteData (string SOPInstanceUID)
 Deletes one image from the repository.
string project ()
 Returns the current project.
void setProject (string p)
 Sets the project used by queries, downloads and uploads.
Public Member Functions inherited from HasErrorQObject
bool hasError ()
 Returns true if an error message is stored.
void clearError ()
 Clears the stored error message.
string takeError ()
 Returns the stored error message and clears it.
string errorString ()
 Returns the stored error message, or an empty string. The message is kept.

Member Function Documentation

◆ deleteData()

virtual bool deleteData ( string SOPInstanceUID)
inlinevirtual

Deletes one image from the repository.

Parameters
SOPInstanceUIDThe SOPInstanceUID of the image
Returns
true if the image was deleted. Only iPACS repositories support this; other repositories always return false.

◆ get()

string get ( string key)
inline

Returns one of the repository's stored settings.

Parameters
keyThe setting name
Returns
The value, or an empty string if it is not set

◆ project()

string project ( )
inline

Returns the current project.

Returns
The project path, or an empty string if none is set
See also
setProject()

◆ setPassword()

void setPassword ( string p)
inline

Sets the password used to connect.

Parameters
pThe password

◆ setProject()

void setProject ( string p)
inline

Sets the project used by queries, downloads and uploads.

Parameters
pThe project path on the server
Note
The selection is saved, so it is also used the next time this repository is loaded.

◆ setUsername()

void setUsername ( string u)

Sets the user name used to connect.

Parameters
uThe user name. A non-empty name is also remembered as the last user.