owlps/owlps-positioning/src/topologyreadercsv.hh

31 lines
597 B
C++

#ifndef _OWLPS_POSITIONING_TOPOLOGYREADERCSV_HH_
#define _OWLPS_POSITIONING_TOPOLOGYREADERCSV_HH_
class Point3D ;
#include "csvfilereader.hh"
#include <string>
/// Reads and registers to the Stock an Area list from a CSV file
/**
* CSV format is:
* Building name;Room name;X1;Y1;Z1;X2;Y2;Z2
*/
class TopologyReaderCSV
{
protected:
CSVFileReader file ;
void read_topology(void) ;
void process_line(void) ;
Point3D read_point(void) ;
public:
TopologyReaderCSV(const std::string &filename) ;
~TopologyReaderCSV(void) {}
} ;
#endif // _OWLPS_POSITIONING_TOPOLOGYREADERCSV_HH_