port from perforce
This commit is contained in:
54
evoke-64k/bp10/TextFileReader.h
Normal file
54
evoke-64k/bp10/TextFileReader.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/***********************************************************************************/
|
||||
/** \file TextFileReader.h
|
||||
** \brief Header File zur Klasse TextFileReader
|
||||
*************************************************************************************
|
||||
** Autor: Christian Roesch
|
||||
*************************************************************************************
|
||||
** _tut nichts_
|
||||
**
|
||||
*//*********************************************************************************/
|
||||
|
||||
#ifndef _TextFileReader_H
|
||||
#define _TextFileReader_H
|
||||
|
||||
// includes
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
// Klassen-Deklaration
|
||||
|
||||
namespace FrameWork
|
||||
{
|
||||
|
||||
/***********************************************************************************/
|
||||
/** \brief TextFileReader _tut nichts_
|
||||
*************************************************************************************
|
||||
** Genau genommen _tut dies nichts_
|
||||
**
|
||||
*//*********************************************************************************/
|
||||
|
||||
class TextFileReader
|
||||
{
|
||||
public:
|
||||
bool read( std::string strFileName );
|
||||
bool append( std::string FileName );
|
||||
std::vector <std::string>& getFileLines();
|
||||
int getLineCount();
|
||||
void clear();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
std::vector <std::string> m_vecLines;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif//_TextFileReader_H
|
||||
|
||||
class FrameWork::TextFileReader;
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
** Ende der Datei: TextFileReader.h
|
||||
************************************************************************************/
|
||||
Reference in New Issue
Block a user