]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/input.h
Fix EOF handling
[libs/datafile.git] / source / input.h
index f5cd3ed24c605797aa0223f5d922cc1ea87f2d01..ad921ec62963883da68a66092b740b7256553187 100644 (file)
@@ -1,31 +1,32 @@
-/*
-This file is part of libmspparser
+/* $Id$
+
+This file is part of libmspdatafile
 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
-#ifndef MSP_PARSER_INPUT_H_
-#define MSP_PARSER_INPUT_H_
+#ifndef MSP_DATAFILE_INPUT_H_
+#define MSP_DATAFILE_INPUT_H_
 
-#include <istream>
+#include <msp/io/base.h>
 
 namespace Msp {
-namespace Parser {
+namespace DataFile {
 
 class Input
 {   
 public:
-       Input(std::istream &); 
+       Input(IO::Base &); 
        int get();
        int peek();
        unsigned get_line_number() const { return line; }
-       operator bool() const { return in; }
+       operator bool() const;
 private:
-       std::istream &in;
+       IO::Base &in;
        unsigned line;
        int next;
 };  
 
-} // namespace Parser
+} // namespace DataFile
 } // namespace Msp
 
 #endif