Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | /** \file stringio.h |
2 | * definitions of input output classes that read and write from string. |
||
3 | */ |
||
4 | |||
5 | |||
6 | #ifndef __stringio_h__ |
||
7 | #define __stringio_h__ |
||
8 | |||
9 | #include "yacasbase.h" |
||
10 | #include "lispio.h" |
||
11 | #include "lispstring.h" |
||
12 | |||
13 | class StringInput : public LispInput |
||
14 | { |
||
15 | public: |
||
16 | StringInput(LispString& aString,InputStatus& aStatus); |
||
17 | virtual LispChar Next(); |
||
18 | virtual LispChar Peek(); |
||
19 | virtual LispBoolean EndOfStream(); |
||
20 | virtual LispChar * StartPtr(); |
||
21 | virtual LispInt Position(); |
||
22 | virtual void SetPosition(LispInt aPosition); |
||
23 | protected: |
||
24 | LispString iString; |
||
25 | LispInt iCurrent; |
||
26 | }; |
||
27 | |||
28 | class StringOutput : public LispOutput |
||
29 | { |
||
30 | public: |
||
31 | StringOutput(LispString& aString); |
||
32 | virtual ~StringOutput(); |
||
33 | virtual void PutChar(LispChar aChar); |
||
34 | public: |
||
35 | LispString& iString; |
||
36 | }; |
||
37 | |||
38 | |||
39 | |||
40 | #endif |
||
41 |