ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
larcfm::DaidalusFileWalker Class Reference
Inheritance diagram for larcfm::DaidalusFileWalker:
larcfm::ErrorReporter

Public Member Functions

 DaidalusFileWalker (const std::string &filename)
 
void resetInputFile (const std::string &filename)
 
double firstTime () const
 
double lastTime () const
 
int getIndex () const
 
double getTime () const
 
bool atBeginning () const
 
bool atEnd () const
 
bool goToTime (double t)
 
bool goToTimeStep (int i)
 
void goToBeginning ()
 
void goToEnd ()
 
void goNext ()
 
void goPrev ()
 
int indexOfTime (double t) const
 
void readState (Daidalus &daa)
 
bool hasError () const
 
bool hasMessage () const
 
std::string getMessage ()
 
std::string getMessageNoClear () const
 

Static Public Member Functions

static void readExtraColumns (Daidalus &daa, const SequenceReader &sr, int ac_idx)
 

Private Member Functions

void init ()
 

Static Private Member Functions

static ParameterData extraColumnsToParameters (const SequenceReader &sr, double time, const std::string &ac_name)
 

Private Attributes

SequenceReader sr_
 
ParameterData p_
 
std::vector< double > times_
 
int index_
 

Member Function Documentation

◆ getMessage()

std::string larcfm::DaidalusFileWalker::getMessage ( )
virtual

Return a string representation of any errors or warnings. Calling this method will clear any messages and reset both the error and warning status to none.

Returns
error and warning messages. If there are no messages, an empty string is returned.

Implements larcfm::ErrorReporter.

◆ getMessageNoClear()

std::string larcfm::DaidalusFileWalker::getMessageNoClear ( ) const
virtual

Return a string representation of any errors or warnings. Calling this method will not clear the error or warning status (i.e., hasError() will return the same value before and after this call.)

Returns
error and warning messages. If there are no messages, an empty string is returned.

Implements larcfm::ErrorReporter.

◆ hasError()

bool larcfm::DaidalusFileWalker::hasError ( ) const
virtual

Does this object have an error?

Returns
true if there is an error.

Implements larcfm::ErrorReporter.

◆ hasMessage()

bool larcfm::DaidalusFileWalker::hasMessage ( ) const
virtual

Does this object have an error or a warning?

Returns
true if there is an error or warning.

Implements larcfm::ErrorReporter.


The documentation for this class was generated from the following files: