PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
Gedim::FileReader Class Reference

C++ File Reader. More...

#include <FileTextReader.hpp>

Inheritance diagram for Gedim::FileReader:
[legend]

Public Member Functions

 FileReader (const std::string &filePath)
 
virtual ~FileReader ()
 
std::string Path ()
 
bool Open ()
 Open the file.
 
void NextLine ()
 Jump line.
 
void GetLine (std::string &line)
 Get a single line in file.
 
void GetAllLines (std::vector< std::string > &lines)
 Get all lines.
 
void Close ()
 Close the file.
 
- Public Member Functions inherited from Gedim::IFileReader
virtual ~IFileReader ()
 

Detailed Description

C++ File Reader.

Constructor & Destructor Documentation

◆ FileReader()

Gedim::FileReader::FileReader ( const std::string &  filePath)

◆ ~FileReader()

virtual Gedim::FileReader::~FileReader ( )
inlinevirtual

Member Function Documentation

◆ Close()

void Gedim::FileReader::Close ( )
inlinevirtual

Close the file.

Implements Gedim::IFileReader.

◆ GetAllLines()

void Gedim::FileReader::GetAllLines ( std::vector< std::string > &  lines)
virtual

Get all lines.

Implements Gedim::IFileReader.

◆ GetLine()

void Gedim::FileReader::GetLine ( std::string &  line)
inlinevirtual

Get a single line in file.

Implements Gedim::IFileReader.

◆ NextLine()

void Gedim::FileReader::NextLine ( )
virtual

Jump line.

Implements Gedim::IFileReader.

◆ Open()

bool Gedim::FileReader::Open ( )
virtual

Open the file.

Returns
if the open is successfull

Implements Gedim::IFileReader.

◆ Path()

std::string Gedim::FileReader::Path ( )
inlinevirtual
Returns
the file path

Implements Gedim::IFileReader.


The documentation for this class was generated from the following files: