MOOS
#include <MOOSFileReader.h>
Inheritance diagram for CMOOSFileReader:
Public Member Functions | |
bool | IsOpen () |
bool | GoTo (std::string sLine) |
bool | eof () |
bool | Reset () |
bool | GetValue (std::string sName, std::string &sResult) |
bool | GetValue (std::string sName, double &dfResult) |
bool | GetValue (std::string sName, int &nResult) |
bool | GetValue (std::string sName, float &fResult) |
bool | GetValue (std::string sName, bool &bResult) |
bool | GetValue (std::string sName, unsigned int &nResult) |
bool | SetFile (const std::string &sFile) |
std::string | GetNextValidLine () |
Static Public Member Functions | |
static bool | GetTokenValPair (std::string sLine, std::string &sTok, std::string &sVal, bool bPreserveWhiteSpace=false) |
Protected Member Functions | |
std::ifstream * | GetFile () |
Static Protected Member Functions | |
static bool | IsComment (std::string &sLine) |
Protected Attributes | |
CMOOSLock * | m_pLock |
std::string | m_sFileName |
std::ifstream | m_File |
THREAD2FILE_MAP | m_FileMap |
|
returns a string of teh next non comment line (and removs trailing comments) |
|
static helper which splits a line into token = value and by deafult removes white space |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
looks for a line "sName = Val" in whole file, fills in result with Val |
|
tell the class what file to read |
|
every thread get its own pointer to a stream |