34 lines
679 B
C++
34 lines
679 B
C++
#ifndef _OWLPS_POSITIONING_POSITIONINGALGORITHM_HH_
|
|
#define _OWLPS_POSITIONING_POSITIONINGALGORITHM_HH_
|
|
|
|
#include "request.hh"
|
|
#include "result.hh"
|
|
|
|
/// Super-class of all positioning algorithms
|
|
class PositioningAlgorithm
|
|
{
|
|
protected:
|
|
/// Name of the algorithm
|
|
const std::string name ;
|
|
|
|
public:
|
|
PositioningAlgorithm(const std::string _name = "UnknownAlgorithm"):
|
|
name(_name) {}
|
|
virtual ~PositioningAlgorithm(void) {}
|
|
|
|
const std::string& get_name(void) const ;
|
|
|
|
virtual Result compute(const Request &request) = 0 ;
|
|
} ;
|
|
|
|
|
|
|
|
inline const std::string& PositioningAlgorithm::get_name() const
|
|
{
|
|
return name ;
|
|
}
|
|
|
|
|
|
|
|
#endif // _OWLPS_POSITIONING_POSITIONINGALGORITHM_HH_
|