![]() |
OpenWalnut
1.5.0dev
|
class implements text file loading and several convinience methods to access More...
#include <WFileParser.h>
Collaboration diagram for WFileParser:Public Member Functions | |
| WFileParser (const std::string fileName) | |
| constructor More... | |
| ~WFileParser () | |
| destructor More... | |
| bool | readFile () |
| helper function to read a text file More... | |
| std::vector< std::string > | getRawLines () |
| getter More... | |
| std::vector< std::string > | getLinesForTag (std::string tag) |
| getter More... | |
| std::vector< std::vector< std::string > > | getLinesForTagSeparated (std::string tag) |
| getter More... | |
| WFileParser (const std::string fileName) | |
| constructor More... | |
| ~WFileParser () | |
| destructor More... | |
| bool | readFile () |
| helper function to read a text file More... | |
| std::vector< std::string > | getRawLines () |
| getter More... | |
| std::vector< std::string > | getLinesForTag (std::string tag) |
| getter More... | |
| std::vector< std::vector< std::string > > | getLinesForTagSeparated (std::string tag) |
| getter More... | |
Private Attributes | |
| std::string | m_fileName |
| the file name of the file to parse More... | |
| std::vector< std::string > | m_rawLines |
| vector of every line in the file More... | |
| std::string | m_tagIndicator |
| string marking a line as tag More... | |
| std::string | m_endIndicator |
| string marking the end of a tagged area More... | |
| std::string | m_delimiter |
| delimiter for entries in a line More... | |
class implements text file loading and several convinience methods to access
this class implements text file loading and several convinience methods to access the recovered text
Definition at line 34 of file clusterDisplayVoxels/WFileParser.h.
|
explicit |
| WFileParser::~WFileParser | ( | ) |
destructor
Definition at line 44 of file clusterDisplayVoxels/WFileParser.cpp.
|
explicit |
constructor
| fileName |
| WFileParser::~WFileParser | ( | ) |
destructor
| std::vector< std::string > WFileParser::getLinesForTag | ( | std::string | tag | ) |
getter
| tag | tag marking a certain type of content |
Definition at line 81 of file clusterDisplayVoxels/WFileParser.cpp.
References m_endIndicator, m_rawLines, and m_tagIndicator.
| std::vector<std::string> WFileParser::getLinesForTag | ( | std::string | tag | ) |
getter
| tag | tag marking a certain type of content |
| std::vector< std::vector< std::string > > WFileParser::getLinesForTagSeparated | ( | std::string | tag | ) |
getter
| tag | tag marking a certain type of content |
Definition at line 119 of file clusterDisplayVoxels/WFileParser.cpp.
References m_delimiter, m_endIndicator, m_rawLines, and m_tagIndicator.
Referenced by WMClusterDisplayVoxels::loadClustering(), and WHtree::readTree().
Here is the caller graph for this function:| std::vector< std::vector<std::string> > WFileParser::getLinesForTagSeparated | ( | std::string | tag | ) |
getter
| tag | tag marking a certain type of content |
|
inline |
getter
Definition at line 87 of file clusterDisplayVoxels/WFileParser.h.
References m_rawLines.
Referenced by WMClusterDisplayVoxels::loadClustering(), and WHtree::readTree().
Here is the caller graph for this function:| std::vector<std::string> WFileParser::getRawLines | ( | ) |
getter
| bool WFileParser::readFile | ( | ) |
helper function to read a text file
Definition at line 48 of file clusterDisplayVoxels/WFileParser.cpp.
References m_fileName, and m_rawLines.
Referenced by WMClusterDisplayVoxels::loadClustering(), and WHtree::readTree().
Here is the caller graph for this function:| bool WFileParser::readFile | ( | ) |
helper function to read a text file
|
private |
delimiter for entries in a line
Definition at line 84 of file clusterDisplayVoxels/WFileParser.h.
Referenced by getLinesForTagSeparated().
|
private |
string marking the end of a tagged area
Definition at line 82 of file clusterDisplayVoxels/WFileParser.h.
Referenced by getLinesForTag(), and getLinesForTagSeparated().
|
private |
the file name of the file to parse
Definition at line 76 of file clusterDisplayVoxels/WFileParser.h.
Referenced by readFile().
|
private |
vector of every line in the file
Definition at line 78 of file clusterDisplayVoxels/WFileParser.h.
Referenced by getLinesForTag(), getLinesForTagSeparated(), getRawLines(), and readFile().
|
private |
string marking a line as tag
Definition at line 80 of file clusterDisplayVoxels/WFileParser.h.
Referenced by getLinesForTag(), and getLinesForTagSeparated().