blob: e381cf5942978ca2c1ffee0e0dfc6e9897c53099 (
plain) (
tree)
|
|
#ifndef DEF_FWIK_IO_IOSTREAM_H
#define DEF_FWIK_IO_IOSTREAM_H
#include "Term.h"
#include <String.h>
class IOStream {
public:
Term *term;
IOStream() : term(0) {}
IOStream(Term *t) : term(t) {}
void print(char* str);
void printf(char* fmt, ...);
String readln();
IOStream &operator<<(char* s) {
print(s);
return *this;
}
IOStream &operator<<(int i) {
printf("%d", i);
return *this;
}
IOStream &operator<<(void* p) {
printf("%p", p);
return *this;
}
};
extern IOStream stdio;
#endif
|