DUNE: Uniform Navigational Environment  2017.01.0
Transports::LoggingURR4OS::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onEntityResolution (void)
 
void onResourceInitialization (void)
 
void onResourceRelease (void)
 
void writeHeader (std::ofstream &file, MetaData *m, double timestamp)
 
void writeLine (std::ofstream &file, double timestamp, const IMC::EstimatedState *state, const IMC::RhodamineDye *rdye, const IMC::Voltage *raw, const IMC::Temperature *temp=NULL)
 
void openLog (const Path &path)
 
void closeLog (void)
 
void consume (const IMC::LoggingControl *msg)
 
void consume (const IMC::EstimatedState *msg)
 
void consume (const IMC::RhodamineDye *msg)
 
void consume (const IMC::Voltage *msg)
 
void consume (const IMC::Temperature *msg)
 
void onMain (void)
 

Public Attributes

std::ofstream m_log_file
 
Path m_log_path
 
bool m_wrote_header
 
IMC::EstimatedState m_estate
 
unsigned m_temp_id
 
unsigned m_rhod_id
 
IMC::Temperature m_temperature
 
IMC::Voltage m_raw
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

void Transports::LoggingURR4OS::Task::closeLog ( void  )
inline

References m_log_file, and m_log_path.

Referenced by consume(), and openLog().

void Transports::LoggingURR4OS::Task::consume ( const IMC::LoggingControl *  msg)
inline

References closeLog(), and openLog().

void Transports::LoggingURR4OS::Task::consume ( const IMC::EstimatedState *  msg)
inline

References m_estate.

void Transports::LoggingURR4OS::Task::consume ( const IMC::RhodamineDye *  msg)
inline
void Transports::LoggingURR4OS::Task::consume ( const IMC::Voltage *  msg)
inline

References m_raw, and m_rhod_id.

void Transports::LoggingURR4OS::Task::consume ( const IMC::Temperature *  msg)
inline

References m_temp_id, and m_temperature.

void Transports::LoggingURR4OS::Task::onEntityResolution ( void  )
inline
void Transports::LoggingURR4OS::Task::onMain ( void  )
inline
void Transports::LoggingURR4OS::Task::onResourceInitialization ( void  )
inline
void Transports::LoggingURR4OS::Task::onResourceRelease ( void  )
inline
void Transports::LoggingURR4OS::Task::onUpdateParameters ( void  )
inline
void Transports::LoggingURR4OS::Task::openLog ( const Path &  path)
inline

References closeLog(), m_log_file, m_log_path, and m_wrote_header.

Referenced by consume().

void Transports::LoggingURR4OS::Task::writeHeader ( std::ofstream &  file,
MetaData m,
double  timestamp 
)
inline
void Transports::LoggingURR4OS::Task::writeLine ( std::ofstream &  file,
double  timestamp,
const IMC::EstimatedState *  state,
const IMC::RhodamineDye *  rdye,
const IMC::Voltage *  raw,
const IMC::Temperature *  temp = NULL 
)
inline

Member Data Documentation

Arguments Transports::LoggingURR4OS::Task::m_args
IMC::EstimatedState Transports::LoggingURR4OS::Task::m_estate

EstimatedState message.

Referenced by consume().

std::ofstream Transports::LoggingURR4OS::Task::m_log_file

Log file.

Referenced by closeLog(), consume(), and openLog().

Path Transports::LoggingURR4OS::Task::m_log_path

Log filename.

Referenced by closeLog(), and openLog().

IMC::Voltage Transports::LoggingURR4OS::Task::m_raw

Voltage message for raw data.

Referenced by consume().

unsigned Transports::LoggingURR4OS::Task::m_rhod_id

Rhodamine entity id.

Referenced by consume(), and onEntityResolution().

unsigned Transports::LoggingURR4OS::Task::m_temp_id

Temperature entity id.

Referenced by consume(), and onEntityResolution().

IMC::Temperature Transports::LoggingURR4OS::Task::m_temperature

Temperature message.

Referenced by consume().

bool Transports::LoggingURR4OS::Task::m_wrote_header

True if header for this file has been written.

Referenced by consume(), and openLog().

Collaboration diagram for Transports::LoggingURR4OS::Task:
Collaboration graph