aboutsummaryrefslogtreecommitdiff
path: root/src/tafreader.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-06 21:18:15 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-06 21:18:15 +0000
commit3c846af2fa8e4693c190c5131ec87d967eb58b3e (patch)
tree46ce9a7ae6f83d1dccd79a751a5340cca2eb05bc /src/tafreader.h
parent3144bd7deb950de0cb80e2215c1545bdf8fc81e9 (diff)
downloadlibbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.gz
libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.bz2
libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.xz
libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.zip
The TafReader is more general and much nicer, and about to actually construct
nodes, that part will be exciting. I also fixed some stuff and added some new functions to List, it now has first() and last() which work just like std::list front() and back(), I may add compatibility functions later...
Diffstat (limited to 'src/tafreader.h')
-rw-r--r--src/tafreader.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tafreader.h b/src/tafreader.h
index 127b571..4da800c 100644
--- a/src/tafreader.h
+++ b/src/tafreader.h
@@ -2,20 +2,23 @@
2#define BU_TAF_READER_H 2#define BU_TAF_READER_H
3 3
4#include <stdint.h> 4#include <stdint.h>
5#include "bu/tafdocument.h" 5#include "bu/tafnode.h"
6#include "bu/stream.h" 6#include "bu/stream.h"
7#include "bu/fstring.h"
7 8
8namespace Bu 9namespace Bu
9{ 10{
10 /** 11 /**
11 * 12 *
12 */ 13 */
13 class TafReader : public Bu::TafDocument 14 class TafReader
14 { 15 {
15 public: 16 public:
16 TafReader( Bu::Stream &sIn ); 17 TafReader( Bu::Stream &sIn );
17 virtual ~TafReader(); 18 virtual ~TafReader();
18 19
20 Bu::TafNode *readNode();
21
19 private: 22 private:
20 void node(); 23 void node();
21 void nodeContent(); 24 void nodeContent();
@@ -23,10 +26,9 @@ namespace Bu
23 void ws(); 26 void ws();
24 bool isws(); 27 bool isws();
25 void next(); 28 void next();
26 FString readStr(); 29 Bu::FString readStr();
27 char c; 30 char c;
28 Stream &sIn; 31 Bu::Stream &sIn;
29
30 }; 32 };
31} 33}
32 34