29 #ifndef Pt_Xml_ByteoderMark_h
30 #define Pt_Xml_ByteoderMark_h
32 #include <Pt/Xml/Api.h>
81 {
return static_cast<Endianess>(_endianess); }
86 { _endianess =
static_cast<unsigned char>(e); }
101 {
return static_cast<Encoding>(_encoding); }
106 { _encoding =
static_cast<unsigned char>(e); }
109 unsigned char _endianess;
110 unsigned char _width;
111 unsigned char _encoding;
118 #endif // Pt_Xml_ByteoderMark_h
XML byte order mark.
Definition: ByteorderMark.h:40
Encoding encoding() const
Returns the type of encoding.
Definition: ByteorderMark.h:100
void clear()
Clears all content.
Definition: ByteorderMark.h:71
Unicode encoding.
Definition: ByteorderMark.h:57
void setEndianess(Endianess e)
Sets the endianess of the document encoding.
Definition: ByteorderMark.h:85
No endianess.
Definition: ByteorderMark.h:47
ByteorderMark()
Default constructor.
Definition: ByteorderMark.h:63
void setWidth(unsigned char w)
Sets word width of the encoding.
Definition: ByteorderMark.h:95
Big endian.
Definition: ByteorderMark.h:48
Endianess endianess() const
The endianess of the document encoding.
Definition: ByteorderMark.h:80
Generic encoding.
Definition: ByteorderMark.h:56
int width() const
Returns the word width of the encoding.
Definition: ByteorderMark.h:90
void setEncoding(Encoding e)
Sets the type of encoding.
Definition: ByteorderMark.h:105
Endianess
Text encoding endianess.
Definition: ByteorderMark.h:45
Encoding
Text encoding type.
Definition: ByteorderMark.h:54
Little endian.
Definition: ByteorderMark.h:49