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

Interface for File Reader. More...

#include <IFileTextReader.hpp>

Inheritance diagram for Gedim::IFileReader:
[legend]

Public Member Functions

virtual ~IFileReader ()
 
virtual std::string Path ()=0
 
virtual bool Open ()=0
 Open the file.
 
virtual void NextLine ()=0
 Jump line.
 
virtual void GetLine (std::string &line)=0
 Get a single line in file.
 
virtual void GetAllLines (std::vector< std::string > &lines)=0
 Get all lines.
 
virtual void Close ()=0
 Close the file.
 

Detailed Description

Interface for File Reader.

Constructor & Destructor Documentation

◆ ~IFileReader()

virtual Gedim::IFileReader::~IFileReader ( )
inlinevirtual

Member Function Documentation

◆ Close()

virtual void Gedim::IFileReader::Close ( )
pure virtual

Close the file.

Implemented in Gedim::FileReader.

◆ GetAllLines()

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

Get all lines.

Implemented in Gedim::FileReader.

◆ GetLine()

virtual void Gedim::IFileReader::GetLine ( std::string &  line)
pure virtual

Get a single line in file.

Implemented in Gedim::FileReader.

◆ NextLine()

virtual void Gedim::IFileReader::NextLine ( )
pure virtual

Jump line.

Implemented in Gedim::FileReader.

◆ Open()

virtual bool Gedim::IFileReader::Open ( )
pure virtual

Open the file.

Returns
if the open is successfull

Implemented in Gedim::FileReader.

◆ Path()

virtual std::string Gedim::IFileReader::Path ( )
pure virtual
Returns
the file path

Implemented in Gedim::FileReader.


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