Search found 43 matches

by ruben.cruz
Wed, 2019-07-17, 16:40
Forum: DCMTK - General
Topic: Logs layout error
Replies: 7
Views: 4030

Logs layout error

Hi, I am trying for a couple of days to fix this problem. So, i am trying to create a generic pattern for logs using your samples into something like this: const char *pattern = "%D{%Y-%m-%d %H:%M:%S.%q} %5p: %m%n"; OFunique_ptr<dcmtk::log4cplus::Layout> layout(new dcmtk::log4cplus::Patter...
by ruben.cruz
Tue, 2019-07-09, 14:22
Forum: DCMTK - General
Topic: Check if no associations are being used.
Replies: 7
Views: 3413

Re: Check if no associations are being used.

The "status summary" is a feature of the DcmStorageSCU Yes, and we are trying to make something similar into our DcmSCP-derived. can we somehow get something like "TransferList.size" on SCP to know how many files we will receive? sorry if it is a simple question but we can't fin...
by ruben.cruz
Mon, 2019-07-08, 15:32
Forum: DCMTK - General
Topic: Check if no associations are being used.
Replies: 7
Views: 3413

Re: Check if no associations are being used.

Hi, Thank you for your answer but we can't reach any solution on owr side. So, to do a overwrite of notifyAssociationTermination we would like to know what is inside of that function previously? What we really want to do is in the end of the association to create a file (report) with info similar to...
by ruben.cruz
Fri, 2019-07-05, 16:51
Forum: DCMTK - General
Topic: Check if no associations are being used.
Replies: 7
Views: 3413

Check if no associations are being used.

Hi, first of all thank for the help in previous questions, we encounter a problem that we could not find a way to solve it properly. So we are creating an application using c++/cli and in previous question you help us pointing to use "handleIncomingCommand" and "handleSTORERequest&quo...
by ruben.cruz
Wed, 2019-06-05, 12:51
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

@Michael Onken i have a small problem i guess for this case creating a new topic would not be needed. I have been trying to create new folders using : status = OFStandard::createDirectory(generatedDirName, directoryName /* rootDir */); before the combineDirAndFilename and fileformat.saveFile(..) but...
by ruben.cruz
Thu, 2019-05-30, 12:07
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

hi, Thank you for the help! i just fixed what you send since it was not working for me DcmFileFormat fileformat; *&reqDataset = fileformat.getDataset(); OFCondition result = receiveSTORERequest(reqMessage, presID, reqDataset); if (result.good()) { result = fileformat.saveFile("/path/to/the/...
by ruben.cruz
Tue, 2019-05-28, 16:02
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Thank you so much for your help so far, the code is very usefull and we have been digging into it. Now we would like to know how to handle the file to store it in a disered Directory. We believe that maybe has something to do with "DcmFileFormat". Can you give us a sample on how to handle ...
by ruben.cruz
Tue, 2019-05-28, 10:36
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Yes, with "stopAfterCurrentAssociations()" and "setConnectionBlockingMode(DUL_NOBLOCK)" it stops the listen. but i need a way to "setOutputDirectory()". DcmBaseSCPPool has the functions to stop but does not have a way to set the output directory. DcmStorageSCP has a way...
by ruben.cruz
Tue, 2019-05-28, 09:54
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Yes, and it does exactly what you said, then i have
OFStandard::sleep(5);
since i am testing it just stays there for 5 seconds to receive a incoming association.
by ruben.cruz
Tue, 2019-05-28, 09:37
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

What happens if you call stopAfterCurrentAssociations() on the DcmBaseSCPPool class? it goes into to a state of waiting for a association to finish then it stops. It "kind" does what we need, it stop the listen() and stop using the port, meaning i can restart if i need with new configurat...
by ruben.cruz
Mon, 2019-05-27, 17:52
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 12
Views: 6012

DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Hi, Have been creating using C (c++/cli) at this moment we need to be able to start, stop and start again our scp to receive connections in a given port. We have 2 problems that we can't find the solution yet. We are using DcmSCPPool to start our listen() with given Configurations, we use this libra...
by ruben.cruz
Mon, 2019-05-06, 10:22
Forum: DCMTK - General
Topic: How to get data from DICOM file receiver in C++
Replies: 5
Views: 3363

Re: How to get data from DICOM file receiver in C++

Thank you so much for your time, i have been looking into the documentation and the links you provide but can't figure it out how to solve the main issue. have been using the "setDatasetStorageMode(DcmStorageSCP::DGM_StoreToFile)" but what is exactly need is a way to get the PatientID and ...
by ruben.cruz
Fri, 2019-05-03, 17:26
Forum: DCMTK - General
Topic: How to get data from DICOM file receiver in C++
Replies: 5
Views: 3363

How to get data from DICOM file receiver in C++

hi, we are trying to develop a small tool in c++ to receive and store DICOM files. Main goal is to store it and save the information of each into a another file or a database. this is the code we have been using, but we need to understand were and how to get the data from each file receive to use it...