Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(518)

Unified Diff: src/mobility-service-interface/model/places-api-connect.h

Issue 176430044: mobility-service-interface module code review (Closed)
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mobility-service-interface/model/place.cc ('k') | src/mobility-service-interface/model/point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mobility-service-interface/model/places-api-connect.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/mobility-service-interface/model/places-api-connect.h
@@ -0,0 +1,43 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2014 Tiago Cerqueira
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Tiago Cerqueira <1090678@isep.ipp.pt> <tiago.miguel43@gmail.com>
+ */
+
+#ifndef PLACESAPICONNECT_H
+#define PLACESAPICONNECT_H
+#include "ns3/place.h"
+namespace ns3 {
+/**
+ * \ingroup mobility
+ *
+ * \brief An interface to the API used to request the location of Places
+ */
+class PlacesApiConnect
+{
+public:
+ /**
+ * \brief Performs a request to the Google Maps Places service
+ *
+ * This function is abstract and needs to be implemented
+ */
+ virtual std::list<Ptr<Place> > PerformRequest (double lat, double lng, double radius) = 0;
+private:
+};
+} //namespace ns3
+#endif /* PLACESAPICONNECT_H */
+
« no previous file with comments | « src/mobility-service-interface/model/place.cc ('k') | src/mobility-service-interface/model/point.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b