Parallel Analog Ensemble
Enumerations | Functions
Txt Namespace Reference

Enumerations

enum class  Mode { Read , Write }
 

Functions

void checkPath (const std::string &file_path, Mode mode, const std::string &extension=".txt")
 
bool readLines (const std::string &file_path, std::vector< std::string > &vec)
 
template<typename T >
bool readMatrix (const std::string &file_path, boost::numeric::ublas::matrix< T > &mat)
 
template<typename T >
bool writeMatrix (const std::string &file_path, const boost::numeric::ublas::matrix< T > &mat)
 

Detailed Description

Namespace ReadTxt provides functionality for txt file I/O.

Enumeration Type Documentation

◆ Mode

enum class Txt::Mode
strong
Enumerator
Read 
Write 

Function Documentation

◆ checkPath()

void Txt::checkPath ( const std::string &  file_path,
Mode  mode,
const std::string &  extension = ".txt" 
)

◆ readLines()

bool Txt::readLines ( const std::string &  file_path,
std::vector< std::string > &  vec 
)

◆ readMatrix()

template<typename T >
bool Txt::readMatrix ( const std::string &  file_path,
boost::numeric::ublas::matrix< T > &  mat 
)

◆ writeMatrix()

template<typename T >
bool Txt::writeMatrix ( const std::string &  file_path,
const boost::numeric::ublas::matrix< T > &  mat 
)