filereader.hh
来自「It s a tool designed to extract as much 」· HH 代码 · 共 59 行
HH
59 行
/* -*- c++ -*- --------------------------------------------------------------- Copyright (C) 2005, SWECO, All Rights Reserved. Read a file line by line $Id$ Author: Zsolt Molnar (Zsolt.Molnar@ieee.org) ---------------------------------------------------------------------------*/#ifndef __FILEREADER_HH__#define __FILEREADER_HH__#include <string>#include <fstream>#include "base.hh"// The default length of line reading buffer#define FR_DEF_BUFLEN 1024#ifdef _cplusplusextern "C" {#endifclass FileReader {public: FileReader(const string& aFileName); virtual ~FileReader(); string nextLine(); string nextNotEmptyLine(); bool isEnd(); void close(); void remove();private: ifstream _file; string _fileName; static size_t _bufLen; #ifdef __TEST__public: static bool test();#endif // #ifdef __TEST__};#ifdef _cplusplus}#endif#endif /* #ifndef __FILEREADER_HH__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?