diff --git a/Plugins/HelloWorldPlugin.h b/Plugins/HelloWorldPlugin.h index ae0ff64b1..61b3e41f9 100644 --- a/Plugins/HelloWorldPlugin.h +++ b/Plugins/HelloWorldPlugin.h @@ -21,6 +21,7 @@ public: std::string GetVersionString() const { return std::string("0.1a"); } void HandleRequest(const RouteParameters & routeParameters, http::Reply& reply) { + std::cout << "[hello world]: runnning handler" << std::endl; reply.status = http::Reply::ok; reply.content.append("Hello World Demonstration Document

Hello, World!

"); std::stringstream content; diff --git a/Plugins/RouteParameters.h b/Plugins/RouteParameters.h index e4fc99d7f..f686e11bc 100644 --- a/Plugins/RouteParameters.h +++ b/Plugins/RouteParameters.h @@ -42,55 +42,6 @@ struct RouteParameters { std::vector hints; std::vector<_Coordinate> coordinates; typedef HashTable::MyIterator OptionsIterator; - - void setZoomLevel(const short i) { - if (18 > i && 0 < i) - zoomLevel = i; - } - - void setChecksum(const int c) { - checkSum = c; - } - - void setInstructionFlag(const bool b) { - printInstructions = b; - } - - void printService( const std::string & s) { - service = s; - } - - void setOutputFormat(const std::string & s) { - outputFormat = s; - } - - void setJSONpParameter(const std::string & s) { - jsonpParameter = s; - } - - void addHint(const std::string & s) { - hints.resize(coordinates.size()); - hints.back() = s; - } - - void setLanguage(const std::string & s) { - language = s; - } - - void setGeometryFlag(const bool b) { - geometry = b; - } - - void setCompressionFlag(const bool b) { - compression = b; - } - - void addCoordinate(boost::fusion::vector < double, double > arg_) { - int lat = 100000.*boost::fusion::at_c < 0 > (arg_); - int lon = 100000.*boost::fusion::at_c < 1 > (arg_); - _Coordinate myCoordinate(lat, lon); - coordinates.push_back(_Coordinate(lat, lon)); - } };