DCMTK  Version 3.6.1 20131114
OFFIS DICOM Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DcmQueryRetrieveTelnetInitiator Class Reference

this class provides the functionality of the telnet initiator application More...

+ Collaboration diagram for DcmQueryRetrieveTelnetInitiator:

Public Member Functions

 DcmQueryRetrieveTelnetInitiator (DcmQueryRetrieveConfig &cfg)
 constructor More...
 
void TI_userInput ()
 main entry point for console-based user interface
 
OFBool addPeerName (const char *peerName, const char *configFileName)
 add remote peer to list of peers More...
 
void printConfig ()
 print TI configuration to stdout
 
OFBool TI_detachAssociation (OFBool abortFlag)
 detach current association More...
 
void setAETitle (const char *ae)
 set local aetitle More...
 
void setMaxPDU (OFCmdUnsignedInt pdu)
 set max receive PDU More...
 
void activateFirstPeer ()
 activate first peer in list of peers
 
T_ASC_Network ** accessNet ()
 provide read/write access to network structure maintained by this object. More...
 
int getdbCount () const
 return number of databases
 
void createConfigEntries (const char *configFileName, int remoteDBTitlesCount, const char **remoteDBTitles)
 create configuration entries for remote databases More...
 
void setXferSyntax (E_TransferSyntax xfer)
 set the network transfer syntax More...
 
void setBlockMode (T_DIMSE_BlockingMode blockMode, int timeout)
 set blocking mode and timeout for DIMSE operations More...
 

Private Member Functions

OFBool TI_attachAssociation ()
 
OFBool TI_changeAssociation ()
 
OFBool TI_sendEcho ()
 
OFBool TI_storeImage (char *sopClass, char *sopInstance, char *imgFile)
 
OFBool TI_remoteFindQuery (TI_DBEntry *db, DcmDataset *query, TI_GenericEntryCallbackFunction callbackFunction, TI_GenericCallbackStruct *callbackData)
 
OFBool TI_title (int arg, const char *)
 
OFBool TI_attachDB (TI_DBEntry *db)
 
OFBool TI_database (int arg, const char *)
 
OFBool TI_echo (int arg, const char *)
 
OFBool TI_quit (int arg, const char *)
 
OFBool TI_actualizeStudies ()
 
OFBool TI_study (int arg, const char *)
 
OFBool TI_actualizeSeries ()
 
OFBool TI_series (int arg, const char *)
 
OFBool TI_actualizeImages ()
 
OFBool TI_image (int arg, const char *)
 
OFBool TI_buildStudies (TI_DBEntry *db)
 
OFBool TI_buildSeries (TI_DBEntry *db, TI_StudyEntry *study)
 
OFBool TI_buildRemoteImages (TI_DBEntry *db, TI_StudyEntry *study, TI_SeriesEntry *series)
 
OFBool TI_buildImages (TI_DBEntry *db, TI_StudyEntry *study, TI_SeriesEntry *series)
 
OFBool TI_sendStudy (int arg, const char *)
 
OFBool TI_sendSeries (int arg, const char *)
 
OFBool TI_sendImage (int arg, const char *)
 
OFBool TI_send (int, const char *cmdbuf)
 
OFBool TI_shortHelp (int, const char *)
 
OFBool TI_help (int arg, const char *)
 
OFBool TI_buildRemoteStudies (TI_DBEntry *db)
 
OFBool TI_buildRemoteSeries (TI_DBEntry *db, TI_StudyEntry *study)
 
OFBool TI_dbReadable (const char *dbTitle)
 
time_t TI_dbModifyTime (const char *dbTitle)
 
OFCondition addPresentationContexts (T_ASC_Parameters *params)
 
OFBool findDBPeerTitles (const char *configFileName, TI_DBEntry *dbEntry, const char *peer)
 

Private Attributes

TI_DBEntry ** dbEntries
 the CTN databases we know
 
int dbCount
 number of entries in databases we know
 
const char * peerHostName
 current peer to talk to
 
const char * peerNames [TI_MAXPEERS]
 list of peer names
 
int peerNamesCount
 number of peer names in list
 
const char * myAETitle
 my application entity title
 
T_ASC_Networknet
 active network
 
T_ASC_Associationassoc
 currently active association
 
OFCmdUnsignedInt maxReceivePDULength
 number of bytes per PDU we can receive
 
int currentdb
 current database index
 
const char * currentPeerTitle
 current peer title
 
DcmQueryRetrieveConfigconfig
 configuration facility
 
E_TransferSyntax networkTransferSyntax
 network transfer syntax
 
T_DIMSE_BlockingMode blockMode_
 blocking mode for DIMSE operations
 
int dimse_timeout_
 timeout for DIMSE operations
 

Detailed Description

this class provides the functionality of the telnet initiator application

Constructor & Destructor Documentation

DcmQueryRetrieveTelnetInitiator::DcmQueryRetrieveTelnetInitiator ( DcmQueryRetrieveConfig cfg)

constructor

Parameters
cfgconfiguration facility

Member Function Documentation

T_ASC_Network** DcmQueryRetrieveTelnetInitiator::accessNet ( )
inline

provide read/write access to network structure maintained by this object.

Yes, this is ugly.

Returns
pointer to pointer to network structure
OFBool DcmQueryRetrieveTelnetInitiator::addPeerName ( const char *  peerName,
const char *  configFileName 
)

add remote peer to list of peers

Parameters
peerNamename of peer
configFileNamename of configuration file from which peer was read
void DcmQueryRetrieveTelnetInitiator::createConfigEntries ( const char *  configFileName,
int  remoteDBTitlesCount,
const char **  remoteDBTitles 
)

create configuration entries for remote databases

Parameters
configFileNamename of configuration file
remoteDBTitlesCountnumber of remote DB titles
remoteDBTitleslist of remote DB titles
void DcmQueryRetrieveTelnetInitiator::setAETitle ( const char *  ae)
inline

set local aetitle

Parameters
aeaetitle
void DcmQueryRetrieveTelnetInitiator::setBlockMode ( T_DIMSE_BlockingMode  blockMode,
int  timeout 
)
inline

set blocking mode and timeout for DIMSE operations

Parameters
blockModeblocking mode for DIMSE operations
timeouttimeout for DIMSE operations
void DcmQueryRetrieveTelnetInitiator::setMaxPDU ( OFCmdUnsignedInt  pdu)
inline

set max receive PDU

Parameters
pdumax receive PDU size
void DcmQueryRetrieveTelnetInitiator::setXferSyntax ( E_TransferSyntax  xfer)
inline

set the network transfer syntax

Parameters
xfernew network transfer syntax
OFBool DcmQueryRetrieveTelnetInitiator::TI_detachAssociation ( OFBool  abortFlag)

detach current association

Parameters
abortFlagif true, abort association instead of releasing it

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


Generated on Tue Nov 26 2013 for DCMTK Version 3.6.1 20131114 by Doxygen 1.8.5