-/*
-This file is part of libmspparser
+/* $Id$
+
+This file is part of libmspdatafile
Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
#include "input.h"
namespace Msp {
-namespace Parser {
+namespace DataFile {
-Input::Input(std::istream &i):
+Input::Input(IO::Base &i):
in(i),
line(1),
next(-1)
return next;
}
-} // namespace Parser
+Input::operator bool() const
+{
+ return next>=0 || !in.eof();
+}
+
+} // namespace DataFile
} // namespace Msp