PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
IFileTextReader.hpp
Go to the documentation of this file.
1// _LICENSE_HEADER_
2//
3// Copyright (C) 2019 - 2025.
4// Terms register on the GPL-3.0 license.
5//
6// This file can be redistributed and/or modified under the license terms.
7//
8// See top level LICENSE file for more details.
9//
10// This file can be used citing references in CITATION.cff file.
11
12#ifndef __GEDIM_IFILEREADER_H
13#define __GEDIM_IFILEREADER_H
14
15#include "IOUtilities.hpp"
16
17namespace Gedim
18{
22{
23 public:
24 virtual ~IFileReader()
25 {
26 }
27
29 virtual std::string Path() = 0;
32 virtual bool Open() = 0;
34 virtual void NextLine() = 0;
36 virtual void GetLine(std::string &line) = 0;
38 virtual void GetAllLines(std::vector<std::string> &lines) = 0;
40 virtual void Close() = 0;
41};
42} // namespace Gedim
43
44#endif // __GEDIM_IFILEREADER_H
Eigen column vector.
Definition Eigen_Array.hpp:23
Interface for File Reader.
Definition IFileTextReader.hpp:22
virtual void NextLine()=0
Jump line.
virtual void GetAllLines(std::vector< std::string > &lines)=0
Get all lines.
virtual bool Open()=0
Open the file.
virtual void Close()=0
Close the file.
virtual void GetLine(std::string &line)=0
Get a single line in file.
virtual ~IFileReader()
Definition IFileTextReader.hpp:24
virtual std::string Path()=0
Definition Eigen_Array.cpp:22