OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <TerminalStream.h>
Public Member Functions | |
TerminalStream (const char program[]) | |
Constructor. More... | |
virtual | ~TerminalStream () |
virtual bool | fillLine () |
Read next input line. More... | |
Public Member Functions inherited from AbsFileStream | |
AbsFileStream (const std::string &name) | |
Constructor. More... | |
virtual | ~AbsFileStream () |
virtual Token | readToken () |
Read single token from file. More... | |
Public Member Functions inherited from TokenStream | |
TokenStream (const std::string &name) | |
Constructor. More... | |
virtual | ~TokenStream () |
void | putBack (const Token &token) |
Put token back to stream. More... | |
const std::string & | getName () const |
Return stream name. More... | |
int | getLine () const |
Return line number. More... | |
Public Member Functions inherited from RCObject | |
int | addReference () const |
Increment reference count. More... | |
int | removeReference () const |
Decrement the reference count. More... | |
bool | isShared () const |
Test for sharing. More... | |
Private Member Functions | |
TerminalStream (const TerminalStream &) | |
void | operator= (const TerminalStream &) |
Additional Inherited Members | |
Protected Member Functions inherited from AbsFileStream | |
Token | readNumber () |
Token | readString () |
Token | readWord () |
bool | skipComments () |
Protected Member Functions inherited from RCObject | |
RCObject () | |
Default constructor. More... | |
RCObject (const RCObject &) | |
Copy constructor. More... | |
virtual | ~RCObject ()=0 |
RCObject & | operator= (const RCObject &right) |
Protected Attributes inherited from AbsFileStream | |
std::string | line |
int | curr_char |
Protected Attributes inherited from TokenStream | |
std::string | stream_name |
int | curr_line |
bool | put_back_flag |
Token | put_back |
Definition at line 24 of file TerminalStream.h.
TerminalStream::TerminalStream | ( | const char | program[] | ) |
Constructor.
Definition at line 24 of file TerminalStream.cpp.
|
virtual |
Definition at line 30 of file TerminalStream.cpp.
|
private |
|
virtual |
Read next input line.
Implements AbsFileStream.
Definition at line 34 of file TerminalStream.cpp.
References AbsFileStream::curr_char, TokenStream::curr_line, and AbsFileStream::line.
|
private |