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 "utftranslate.h"
6 #include "cppeidstring.h"
7 #include <map>
8 #include <string>
9 
10 class ConversionWorker;
11 class XmlConversionWorker;
12 
13 class Convertor {
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, const EID_CHAR* normal);
22  void* convert_from_xml(const EID_CHAR* name, const EID_CHAR* value, int* len_return);
23  int can_convert(const EID_CHAR* label);
24 };
25 
26 #endif
Definition: convertor.h:13
Definition: convworker.h:10