further implementation of data facades
This commit is contained in:
parent
ab1d3d1ced
commit
9452c7e0c7
@ -27,6 +27,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
#include "../../DataStructures/PhantomNodes.h"
|
||||
#include "../../DataStructures/TurnInstructions.h"
|
||||
#include "../../Util/OSRMException.h"
|
||||
#include "../../Util/StringUtil.h"
|
||||
#include "../../typedefs.h"
|
||||
|
||||
#include <string>
|
||||
@ -34,6 +35,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
template<class EdgeDataT>
|
||||
class BaseDataFacade {
|
||||
public:
|
||||
typedef EdgeDataT EdgeData;
|
||||
BaseDataFacade() { }
|
||||
virtual ~BaseDataFacade() { }
|
||||
|
||||
@ -91,11 +93,15 @@ public:
|
||||
virtual EdgeID FindEdge( const NodeID from, const NodeID to ) const = 0;
|
||||
|
||||
|
||||
virtual EdgeID FindEdgeIndicateIfReverse(
|
||||
const NodeID from,
|
||||
const NodeID to,
|
||||
bool & result
|
||||
) const = 0;
|
||||
virtual unsigned GetNameIndexFromEdgeID(const unsigned id) const = 0;
|
||||
|
||||
std::string GetEscapedNameForNameID(const unsigned name_id) const {
|
||||
std::string temporary_string;
|
||||
GetName(name_id, temporary_string);
|
||||
return HTMLEntitize(temporary_string);
|
||||
}
|
||||
|
||||
virtual std::string GetTimestamp() const = 0;
|
||||
};
|
||||
|
||||
#endif // QUERY_DATA_FACADE_H
|
||||
|
@ -93,6 +93,11 @@ public:
|
||||
const unsigned name_id,
|
||||
std::string & result
|
||||
) const { return; };
|
||||
|
||||
std::string GetTimestamp() const {
|
||||
return "";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif // INTERNAL_DATA_FACADE
|
||||
|
@ -94,6 +94,11 @@ public:
|
||||
const unsigned name_id,
|
||||
std::string & result
|
||||
) const { return; };
|
||||
|
||||
std::string GetTimestamp() const {
|
||||
return "";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif // SHARED_DATA_FACADE
|
||||
|
Loading…
Reference in New Issue
Block a user