eid-viewer
eid-viewer library
convertor.h
1 #ifndef EID_VWR_CONVERTOR_H
2 #define EID_VWR_CONVERTOR_H
3 
4 #include <conversions.h>
5 #include <eid-util/utftranslate.h>
6 #include "cppeidstring.h"
7 #include <map>
8 #include <string>
9 
10 class ConversionWorker;
11 
12 class Convertor
13 {
14 private:
15  static std::map < EID_STRING, ConversionWorker * >convertors;
16  static std::map < EID_STRING, ConversionWorker * >to_xml;
17  static std::map < EID_STRING, ConversionWorker * >from_xml;
18 public:
19  Convertor();
20  EID_CHAR *convert(const EID_CHAR * label, const EID_CHAR * normal);
21  EID_CHAR *convert_to_xml(const EID_CHAR * label,
22  const EID_CHAR * normal);
23  void *convert_from_xml(const EID_CHAR * name, const EID_CHAR * value,
24  int *len_return);
25  int can_convert(const EID_CHAR * label);
26 };
27 
28 #endif
Definition: convertor.h:12
Definition: convworker.h:10