#ifndef AFUN_READER_INLINE_H #define AFUN_READER_INLINE_H #include "reader.h" namespace aFuncore { Reader::Reader(aFuntool::FilePath path_, aFuntool::FileLine line_) : buf{aFuntool::safeCalloc(DEFAULT_BUF_SIZE + 1)}, buf_size{DEFAULT_BUF_SIZE}, read{buf}, read_end{false}, read_error{false}, line{line_}, path{std::move(path_)} { } size_t Reader::countRead() const { return read - buf; } bool Reader::isEnd() const { return read_end; } bool Reader::isError() const { return read_error; } aFuntool::FileLine Reader::getFileLine() const { return line; } const aFuntool::FilePath &Reader::getFilePath() const { return path; } } #endif //AFUN_READER_INLINE_H