29 lines
577 B
C++
29 lines
577 B
C++
|
#ifndef _OWLPS_POSITIONING_INPUTLOGCSV_HH_
|
||
|
#define _OWLPS_POSITIONING_INPUTLOGCSV_HH_
|
||
|
|
||
|
#include "inputlogmedium.hh"
|
||
|
|
||
|
#include <string>
|
||
|
#include <fstream>
|
||
|
|
||
|
/// Log Request 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_
|