OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
StringStream.h
Go to the documentation of this file.
1#ifndef OPALX_StringStream_HH
2#define OPALX_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// Class StringStream
26// ------------------------------------------------------------------------
28// The source of tokens is a C++ string.
29
30class StringStream : public TokenStream {
31public:
33 // Initialize stream to read from the named file.
34 StringStream(const std::string& s);
35
36 virtual ~StringStream();
37
39 virtual Token readToken();
40
41private:
42 // Not implemented.
45 void operator=(const StringStream&);
46
47 // Read double from current statement.
49
50 // Read string value from current statement.
52
53 // Read word from current statement.
55
56 // Current input string;
57 const std::string line_m;
58 std::string::size_type currentChar_m;
59};
60
61#endif // OPALX_StringStream_HH
A stream of input tokens.
virtual ~StringStream()
std::string::size_type currentChar_m
StringStream(const StringStream &)
const std::string line_m
virtual Token readToken()
Read single token from file.
void operator=(const StringStream &)
Token readNumber()
Abstract interface for a stream of input tokens.
Definition TokenStream.h:30
Representation of a single input token.
Definition Token.h:32