1 #ifndef _TEXTMODEL_H_
2 #define _TEXTMODEL_H_
19 /**
20 * Just calls super and reads the version and checks that its in the allowed range.
21 */
23 };
25 /**
26 * A TextPiece is just a component of an StdTextModel.
27 * It has a certain length in bytes, which is known construction time (due
28 * to meta-data in the StdTextModel header) and contents which are read
29 * later.
30 */
33 /**
34 * The number of bytes that will be read.
35 */
41 /**
42 * Size in bytes, excluding the null-character that terminates the string (i.e. the size that is read from file).
43 */
45 };
47 /**
48 * TextPiece consisting of 16-bit unicode characters.
49 * Not sure if the encoding is UCS-2 or UTF-16.
50 */
61 /**
62 * Get the buffer contents as 16-bit (UCS-2 or UTF-16 I don't know) unicode.
63 */
65 };
67 /**
68 * TextPiece consisting of 8-bit characters in the Latin-1 extension of ASCII.
69 */
80 /**
81 * Get the buffer contents as 8-bit (Latin-1) characters.
82 */
84 };
86 /**
87 * TextPiece that embeds a View.
88 */
97 };
99 /**
100 * Default implementation of a TextModel.
101 * Essentially it is a series of TextPieces.
102 */
113 /**
114 * Calls super and reads the version and checks that its in the allowed range.
115 * Then the text model meta-data is read, including information on all the pieces.
116 * After reading the meta-data, the pieces themselves are read.
117 */
122 };