owlps/owlps-positioning/src/positioningalgorithm.hh

41 lines
850 B
C++

/*
* This file is part of the Owl Positioning System (OwlPS).
* OwlPS is a project of the University of Franche-Comté
* (Université de Franche-Comté), France.
*/
#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_