| 1 |
#ifndef INCLUDED_AIKSAURUS_MEANINGSTREAM_H |
| 2 |
#define INCLUDED_AIKSAURUS_MEANINGSTREAM_H |
| 3 |
|
| 4 |
#include <iostream> |
| 5 |
|
| 6 |
class MeaningStream |
| 7 |
{ |
| 8 |
private: |
| 9 |
|
| 10 |
// Input stream to read from ------------------------------------ |
| 11 |
|
| 12 |
std::istream& d_in; |
| 13 |
|
| 14 |
// No copying or assignment ------------------------------------- |
| 15 |
|
| 16 |
MeaningStream(const MeaningStream& rhs); |
| 17 |
MeaningStream& operator=(const MeaningStream& rhs); |
| 18 |
|
| 19 |
|
| 20 |
public: |
| 21 |
|
| 22 |
// Creation and Destruction ------------------------------------- |
| 23 |
|
| 24 |
MeaningStream(std::istream& stream); |
| 25 |
~MeaningStream(); |
| 26 |
|
| 27 |
|
| 28 |
// Manipulation ------------------------------------------------- |
| 29 |
|
| 30 |
bool operator>>(int& id); |
| 31 |
|
| 32 |
|
| 33 |
// Public Constants --------------------------------------------- |
| 34 |
|
| 35 |
static const int EOL; |
| 36 |
}; |
| 37 |
|
| 38 |
#endif // INCLUDED_AIKSAURUS_MEANINGSTREAM_H |