32 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmnet/dicom.h" 35 #include "dcmtk/dcmnet/cond.h" 36 #include "dcmtk/dcmnet/assoc.h" 37 #include "dcmtk/dcmnet/dimse.h" 38 #include "dcmtk/ofstd/ofcmdln.h" 39 #include "dcmtk/dcmqrdb/dcmqrcnf.h" 47 #define TI_MAXPEERS 100 48 #define TI_MAXDATABASES 100 49 #define TI_MAXSTUDIES 1000 50 #define TI_MAXSERIES 500 51 #define TI_MAXIMAGES 1000 59 DIC_UI sopInstanceUID;
66 DIC_UI seriesInstanceUID;
78 DIC_UI studyInstanceUID;
92 const char **peerTitles;
105 time_t lastQueryTime;
138 OFBool addPeerName(
const char *peerName,
const char *configFileName);
147 OFBool TI_detachAssociation(OFBool abortFlag);
162 maxReceivePDULength = pdu;
169 peerHostName = peerNames[0];
192 void createConfigEntries(
193 const char *configFileName,
194 int remoteDBTitlesCount,
195 const char **remoteDBTitles);
208 blockMode_ = blockMode;
209 dimse_timeout_ = timeout;
214 OFBool TI_attachAssociation();
215 OFBool TI_changeAssociation();
216 OFBool TI_sendEcho();
217 OFBool TI_storeImage(
char *sopClass,
char *sopInstance,
char * imgFile);
218 OFBool TI_remoteFindQuery(
220 TI_GenericEntryCallbackFunction callbackFunction,
222 OFBool TI_title(
int arg,
const char * );
224 OFBool TI_database(
int arg,
const char * );
225 OFBool TI_echo(
int arg,
const char * );
226 OFBool TI_quit(
int arg,
const char * );
227 OFBool TI_actualizeStudies();
228 OFBool TI_study(
int arg,
const char * );
229 OFBool TI_actualizeSeries();
230 OFBool TI_series(
int arg,
const char * );
231 OFBool TI_actualizeImages();
232 OFBool TI_image(
int arg,
const char * );
237 OFBool TI_sendStudy(
int arg,
const char * );
238 OFBool TI_sendSeries(
int arg,
const char * );
239 OFBool TI_sendImage(
int arg,
const char * );
240 OFBool TI_send(
int ,
const char *cmdbuf);
241 OFBool TI_shortHelp(
int ,
const char * );
242 OFBool TI_help(
int arg,
const char * );
245 OFBool TI_dbReadable(
const char *dbTitle);
246 time_t TI_dbModifyTime(
const char *dbTitle);
249 OFBool findDBPeerTitles(
250 const char *configFileName,
264 const char *peerNames[TI_MAXPEERS];
const char * peerHostName
current peer to talk to
int peerNamesCount
number of peer names in list
T_DIMSE_BlockingMode blockMode_
blocking mode for DIMSE operations
T_ASC_Network ** accessNet()
provide read/write access to network structure maintained by this object.
int currentdb
current database index
void activateFirstPeer()
activate first peer in list of peers
OFCmdUnsignedInt maxReceivePDULength
number of bytes per PDU we can receive
int dbCount
number of entries in databases we know
const char * myAETitle
my application entity title
E_TransferSyntax networkTransferSyntax
network transfer syntax
const char * currentPeerTitle
current peer title
void setAETitle(const char *ae)
set local aetitle
abstract base class for database handles.
T_ASC_Association * assoc
currently active association
DcmQueryRetrieveConfig & config
configuration facility
int getdbCount() const
return number of databases
void setMaxPDU(OFCmdUnsignedInt pdu)
set max receive PDU
a class handling the DICOM dataset format (files without meta header)
int dimse_timeout_
timeout for DIMSE operations
TI_DBEntry ** dbEntries
the CTN databases we know
void setXferSyntax(E_TransferSyntax xfer)
set the network transfer syntax
this class describes configuration settings for a Query/Retrieve SCP Service
void setBlockMode(T_DIMSE_BlockingMode blockMode, int timeout)
set blocking mode and timeout for DIMSE operations
this class provides the functionality of the telnet initiator application
T_ASC_Network * net
active network
General purpose class for condition codes.