owlps/owlps-positioning/src/inputlogcsv.hh

29 lines
601 B
C++

#ifndef _OWLPS_POSITIONING_INPUTLOGCSV_HH_
#define _OWLPS_POSITIONING_INPUTLOGCSV_HH_
#include "inputlogmedium.hh"
#include <string>
#include <fstream>
/// Log \link Request requests \endlink to a CSV file
class InputLogCSV: public InputLogMedium
{
protected:
std::string log_file_name ;
std::ofstream log_file ;
const std::string request_to_csv(const Request &request) const ;
public:
InputLogCSV(const std::string &filename) ;
~InputLogCSV(void) ;
/** @name Operations */
//@{
bool log_request(const Request &request) ;
//@}
} ;
#endif // _OWLPS_POSITIONING_INPUTLOGCSV_HH_