OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
StringStream.h
Go to the documentation of this file.
1#ifndef CLASSIC_StringStream_HH
2#define CLASSIC_StringStream_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: StringStream.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: StringStream
13//
14// ------------------------------------------------------------------------
15// Class category: Parser
16// ------------------------------------------------------------------------
17//
18// $Date: 2000/03/27 09:32:37 $
19// $Author: fci $
20//
21// ------------------------------------------------------------------------
22
24
25
26// Class StringStream
27// ------------------------------------------------------------------------
29// The source of tokens is a C++ string.
30
32
33public:
34
36 // Initialize stream to read from the named file.
37 StringStream(const std::string &s);
38
39 virtual ~StringStream();
40
42 virtual Token readToken();
43
44private:
45
46 // Not implemented.
49 void operator=(const StringStream &);
50
51 // Read double from current statement.
53
54 // Read string value from current statement.
56
57 // Read word from current statement.
59
60 // Current input string;
61 const std::string line_m;
62 std::string::size_type currentChar_m;
63};
64
65#endif // CLASSIC_StringStream_HH
virtual ~StringStream()
std::string::size_type currentChar_m
StringStream(const std::string &s)
Constructor.
StringStream(const StringStream &)
const std::string line_m
virtual Token readToken()
Read single token from file.
void operator=(const StringStream &)
Representation of a single input token.
Definition Token.h:33
TokenStream(const std::string &name)
Constructor.