Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::TextFileParser Class Reference

#include <TextFileParser.h>

Inheritance diagram for model::TextFileParser:
Collaboration diagram for model::TextFileParser:

Public Member Functions

 TextFileParser (const std::string &_fileName)
std::string readString (const std::string &key, const bool &verbose=false)
std::vector< std::pair< std::string, std::string > > readStringVector (const std::string &key)
std::set< std::string > readStringSet (const std::string &key, const bool &verbose=false)
template<typename Scalar>
Scalar readScalar (const std::string &key, const bool &verbose=false)
template<typename Scalar>
std::set< Scalar > readSet (const std::string &key, const bool &verbose=false)
template<typename KeyType, typename Scalar>
std::tuple< bool, bool, KeyType, std::vector< Scalar >, std::string > splitMapLine (const std::string &line) const
template<typename KeyType, typename Scalar>
std::map< KeyType, std::vector< Scalar > > readArrayMap (const std::string &key, const bool &verbose=false)
template<typename Scalar>
std::vector< Scalar > readArray (const std::string &key, const bool &verbose=false)
template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > readMatrix (const std::string &key, const size_t &rows, const size_t &cols, const bool &verbose=false)
template<typename Scalar, int rows, int cols>
Eigen::Matrix< Scalar, rows, cols > readMatrix (const std::string &key, const bool &verbose=false)
template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > readMatrixCols (const std::string &key, const size_t &cols, const bool &verbose=false)
template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > readMatrixRows (const std::string &key, const size_t &rows, const bool &verbose=false)

Public Attributes

const std::string fileName

Detailed Description

Definition at line 122 of file TextFileParser.h.

Constructor & Destructor Documentation

◆ TextFileParser()

model::TextFileParser::TextFileParser ( const std::string & _fileName)
inline

Definition at line 185 of file TextFileParser.h.

Member Function Documentation

◆ readArray()

template<typename Scalar>
std::vector< Scalar > model::TextFileParser::readArray ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 395 of file TextFileParser.h.

◆ readArrayMap()

template<typename KeyType, typename Scalar>
std::map< KeyType, std::vector< Scalar > > model::TextFileParser::readArrayMap ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 314 of file TextFileParser.h.

◆ readMatrix() [1/2]

template<typename Scalar, int rows, int cols>
Eigen::Matrix< Scalar, rows, cols > model::TextFileParser::readMatrix ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 507 of file TextFileParser.h.

◆ readMatrix() [2/2]

template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > model::TextFileParser::readMatrix ( const std::string & key,
const size_t & rows,
const size_t & cols,
const bool & verbose = false )
inline

Definition at line 488 of file TextFileParser.h.

◆ readMatrixCols()

template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > model::TextFileParser::readMatrixCols ( const std::string & key,
const size_t & cols,
const bool & verbose = false )
inline

Definition at line 514 of file TextFileParser.h.

◆ readMatrixRows()

template<typename Scalar>
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > model::TextFileParser::readMatrixRows ( const std::string & key,
const size_t & rows,
const bool & verbose = false )
inline

Definition at line 530 of file TextFileParser.h.

◆ readScalar()

template<typename Scalar>
Scalar model::TextFileParser::readScalar ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 238 of file TextFileParser.h.

◆ readSet()

template<typename Scalar>
std::set< Scalar > model::TextFileParser::readSet ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 261 of file TextFileParser.h.

◆ readString()

std::string model::TextFileParser::readString ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 202 of file TextFileParser.h.

◆ readStringSet()

std::set< std::string > model::TextFileParser::readStringSet ( const std::string & key,
const bool & verbose = false )
inline

Definition at line 223 of file TextFileParser.h.

◆ readStringVector()

std::vector< std::pair< std::string, std::string > > model::TextFileParser::readStringVector ( const std::string & key)
inline

Definition at line 218 of file TextFileParser.h.

◆ splitMapLine()

template<typename KeyType, typename Scalar>
std::tuple< bool, bool, KeyType, std::vector< Scalar >, std::string > model::TextFileParser::splitMapLine ( const std::string & line) const
inline

Definition at line 282 of file TextFileParser.h.

Member Data Documentation

◆ fileName

const std::string model::TextFileParser::fileName

Definition at line 182 of file TextFileParser.h.


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