|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Utility to query the contents of a model file by keyWord. More...
#include <FmModelFileQuery.H>
Public Member Functions | |
| FmModelFileQuery (const std::string &filePath="") | |
| std::vector< std::string > | getEntries (const std::string &keyWord, bool all=true) |
| Returns the values of the provided keyword. More... | |
| std::string | getFirstEntry (const std::string &keyWord) |
Private Attributes | |
| std::string | myModelFile |
Utility to query the contents of a model file by keyWord.
Comes in handy if you want to check the contents of other model files than the one you are currently working with.
|
inline |
| std::vector< std::string > FmModelFileQuery::getEntries | ( | const std::string & | keyWord, |
| bool | all = true |
||
| ) |
Returns the values of the provided keyword.
If all is false, it will stop after the first occurance of keyWord. Returns empty vector if no model file is set or if the file cannot be read.
| std::string FmModelFileQuery::getFirstEntry | ( | const std::string & | keyWord | ) |
Provided for convenience. Does the same as the above, and returns the first occurance of the keyWord.
|
private |