aboutsummaryrefslogtreecommitdiff
path: root/src/stable/tafreader.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
committerMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
commit469bbcf0701e1eb8a6670c23145b0da87357e178 (patch)
treeb5b062a16e46a6c5d3410b4e574cd0cc09057211 /src/stable/tafreader.h
parentee1b79396076edc4e30aefb285fada03bb45e80d (diff)
downloadlibbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.gz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.bz2
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.xz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.zip
Code is all reorganized. We're about ready to release. I should write up a
little explenation of the arrangement.
Diffstat (limited to 'src/stable/tafreader.h')
-rw-r--r--src/stable/tafreader.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/stable/tafreader.h b/src/stable/tafreader.h
new file mode 100644
index 0000000..10ebfc0
--- /dev/null
+++ b/src/stable/tafreader.h
@@ -0,0 +1,49 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef BU_TAF_READER_H
9#define BU_TAF_READER_H
10
11#include <stdint.h>
12#include "bu/string.h"
13
14namespace Bu
15{
16 class TafNode;
17 class TafGroup;
18 class TafProperty;
19 class TafComment;
20 class Stream;
21
22 /**
23 *
24 *@ingroup Taf
25 */
26 class TafReader
27 {
28 public:
29 TafReader( Bu::Stream &sIn );
30 virtual ~TafReader();
31
32 Bu::TafGroup *readGroup();
33
34 private:
35 void groupContent( Bu::TafGroup *pNode );
36 Bu::TafProperty *readProperty();
37 Bu::TafComment *readComment( bool bEOL=false );
38 void ws();
39 bool isws();
40 void next();
41 Bu::String readStr();
42 void rawread( char *c );
43 char c, la;
44 Bu::Stream &sIn;
45 int iLine, iCol;
46 };
47}
48
49#endif