summaryrefslogtreecommitdiff
path: root/includes/Output.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Output.h')
-rw-r--r--includes/Output.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/Output.h b/includes/Output.h
index bce4160..3ec5158 100644
--- a/includes/Output.h
+++ b/includes/Output.h
@@ -12,11 +12,11 @@ class Output : public Handle {
Output(String = "", int create = 1, int trunc = 1) throw (GeneralException);
Output(const Output &);
virtual ~Output() {}
- virtual bool CanWrite();
- virtual bool CanRead();
- virtual bool CanSeek();
+ virtual bool CanWrite() const;
+ virtual bool CanRead() const;
+ virtual bool CanSeek() const;
virtual off_t seek(off_t, int) throw (GeneralException);
- virtual String GetName();
+ virtual String GetName() const;
protected:
String n;
@@ -28,18 +28,18 @@ class Stdout_t : public Output {
public:
Stdout_t();
virtual ~Stdout_t() {}
- virtual bool CanSeek();
- virtual String GetName();
+ virtual bool CanSeek() const;
+ virtual String GetName() const;
};
class Stderr_t : public Handle {
public:
Stderr_t();
virtual ~Stderr_t() {}
- virtual bool CanWrite();
- virtual bool CanRead();
- virtual bool CanSeek();
- virtual String GetName();
+ virtual bool CanWrite() const;
+ virtual bool CanRead() const;
+ virtual bool CanSeek() const;
+ virtual String GetName() const;
};
extern Stdout_t Stdout;