summaryrefslogtreecommitdiff
path: root/generic/Input.cpp
diff options
context:
space:
mode:
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";
}