fw4spl
fwPacsIO::SeriesRetriever Class Reference

Reads DICOM series from pacs. More...

#include <SeriesRetriever.hpp>

+ Inheritance diagram for fwPacsIO::SeriesRetriever:
+ Collaboration diagram for fwPacsIO::SeriesRetriever:

Public Types

typedef ::fwCom::Slot< void(const std::string &, unsigned int, const std::string &)> ProgressCallbackSlotType
 

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWPACSIO_API SeriesRetriever ()
 Constructor.
 
FWPACSIO_API ~SeriesRetriever ()
 Destructor.
 
FWPACSIO_API void initialize (const std::string &applicationTitle, unsigned short applicationport, int timeout=3, ProgressCallbackSlotType::sptr progressCallback=ProgressCallbackSlotType::sptr())
 Initialize the connection. More...
 
FWPACSIO_API bool start ()
 Start the server.
 
- Public Member Functions inherited from fwCore::BaseObject

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Static Public Attributes

static FWPACSIO_APIconst::fwCom::Slots::SlotKeyType s_PROGRESS_CALLBACK_SLOT = "CMoveProgressCallback"
 

Protected Member Functions

virtual OFCondition handleIncomingCommand (T_DIMSE_Message *incomingMsg, const DcmPresentationContextInfo &presContextInfo) override
 Handle Incoming Command (Override)
 
virtual OFCondition handleSTORERequest (T_DIMSE_Message *incomingMsg, T_ASC_PresentationContextID presID)
 Handle C-STORE Request. More...
 

Protected Attributes

::boost::filesystem::path m_path
 Path where the files must be saved.
 
ProgressCallbackSlotType::sptr m_progressCallback
 Progress callback slot.
 
unsigned int m_instanceIndex
 Dowloaded instance index.
 

Friends

template<class , class , class >
class ::fwTools::ClassFactory
 
class ::fwTools::Factory
 

Demangling methods

virtual const std::string & getLeafClassname () const override
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Detailed Description

Reads DICOM series from pacs.

Definition at line 28 of file SeriesRetriever.hpp.

Member Function Documentation

OFCondition fwPacsIO::SeriesRetriever::handleSTORERequest ( T_DIMSE_Message *  incomingMsg,
T_ASC_PresentationContextID  presID 
)
protectedvirtual

Handle C-STORE Request.

Parameters
[in]incomingMsgIncoming DIMSE message
[in]presIDPresentation context ID
Returns
OFTrue on success

Definition at line 112 of file SeriesRetriever.cpp.

References m_instanceIndex, m_path, m_progressCallback, OSLM_TRACE, and SLM_TRACE.

Referenced by handleIncomingCommand().

+ Here is the caller graph for this function:

void fwPacsIO::SeriesRetriever::initialize ( const std::string &  applicationTitle,
unsigned short  applicationport,
int  timeout = 3,
ProgressCallbackSlotType::sptr  progressCallback = ProgressCallbackSlotType::sptr() 
)

Initialize the connection.

Parameters
[in]applicationTitleMove application title
[in]applicationportMove application port
[in]pathLocal dicom folder path
[in]timeoutConnection timeout
[in]progressCallbackProgress callback

Definition at line 45 of file SeriesRetriever.cpp.

References fwTools::System::getTemporaryFolder(), fwDcmtkTools::Dictionary::loadDictionary(), m_path, m_progressCallback, and SLM_ASSERT.

+ Here is the call graph for this function:


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