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
Core module.
Definition: Allocator.h:33
int width() const
Returns the word width of the encoding.
Definition: ByteorderMark.h:90
void clear()
Clears all content.
Definition: ByteorderMark.h:71
Encoding encoding() const
Returns the type of encoding.
Definition: ByteorderMark.h:100
@ LittleEndian
Little endian.
Definition: ByteorderMark.h:49
void setEncoding(Encoding e)
Sets the type of encoding.
Definition: ByteorderMark.h:105
@ None
No endianess.
Definition: ByteorderMark.h:47
void setEndianess(Endianess e)
Sets the endianess of the document encoding.
Definition: ByteorderMark.h:85
@ Unicode
Unicode encoding.
Definition: ByteorderMark.h:57
ByteorderMark()
Default constructor.
Definition: ByteorderMark.h:63
@ Generic
Generic encoding.
Definition: ByteorderMark.h:56
@ BigEndian
Big endian.
Definition: ByteorderMark.h:48
XML byte order mark.
Definition: ByteorderMark.h:41
Encoding
Text encoding type.
Definition: ByteorderMark.h:55
Endianess
Text encoding endianess.
Definition: ByteorderMark.h:46
void setWidth(unsigned char w)
Sets word width of the encoding.
Definition: ByteorderMark.h:95
Endianess endianess() const
The endianess of the document encoding.
Definition: ByteorderMark.h:80