X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=e03dea1e839714e23416b8fed7fea7cb68f8ed97;hb=2f79370bffe0bac865dc97c5114dc87c1936fbb4;hp=e1b2d87e0e9ea1b8e3d997012d1ef08ee1417da5;hpb=98f563736e0837a429714b98656215503c607710;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index e1b2d87..e03dea1 100644 --- a/source/input.h +++ b/source/input.h @@ -1,15 +1,16 @@ -/* -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 namespace Msp { -namespace Parser { +namespace DataFile { class Input { @@ -18,14 +19,14 @@ public: int get(); int peek(); unsigned get_line_number() const { return line; } - operator bool() const { return (bool)in; } + operator bool() const { return in; } private: std::istream ∈ unsigned line; int next; }; -} // namespace Parser +} // namespace DataFile } // namespace Msp #endif