X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=ad921ec62963883da68a66092b740b7256553187;hb=e26f7e98e5d8a5666192a43348b3ca7a35f6b860;hp=e1b2d87e0e9ea1b8e3d997012d1ef08ee1417da5;hpb=98f563736e0837a429714b98656215503c607710;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index e1b2d87..ad921ec 100644 --- a/source/input.h +++ b/source/input.h @@ -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 +#include 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 (bool)in; } + operator bool() const; private: - std::istream ∈ + IO::Base ∈ unsigned line; int next; }; -} // namespace Parser +} // namespace DataFile } // namespace Msp #endif