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