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