Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIStreamReaderXML.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifdef GUILIANI_STREAM_GUI
11
12#ifndef GUI_STREAMREADER_XML__H
13#define GUI_STREAMREADER_XML__H
14
15#include "GUIStreamReader.h"
16
18
37{
38public:
40
41 virtual const eC_String& GetFileSuffix() const
42 {
43 static const eC_String ckSuffix(".xml");
44 return ckSuffix;
45 }
46
47 virtual eC_UByte ReadUByte(const eC_Char* pcTag = NULL);
48 virtual eC_Byte ReadByte(const eC_Char* pcTag = NULL);
49 virtual eC_UInt ReadUInt(const eC_Char* pcTag = NULL);
50 virtual eC_Int ReadInt(const eC_Char* pcTag = NULL);
51 virtual eC_UInt ReadHex(const eC_Char* pcTag = NULL);
52 virtual eC_Float ReadFloat(const eC_Char* pcTag = NULL);
53 virtual eC_String ReadString(const eC_Char* pcTag = NULL);
54 virtual eC_UShort ReadUShort(const eC_Char* pcTag = NULL);
55 virtual eC_Short ReadShort(const eC_Char* pcTag = NULL);
56 virtual eC_Bool ReadBool(const eC_Char* pcTag = NULL);
57 virtual void ReadBinary(eC_TArray<eC_UByte>& aData, const eC_Char* pcTag = NULL);
58 virtual ColorValue_t ReadColor(const eC_Char* pcTag = NULL);
59
60 virtual void DeleteCommentTag(const eC_Char* pcTag = NULL);
61 virtual void DeleteCommentTag(const eC_String &kString);
62
64 virtual CGUIStreamReader* Clone() const;
65
66 virtual eC_Int ReadStreamingFileHeader()
67 {
68 return ReadInt("FileVersion");
69 }
70
71private:
75
78 CGUIStreamReaderXML& operator=(const CGUIStreamReaderXML& kSource);
79
87 eC_Bool ParseNode(const eC_Char* pcTag);
88
93 inline eC_Char ReadChar();
94};
95
96#endif
97#endif
Base class for stream readers.
Definition: GUIStreamReader.h:129
Reads streaming files written by CGUIStreamWriterXML.
Definition: GUIStreamReaderXML.h:37
virtual eC_Float ReadFloat(const eC_Char *pcTag=NULL)
virtual eC_String ReadString(const eC_Char *pcTag=NULL)
virtual eC_Int ReadStreamingFileHeader()
Definition: GUIStreamReaderXML.h:66
virtual ColorValue_t ReadColor(const eC_Char *pcTag=NULL)
virtual eC_UInt ReadHex(const eC_Char *pcTag=NULL)
virtual void DeleteCommentTag(const eC_String &kString)
virtual eC_Short ReadShort(const eC_Char *pcTag=NULL)
virtual eC_UByte ReadUByte(const eC_Char *pcTag=NULL)
virtual eC_Bool ReadBool(const eC_Char *pcTag=NULL)
virtual CGUIStreamReader * Clone() const
virtual eC_UShort ReadUShort(const eC_Char *pcTag=NULL)
virtual eC_Int ReadInt(const eC_Char *pcTag=NULL)
virtual eC_UInt ReadUInt(const eC_Char *pcTag=NULL)
virtual void ReadBinary(eC_TArray< eC_UByte > &aData, const eC_Char *pcTag=NULL)
virtual const eC_String & GetFileSuffix() const
Definition: GUIStreamReaderXML.h:41
virtual void DeleteCommentTag(const eC_Char *pcTag=NULL)
virtual eC_Byte ReadByte(const eC_Char *pcTag=NULL)
structure used to stream colors
Definition: GUICommonTypes.h:24