TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / include / Win32CodingSystem.h
1 // Copyright (c) 1996 James Clark
2 // See the file COPYING for copying permission.
3
4 #ifndef Win32CodingSystem_INCLUDED
5 #define Win32CodingSystem_INCLUDED 1
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 #include "CodingSystem.h"
12 #include "Boolean.h"
13
14 #ifdef SP_NAMESPACE
15 namespace SP_NAMESPACE {
16 #endif
17
18 class SP_API Win32CodingSystem : public CodingSystem {
19 public:
20   enum SpecialCodePage {
21     codePageOEM,
22     codePageAnsi
23     };
24   Win32CodingSystem(unsigned int codePage, Char defaultChar = 0xfffd);
25   Win32CodingSystem(SpecialCodePage, Char defaultChar = 0xfffd);
26   Boolean isValid() const;
27   Decoder *makeDecoder() const;
28   Encoder *makeEncoder() const;
29 private:
30   unsigned int codePage_;
31   Char defaultChar_;
32 };
33
34 #ifdef SP_NAMESPACE
35 }
36 #endif
37
38 #endif /* not Win32CodingSystem_INCLUDED */