Structural deformable models
|
#include <ParseFile.h>
Public Types | |
enum | ErrorID { ERR_OK =0, ERR_FILE, ERR_PARSE, ERR_EOF } |
Public Member Functions | |
ParseFile (const std::string &filename) | |
ParseFile (std::istream &is) | |
bool | open (const std::string &filename) |
void | attach (std::istream &is) |
void | close () |
bool | good () const |
bool | eof () const |
bool | error () const |
const std::string & | getPath () const |
const std::string & | getFilename () const |
const std::string & | getLine () const |
const std::string & | getKey () const |
const std::string & | getValue () const |
const int | getLineNumber () const |
const bool | getNextLine () |
void | pushLine (const std::string &line) |
void | pushLine () |
void | setParseError (const std::string &msg="") |
char | getCommentChar () const |
void | setCommentChar (char cchar) |
std::string | getErrorMsg () const |
void | appendErrMsg (const std::string &msg) |
operator bool () const | |
operator std::istream & () | |
Static Public Member Functions | |
static std::string | getPath (const std::string &sfilename) |
Protected Member Functions | |
void | resetStrings () |
void | parseLine () |
Protected Attributes | |
std::ifstream | m_IF |
std::istream | m_IS |
std::string | m_Filename |
std::string | m_Path |
enum ErrorID | m_Error |
std::list< std::string > | m_PushedLines |
std::string | m_Line |
std::string | m_LastLine |
int | m_LineN |
std::string | m_Key |
std::string | m_Value |
std::string | m_ErrMsg |
const char | c_CommentChar |
Definition at line 15 of file ParseFile.h.
enum ParseFile::ErrorID |
Enumerator | |
---|---|
ERR_OK | |
ERR_FILE | |
ERR_PARSE | |
ERR_EOF |
Definition at line 17 of file ParseFile.h.
|
inline |
|
inline |
Definition at line 24 of file ParseFile.h.
|
inline |
|
inline |
Definition at line 37 of file ParseFile.h.
References m_IS, and resetStrings().
Referenced by open().
|
inline |
Definition at line 41 of file ParseFile.h.
References ERR_OK, m_Error, m_Filename, m_IF, m_Key, m_Line, m_LineN, m_Path, and m_Value.
|
inline |
Definition at line 49 of file ParseFile.h.
References ERR_EOF, and m_Error.
Referenced by operator>>().
|
inline |
Definition at line 50 of file ParseFile.h.
References ERR_EOF, ERR_OK, and m_Error.
Referenced by SubStructure::read(), StructTable::read(), and MStructure::read().
|
inline |
|
inline |
Definition at line 85 of file ParseFile.h.
References ERR_FILE, ERR_OK, ERR_PARSE, m_ErrMsg, m_Error, m_Filename, and m_LineN.
Referenced by Brain::load(), and StructTable::read().
|
inline |
Definition at line 53 of file ParseFile.h.
References m_Filename.
Referenced by SpeciesDB::load(), and operator>>().
|
inline |
Definition at line 56 of file ParseFile.h.
References m_Key.
Referenced by Brain::load(), MStructure::loadRefProp(), operator>>(), SubStructure::read(), MStructure::read(), SearcherParams::read(), Model::readEdge(), StructTable::readInterpreations(), Model::readNode(), Model::readParameter(), SensorCollection::readSensor(), and Model::readSensor().
|
inline |
|
inline |
|
inline |
Definition at line 59 of file ParseFile.h.
References ERR_EOF, ERR_OK, m_Error, m_IS, m_Key, m_LastLine, m_Line, m_LineN, m_PushedLines, m_Value, and parseLine().
Referenced by Brain::load(), MStructure::loadRefProp(), operator>>(), SubStructure::read(), MStructure::read(), SearcherParams::read(), Model::readEdge(), StructTable::readInterpreations(), Model::readNode(), Model::readParameter(), SensorCollection::readSensor(), and Model::readSensor().
|
inline |
Definition at line 52 of file ParseFile.h.
References m_Path.
Referenced by Brain::load(), SpeciesDB::load(), open(), operator<<(), StructTable::read(), MStructure::read(), and Model::readSensor().
|
inlinestatic |
Definition at line 106 of file ParseFile.h.
|
inline |
Definition at line 57 of file ParseFile.h.
References m_Value.
Referenced by Brain::load(), MStructure::loadRefProp(), operator>>(), SubStructure::read(), MStructure::read(), SearcherParams::read(), Model::readEdge(), StructTable::readInterpreations(), Model::readNode(), Model::readParameter(), SensorCollection::readSensor(), and Model::readSensor().
|
inline |
Definition at line 48 of file ParseFile.h.
References ERR_OK, and m_Error.
Referenced by operator bool().
|
inline |
Definition at line 27 of file ParseFile.h.
References attach(), ERR_FILE, getPath(), m_Error, m_Filename, m_IF, m_Path, and resetStrings().
Referenced by ParseFile().
|
inline |
|
inline |
|
inlineprotected |
Definition at line 121 of file ParseFile.h.
References c_CommentChar, m_Key, m_Line, and m_Value.
Referenced by getNextLine(), and pushLine().
|
inline |
Definition at line 74 of file ParseFile.h.
References m_PushedLines.
Referenced by operator>>(), MStructure::read(), SearcherParams::read(), Model::readEdge(), StructTable::readInterpreations(), Model::readNode(), Model::readParameter(), SensorCollection::readSensor(), and Model::readSensor().
|
inline |
|
inlineprotected |
Definition at line 113 of file ParseFile.h.
References ERR_OK, m_ErrMsg, m_Error, m_Filename, m_Key, m_LastLine, m_Line, m_LineN, m_Path, m_PushedLines, and m_Value.
Referenced by attach(), and open().
|
inline |
|
inline |
Definition at line 80 of file ParseFile.h.
References ERR_OK, ERR_PARSE, m_ErrMsg, and m_Error.
Referenced by Brain::load(), SubStructure::read(), StructTable::read(), MStructure::read(), Model::readEdge(), StructTable::readInterpreations(), Model::readNode(), and SensorCollection::readSensor().
|
protected |
Definition at line 143 of file ParseFile.h.
Referenced by getCommentChar(), parseLine(), and setCommentChar().
|
protected |
Definition at line 142 of file ParseFile.h.
Referenced by appendErrMsg(), getErrorMsg(), resetStrings(), and setParseError().
|
protected |
Definition at line 137 of file ParseFile.h.
Referenced by close(), eof(), error(), getErrorMsg(), getNextLine(), good(), open(), resetStrings(), and setParseError().
|
protected |
Definition at line 136 of file ParseFile.h.
Referenced by close(), getErrorMsg(), getFilename(), open(), and resetStrings().
|
protected |
Definition at line 134 of file ParseFile.h.
|
protected |
Definition at line 135 of file ParseFile.h.
Referenced by attach(), getNextLine(), and operator std::istream &().
|
protected |
Definition at line 141 of file ParseFile.h.
Referenced by close(), getKey(), getNextLine(), parseLine(), and resetStrings().
|
protected |
Definition at line 139 of file ParseFile.h.
Referenced by getNextLine(), pushLine(), and resetStrings().
|
protected |
Definition at line 139 of file ParseFile.h.
Referenced by close(), getLine(), getNextLine(), parseLine(), pushLine(), and resetStrings().
|
protected |
Definition at line 140 of file ParseFile.h.
Referenced by close(), getErrorMsg(), getLineNumber(), getNextLine(), and resetStrings().
|
protected |
Definition at line 136 of file ParseFile.h.
Referenced by close(), getPath(), open(), and resetStrings().
|
protected |
Definition at line 138 of file ParseFile.h.
Referenced by getNextLine(), pushLine(), and resetStrings().
|
protected |
Definition at line 141 of file ParseFile.h.
Referenced by close(), getNextLine(), getValue(), parseLine(), and resetStrings().