fw4spl
fwGdcmIO::helper::Encoding Class Reference

Helper class for encoding management. More...

#include <Encoding.hpp>

Static Public Member Functions

static FWGDCMIO_API std::string convertString (const std::string &source, const std::string &definedCharsetTerm, const std::shared_ptr< ::fwLog::Logger > &logger=nullptr) throw (::fwCore::Exception, ::boost::locale::conv::invalid_charset_error)
 Convert a DICOM string from the specified charset to utf-8. More...
 

Detailed Description

Helper class for encoding management.

Definition at line 34 of file Encoding.hpp.

Member Function Documentation

std::string fwGdcmIO::helper::Encoding::convertString ( const std::string &  source,
const std::string &  definedCharsetTerm,
const std::shared_ptr< ::fwLog::Logger > &  logger = nullptr 
)
throw (::fwCore::Exception,
::boost::locale::conv::invalid_charset_error
)
static

Convert a DICOM string from the specified charset to utf-8.

Parameters
[in]sourceSource buffer
[in]definedCharsetTermDICOM source charset
[in]loggerLogger used for conversion errors
Exceptions
fwCore::Exception
::boost::locale::conv::invalid_charset_error
Returns
converted string in utf-8 format

Definition at line 170 of file Encoding.cpp.

References SLM_WARN_IF.

Referenced by fwGdcmIO::helper::DicomDataReader::getTagValue().

+ Here is the caller graph for this function:


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