27#ifndef EASY3D_UTIL_LINE_STREAM_H
28#define EASY3D_UTIL_LINE_STREAM_H
49 explicit LineInputStream(std::istream &in) : in_(in), line_in_(
nullptr) {}
56 bool eof()
const {
return in_.eof(); }
58 bool eol()
const {
return line_in_ ==
nullptr || line_in_->eof(); }
60 bool fail()
const {
return in_.fail() || line_in_->fail(); }
63 getline(in_, buffer_);
65 line_in_ =
new std::istringstream(buffer_);
68 std::istream &line() {
69 assert(line_in_ !=
nullptr);
73 const std::string ¤t_line()
const {
85 std::istringstream *line_in_;
Definition: collider.cpp:182