source: icGREP/icgrep-devel/icgrep/utf_encoding.h @ 3911

Last change on this file since 3911 was 3850, checked in by cameron, 5 years ago

icgrep-0.8 distribution

File size: 1.2 KB
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef UTF_ENCODING_H
8#define UTF_ENCODING_H
9
10#include <stdint.h>
11#include <string>
12#include <vector>
13
14class UTF_Encoding
15{
16public:
17    UTF_Encoding();
18    //UTF_Encoding(std::string name, int bits, uint32_t mask);
19    std::string getName();
20    void setName(std::string name);
21    int getBits();
22    void setBits(int bits);
23    uint32_t getMask();
24    void setMask(uint32_t mask);
25    bool getDefault();
26    void setDefault(bool defaultEncoding);
27    bool getLocked();
28    void setLocked(bool locked);
29    bool getEncodingError();
30    void setEncodingError(bool error);
31    std::string getBasisPattern(int n);
32    void setBasisPattern(std::string pattern);
33    std::vector<std::string> getBasisPatternVector();
34    void setBasisPatternVector(std::vector<std::string> basisPattern);
35private:
36    std::string mName;
37    int mBits;
38    uint32_t mMask;
39    bool mDefault;
40    bool mLocked;
41    bool mEncodingError;
42    std::vector<std::string> mBasisPattern;
43};
44
45#endif // UTF_ENCODING_H
Note: See TracBrowser for help on using the repository browser.