X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=9fa4b853a668640736fb4a37f97bf1c71ef23fd3;hb=19179a622c1de88de5ed7047643eec79f285bf2a;hp=12d3eff08dff23156fe3f43a59037157e21aface;hpb=5453824394771ca21de32088a2842486b63e6f6d;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index 12d3eff..9fa4b85 100644 --- a/source/input.h +++ b/source/input.h @@ -1,31 +1,28 @@ -/* -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 +#include namespace Msp { -namespace Parser { +namespace DataFile { class Input { +private: + IO::Base ∈ + unsigned line; + int next; + public: - Input(std::istream &); + Input(IO::Base &); + int get(); int peek(); unsigned get_line_number() const { return line; } - operator bool() const { return (bool)in; } -private: - std::istream ∈ - unsigned line; - int next; + operator bool() const; }; -} // namespace Parser +} // namespace DataFile } // namespace Msp #endif