ByteorderMark Class Reference

#include <Pt/Xml/ByteorderMark.h>

XML byte order mark.

Public Types

enum  Endianess {
  None = 0,
  BigEndian = 1,
  LittleEndian = 2
}
 Text encoding endianess. More...
 
enum  Encoding {
  Generic = 0,
  Unicode = 1
}
 Text encoding type. More...
 

Public Member Functions

 ByteorderMark ()
 Default constructor.
 
void clear ()
 Clears all content.
 
Endianess endianess () const
 The endianess of the document encoding.
 
void setEndianess (Endianess e)
 Sets the endianess of the document encoding.
 
int width () const
 Returns the word width of the encoding.
 
void setWidth (unsigned char w)
 Sets word width of the encoding.
 
Encoding encoding () const
 Returns the type of encoding.
 
void setEncoding (Encoding e)
 Sets the type of encoding.
 

Member Enumeration Documentation

◆ Endianess

enum Endianess
Enumerator
None 

No endianess.

BigEndian 

Big endian.

LittleEndian 

Little endian.

◆ Encoding

enum Encoding
Enumerator
Generic 

Generic encoding.

Unicode 

Unicode encoding.