summaryrefslogtreecommitdiff
path: root/include/Output.h
diff options
context:
space:
mode:
authorpixel <pixel>2004-11-27 21:46:02 +0000
committerpixel <pixel>2004-11-27 21:46:02 +0000
commitae2779e504ca5ae11a87e047b4536a5f428cce4d (patch)
tree19604ce1873e9cc98be9b840b894cb7eae341532 /include/Output.h
parent583964f9f8e954eb57b31663065c5b9e833d045e (diff)
Large dos2unix commit...
Diffstat (limited to 'include/Output.h')
-rw-r--r--include/Output.h142
1 files changed, 71 insertions, 71 deletions
diff --git a/include/Output.h b/include/Output.h
index 17d12d8..3144b32 100644
--- a/include/Output.h
+++ b/include/Output.h
@@ -1,71 +1,71 @@
-/*
- * Baltisot
- * Copyright (C) 1999-2003 Nicolas "Pixel" Noble
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-/* $Id: Output.h,v 1.13 2004-11-27 21:43:48 pixel Exp $ */
-
-#ifndef __OUTPUT_H__
-#define __OUTPUT_H__
-
-#include <sys/types.h>
-#include <time.h>
-#include <BString.h>
-#include <Handle.h>
-
-class Output : public Handle {
- public:
- Output(String = "", int create = 1, int trunc = 1) throw (GeneralException);
- Output(const Output &);
- virtual ~Output() {}
- virtual bool CanWrite() const;
- virtual bool CanRead() const;
- virtual bool CanSeek() const;
- virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException);
- virtual String GetName() const;
-
- protected:
- String n;
- off_t size;
- time_t date_modif;
-
- private:
- int wrapopen(const String &, int, int);
-};
-
-class Stdout_t : public Output {
- public:
- Stdout_t();
- virtual ~Stdout_t() {}
- virtual bool CanSeek() const;
- virtual String GetName() const;
-};
-
-class Stderr_t : public Handle {
- public:
- Stderr_t();
- virtual ~Stderr_t() {}
- virtual bool CanWrite() const;
- virtual bool CanRead() const;
- virtual bool CanSeek() const;
- virtual String GetName() const;
-};
-
-extern Stdout_t Stdout;
-extern Stderr_t Stderr;
-
-#endif
+/*
+ * Baltisot
+ * Copyright (C) 1999-2003 Nicolas "Pixel" Noble
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+/* $Id: Output.h,v 1.14 2004-11-27 21:46:03 pixel Exp $ */
+
+#ifndef __OUTPUT_H__
+#define __OUTPUT_H__
+
+#include <sys/types.h>
+#include <time.h>
+#include <BString.h>
+#include <Handle.h>
+
+class Output : public Handle {
+ public:
+ Output(String = "", int create = 1, int trunc = 1) throw (GeneralException);
+ Output(const Output &);
+ virtual ~Output() {}
+ virtual bool CanWrite() const;
+ virtual bool CanRead() const;
+ virtual bool CanSeek() const;
+ virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException);
+ virtual String GetName() const;
+
+ protected:
+ String n;
+ off_t size;
+ time_t date_modif;
+
+ private:
+ int wrapopen(const String &, int, int);
+};
+
+class Stdout_t : public Output {
+ public:
+ Stdout_t();
+ virtual ~Stdout_t() {}
+ virtual bool CanSeek() const;
+ virtual String GetName() const;
+};
+
+class Stderr_t : public Handle {
+ public:
+ Stderr_t();
+ virtual ~Stderr_t() {}
+ virtual bool CanWrite() const;
+ virtual bool CanRead() const;
+ virtual bool CanSeek() const;
+ virtual String GetName() const;
+};
+
+extern Stdout_t Stdout;
+extern Stderr_t Stderr;
+
+#endif