vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
parseablestring.h
Go to the documentation of this file.
1 #ifndef PARSEABLESTRING_H_
2 #define PARSEABLESTRING_H_
3 
4 #include <vector>
5 #include "utils.h"
6 #include "longstring.h"
7 #include <iostream>
8 
9 namespace AP_LSystem {
11 {
12 private:
13  unsigned m_Pos;
14  bool m_Eof;
15 protected:
16  char * m_Str;
17  unsigned m_Length;
18 public:
23  ParseableString( LongString * string);
24 
30  ParseableString( char * string, unsigned int length);
31 
36 
41 
45  friend std::basic_ostream<char> & operator<<(std::basic_ostream<char> & os, const ParseableString ps);
46 
51  inline bool eof()
52  {
53  return m_Eof;
54  }
55 
59  inline void reset()
60  {
61  m_Pos = 0;
62  m_Eof = false;
63  }
64 
70  char next( std::vector<Parameter> & parameters );
71 };
72 
73 std::basic_ostream<char> & operator<<(std::basic_ostream<char> & os, const ParseableString ps);
74 }
75 #endif