summaryrefslogtreecommitdiff
path: root/generic/Input.cpp
diff options
context:
space:
mode:
authorPixel <Pixel>2002-09-27 12:17:57 +0000
committerPixel <Pixel>2002-09-27 12:17:57 +0000
commitbfa5de7eccf4604ff8217f619e9685a09e80d545 (patch)
treea5be5de750ac611145f459a09bda902c3dbc1a70 /generic/Input.cpp
parent60c1003845035ad4cd0e9ea50862bad7626faf0e (diff)
The week-without-the-network changes
Diffstat (limited to 'generic/Input.cpp')
-rw-r--r--generic/Input.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/Input.cpp b/generic/Input.cpp
index d415279..69d28e7 100644
--- a/generic/Input.cpp
+++ b/generic/Input.cpp
@@ -38,15 +38,15 @@ Input::Input(const String & no) throw (GeneralException) :
Input::Input(const Input & i) : Handle(i), n(i.n), size(i.size), date_modif(i.date_modif) {
}
-bool Input::CanWrite() {
+bool Input::CanWrite() const {
return 0;
}
-bool Input::CanRead() {
+bool Input::CanRead() const {
return 1;
}
-bool Input::CanSeek() {
+bool Input::CanSeek() const {
struct stat s;
fstat(GetHandle(), &s);
@@ -54,15 +54,15 @@ bool Input::CanSeek() {
return S_ISREG(s.st_mode);
}
-String Input::GetName() {
+String Input::GetName() const {
return n;
}
-ssize_t Input::GetSize() {
+ssize_t Input::GetSize() const {
return size;
}
-time_t Input::GetModif() {
+time_t Input::GetModif() const {
return date_modif;
}
@@ -80,11 +80,11 @@ off_t Input::seek(off_t offset, int whence) throw (GeneralException) {
Stdin_t::Stdin_t() { }
-bool Stdin_t::CanSeek() {
+bool Stdin_t::CanSeek() const {
return 0;
}
-String Stdin_t::GetName() {
+String Stdin_t::GetName() const {
return "Stdin";
}