bre20::DatalogFileWriter Class Reference

List of all members.

Public Member Functions

 DatalogFileWriter ()
 ~DatalogFileWriter ()
void Write (String *str)
void WriteLine (String *str)
void WriteNow (String *str)
 This will write regardless of the autostart state.
void WriteLineNow (String *str)
 This will write regardless of the autostart state.
void Flush ()
void setFileHeader (String *str)
void appendFileHeader (String *str)
String * getFileHeader ()
void close ()
 Closes the output file if its got one open.
void setFile (String *name)
 Sets the suggested file name and opens that file.
String * getCurrentFile ()
String * getFile ()
void setFileWriteEnable (bool enable)
 True if you want it to log to a file.
void setUserGoodToGo (bool good)
bool getUserGoodToGo ()
 Allows you to see if the user condition is set.
void makeDecision ()
void setRpm (int r)
void setTps (int t)
void setSpeed (int s)
int getRpm ()
int getSpeed ()
int getTps ()

Public Attributes

__event EventHandler * OnFileNameChanged

Detailed Description

The DatalogFileWriter class handles all of the writing to any datalog csv file. It also handles the auto start functionality which essentially just disables writing to the log file when the autostart conditions are not met.


Constructor & Destructor Documentation

bre20::DatalogFileWriter::DatalogFileWriter  ) 
 

bre20::DatalogFileWriter::~DatalogFileWriter  ) 
 


Member Function Documentation

void bre20::DatalogFileWriter::appendFileHeader String *  str  ) 
 

void bre20::DatalogFileWriter::close  ) 
 

Closes the output file if its got one open.

void bre20::DatalogFileWriter::Flush  ) 
 

String* bre20::DatalogFileWriter::getCurrentFile  ) 
 

String* bre20::DatalogFileWriter::getFile  ) 
 

String* bre20::DatalogFileWriter::getFileHeader  ) 
 

int bre20::DatalogFileWriter::getRpm  ) 
 

int bre20::DatalogFileWriter::getSpeed  ) 
 

int bre20::DatalogFileWriter::getTps  ) 
 

bool bre20::DatalogFileWriter::getUserGoodToGo  ) 
 

Allows you to see if the user condition is set.

void bre20::DatalogFileWriter::makeDecision  ) 
 

This function takes the entered data and makes a decision whether to turn on or off the file logging. This is called by the Logger after the rules have all been executed. That way we dont get extra stupid files with data that doesnt satisfy the criteria.

void bre20::DatalogFileWriter::setFile String *  name  ) 
 

Sets the suggested file name and opens that file.

void bre20::DatalogFileWriter::setFileHeader String *  str  ) 
 

void bre20::DatalogFileWriter::setFileWriteEnable bool  enable  ) 
 

True if you want it to log to a file.

void bre20::DatalogFileWriter::setRpm int  r  ) 
 

void bre20::DatalogFileWriter::setSpeed int  s  ) 
 

void bre20::DatalogFileWriter::setTps int  t  ) 
 

void bre20::DatalogFileWriter::setUserGoodToGo bool  good  ) 
 

Sets a 'user' condition that is anded with the rest of the built in conditions to determine if auto logging should turn on. This is for scripts!

void bre20::DatalogFileWriter::Write String *  str  ) 
 

This will only write to the file if the auto start conditions are satisfied or the autostart is disabled.

void bre20::DatalogFileWriter::WriteLine String *  str  ) 
 

This will only write to the file if the auto start conditions are satisfied or the autostart is disabled.

void bre20::DatalogFileWriter::WriteLineNow String *  str  ) 
 

This will write regardless of the autostart state.

void bre20::DatalogFileWriter::WriteNow String *  str  ) 
 

This will write regardless of the autostart state.


Member Data Documentation

__event EventHandler* bre20::DatalogFileWriter::OnFileNameChanged
 




BRE Documentation Home