Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
TokenStream.h
Go to the documentation of this file.
1#ifndef ULT_TOKEN_STREAM_H_INCLUDED
2#define ULT_TOKEN_STREAM_H_INCLUDED
3
4#include <string>
5
6namespace Ult
7{
8
15{
16public:
25
29 void ResetStream();
30
35 void SetTokenStream(const char* data);
36
42 bool GetNextToken(std::string* buffer);
43
49 bool GetNextToken(std::string* token, std::string* buffer);
50
56 bool MoveToNextLine(std::string* buffer);
57
58private:
59 int mStartIndex, mEndIndex;
60 std::string mData;
61};
62
63} // namespace Ult
64
65#endif // ULT_TOKEN_STREAM_H_INCLUDED
66
~TokenStream()
Definition TokenStream.cpp:15
void ResetStream()
Definition TokenStream.cpp:19
TokenStream()
Definition TokenStream.cpp:11
void SetTokenStream(const char *data)
Definition TokenStream.cpp:24
bool MoveToNextLine(std::string *buffer)
Definition TokenStream.cpp:80
bool GetNextToken(std::string *buffer)
Definition TokenStream.cpp:30
Definition Archive.h:13