13#ifndef DCM_TREE_CHARACTER_SET_CONVERTER_H
14#define DCM_TREE_CHARACTER_SET_CONVERTER_H
20 #pragma warning (push)
21 #pragma warning (disable : 4251 4350)
factory class must be installed by implementing DLL
virtual CharacterSetConverterPtr createConverter(const std::string &originalcharacterset, const std::string &newcharacterset)=0
class CharacterSetConverter is used for converting string values from one DICOM character set to anot...
boost::shared_ptr< Factory > FactoryPtr
static void setFactory(FactoryPtr factory)
The concrete singleton is set by the implementing DLL.
static CharacterSetConverterPtr create(const std::string &originalcharacterset, const std::string &newcharacterset, DCMTree_Utils::LoadLibraryDelegate *delegate=nullptr)
create a CharacterSetConverter for the given pair of encodings; will return an identity conversion if...
virtual ~CharacterSetConverter()
dtor
virtual bool convert(std::string &value, const DCMTree::TagInfo &tagInfo) const =0
convert the string to the new character set, returns false if the conversion had errors (but the conv...
Class to carry meta-information about a specific tag.
the delegate who is responsible for loading the specific DICOM library used in initialization,...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
dictionary class to provide dicom-meta information
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...
boost::shared_ptr< const CharacterSetConverter > Const_CharacterSetConverterPtr
boost::shared_ptr< CharacterSetConverter > CharacterSetConverterPtr
shared-pointer to a DCMTree::CharacterSetConverter