Hopsan
PLOParser Class Reference

Public Member Functions

void clearData ()
 
bool isEmpty () const
 
bool eof () const
 
bool readText (const HString &text)
 
bool readFile (const HString &rFilepath)
 
HString getErrorString () const
 
size_t getNumDataRows () const
 
size_t getNumDataCols () const
 
size_t getPloFileVersion () const
 
std::vector< HStringgetDataNames () const
 
int getColIdxForDataName (const HString &rName) const
 
bool copyRow (const size_t rowIdx, std::vector< double > &rRow)
 
bool copyColumn (const size_t columnIdx, std::vector< double > &rColumn)
 
bool copyColumn (const HString &rDataName, std::vector< double > &rColumn)
 

Protected Member Functions

bool readFile (std::iostream &rFileStream)
 

Protected Attributes

std::vector< double > mData
 
std::vector< HStringmPlotQuantitiesOrScales
 
std::vector< HStringmDataNames
 
size_t mNumDataRows
 
size_t mNumDataCols
 
size_t mPloVersion
 
HString mErrorString
 

Member Function Documentation

◆ getErrorString()

HString getErrorString ( ) const

◆ readFile()

bool readFile ( std::iostream & rFileStream)
protected