]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/input.h
Remove the loaded flag from PackSource files
[libs/datafile.git] / source / input.h
index e1b2d87e0e9ea1b8e3d997012d1ef08ee1417da5..a9c96f48abce9cdf9e533e640f3913c8849e0d7f 100644 (file)
@@ -1,31 +1,31 @@
-/*
-This file is part of libmspparser
-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
 {   
+private:
+       IO::Base *in;
+       IO::Base *compressed;
+       unsigned line;
+       int next;
+
 public:
-       Input(std::istream &); 
+       Input(IO::Base &); 
+       ~Input();
+
+       void set_decompress();
        int get();
        int peek();
        unsigned get_line_number() const { return line; }
-       operator bool() const { return (bool)in; }
-private:
-       std::istream &in;
-       unsigned line;
-       int next;
+       operator bool() const;
 };  
 
-} // namespace Parser
+} // namespace DataFile
 } // namespace Msp
 
 #endif