X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=9fa4b853a668640736fb4a37f97bf1c71ef23fd3;hb=9bd3968eaaabb278d22f182365d022704d2a2cf1;hp=e03dea1e839714e23416b8fed7fea7cb68f8ed97;hpb=8ff59df1f2e603557eceacbc81a8dc44de051dae;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index e03dea1..9fa4b85 100644 --- a/source/input.h +++ b/source/input.h @@ -1,29 +1,25 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ #ifndef MSP_DATAFILE_INPUT_H_ #define MSP_DATAFILE_INPUT_H_ -#include +#include namespace Msp { 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 in; } -private: - std::istream ∈ - unsigned line; - int next; + operator bool() const; }; } // namespace DataFile