# gdcm::DictConverter Class Reference

Class to convert a .dic file into something else:

- CXX code : embeded dict into shared lib (DICT_DEFAULT)
- Debug mode (DICT_DEBUG)
- XML dict (DICT_XML)

More...

`#include <gdcmDictConverter.h>`

List of all members.

## Public Types

enum | OutputTypes { DICT_DEFAULT = 0, DICT_DEBUG, DICT_XML }

## Public Member Functions

| DictConverter ()
| ~DictConverter ()
void | Convert ()
const std::string & | GetDictName () const
const std::string & | GetInputFilename () const
const std::string & | GetOutputFilename () const
int | GetOutputType () const
void | SetDictName (const char *name)
void | SetInputFileName (const char *filename)
void | SetOutputFileName (const char *filename)
void | SetOutputType (int type)

## Static Public Member Functions

static bool | Readuint16 (const char *raw, uint16_t &ov)
static bool | ReadVM (const char *raw, VM::VMType &type)
static bool | ReadVR (const char *raw, VR::VRType &type)

## Protected Member Functions

void | AddGroupLength ()
bool | ConvertToCXX (const char *raw, std::string &cxx)
bool | ConvertToXML (const char *raw, std::string &cxx)
void | WriteFooter ()
void | WriteHeader ()

## Detailed Description

Class to convert a .dic file into something else:

- CXX code : embeded dict into shared lib (DICT_DEFAULT)
- Debug mode (DICT_DEBUG)
- XML dict (DICT_XML)

Note:

## Member Enumeration Documentation

enum gdcm::DictConverter::OutputTypes

Enumerator:

  DICT_DEFAULT |
  DICT_DEBUG |
  DICT_XML |

## Constructor & Destructor Documentation

gdcm::DictConverter::DictConverter | ( |  | ) |

gdcm::DictConverter::~DictConverter | ( |  | ) |

## Member Function Documentation

void gdcm::DictConverter::AddGroupLength | ( |  | ) | `[protected]`

void gdcm::DictConverter::Convert | ( |  | ) |

bool gdcm::DictConverter::ConvertToCXX | ( | const char * | raw,
|  | std::string & | cxx
| ) |  | `[protected]`

bool gdcm::DictConverter::ConvertToXML | ( | const char * | raw,
|  | std::string & | cxx
| ) |  | `[protected]`

const std::string& gdcm::DictConverter::GetDictName | ( |  | ) | const

const std::string& gdcm::DictConverter::GetInputFilename | ( |  | ) | const

const std::string& gdcm::DictConverter::GetOutputFilename | ( |  | ) | const

int gdcm::DictConverter::GetOutputType | ( |  | ) | const`[inline]`

static bool gdcm::DictConverter::Readuint16 | ( | const char * | raw,
|  | uint16_t & | ov
| ) |  | `[static]`

static bool gdcm::DictConverter::ReadVM | ( | const char * | raw,
|  | VM::VMType & | type
| ) |  | `[static]`

static bool gdcm::DictConverter::ReadVR | ( | const char * | raw,
|  | VR::VRType & | type
| ) |  | `[static]`

void gdcm::DictConverter::SetDictName | ( | const char * | name | ) |

void gdcm::DictConverter::SetInputFileName | ( | const char * | filename | ) |

void gdcm::DictConverter::SetOutputFileName | ( | const char * | filename | ) |

void gdcm::DictConverter::SetOutputType | ( | int | type | ) | `[inline]`

void gdcm::DictConverter::WriteFooter | ( |  | ) | `[protected]`

void gdcm::DictConverter::WriteHeader | ( |  | ) | `[protected]`

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

- gdcmDictConverter.h