2011-01-12 13:08:10 -05:00
|
|
|
/*
|
2013-10-14 07:42:28 -04:00
|
|
|
|
|
|
|
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
are permitted provided that the following conditions are met:
|
|
|
|
|
|
|
|
Redistributions of source code must retain the above copyright notice, this list
|
|
|
|
of conditions and the following disclaimer.
|
|
|
|
Redistributions in binary form must reproduce the above copyright notice, this
|
|
|
|
list of conditions and the following disclaimer in the documentation and/or
|
|
|
|
other materials provided with the distribution.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
*/
|
2011-01-12 13:08:10 -05:00
|
|
|
|
2012-08-27 11:40:59 -04:00
|
|
|
#ifndef IMPORTNODE_H_
|
|
|
|
#define IMPORTNODE_H_
|
|
|
|
|
2013-08-05 13:35:47 -04:00
|
|
|
#include "QueryNode.h"
|
2012-08-29 12:33:18 -04:00
|
|
|
#include "../DataStructures/HashTable.h"
|
|
|
|
|
2014-05-10 08:54:46 -04:00
|
|
|
#include <string>
|
|
|
|
|
2014-05-07 12:39:16 -04:00
|
|
|
struct ExternalMemoryNode : NodeInfo
|
|
|
|
{
|
2014-05-29 12:31:02 -04:00
|
|
|
ExternalMemoryNode(int lat, int lon, unsigned int id, bool bollard, bool traffic_light);
|
2014-02-18 13:26:57 -05:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
ExternalMemoryNode();
|
2014-05-07 12:39:16 -04:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
static ExternalMemoryNode min_value();
|
2014-02-18 13:26:57 -05:00
|
|
|
|
2014-05-29 12:31:02 -04:00
|
|
|
static ExternalMemoryNode max_value();
|
2014-05-07 12:39:16 -04:00
|
|
|
|
2012-08-27 11:40:59 -04:00
|
|
|
bool bollard;
|
|
|
|
bool trafficLight;
|
2012-08-29 12:33:18 -04:00
|
|
|
};
|
2012-08-27 11:40:59 -04:00
|
|
|
|
2014-05-07 12:39:16 -04:00
|
|
|
struct ImportNode : public ExternalMemoryNode
|
|
|
|
{
|
2012-08-29 12:33:18 -04:00
|
|
|
HashTable<std::string, std::string> keyVals;
|
2013-08-05 13:35:47 -04:00
|
|
|
|
2014-10-21 12:06:58 -04:00
|
|
|
void Clear();
|
2011-01-12 13:08:10 -05:00
|
|
|
};
|
|
|
|
|
2012-08-27 11:40:59 -04:00
|
|
|
#endif /* IMPORTNODE_H_ */
|