aboutsummaryrefslogtreecommitdiff
path: root/src/stable/tafreader.h
diff options
context:
space:
mode:
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