Inviwo  0.9.10.1
Inviwo documentation
inviwo::TextFileReader Class Reference

#include <textfilereader.h>

Public Member Functions

 TextFileReader (const std::string &filePath)
 
virtual std::string read (const std::string &filePath)
 
virtual std::string read ()
 
void setFilePath (const std::string &filePath)
 
const std::string & getFilePath () const
 

Detailed Description

Reader for text files.

Member Function Documentation

◆ read() [1/2]

std::string inviwo::TextFileReader::read ( const std::string &  filePath)
virtual

Read a file and return the content as a string. Throws an exception if file could not be opened and prints an error message to the error log.

Parameters
filePathPath of file.
Returns
Content of file.

◆ read() [2/2]

std::string inviwo::TextFileReader::read ( )
virtual

Read a file and return the content as a string. Throws an exception if file could not be opened and prints an error message to the error log.

Returns
Content of file.

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