MongoDB C++ Driver  legacy-1.1.2
namespaces.h
1 /* Copyright 2014 MongoDB Inc.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #pragma once
17 
20 #include "mongo/geo/boundingbox.h"
21 #include "mongo/geo/constants.h"
22 #include "mongo/geo/coordinates.h"
23 #include "mongo/geo/geometry.h"
25 #include "mongo/geo/linestring.h"
27 #include "mongo/geo/multipoint.h"
28 #include "mongo/geo/multipolygon.h"
29 #include "mongo/geo/geoobj.h"
30 #include "mongo/geo/point.h"
31 #include "mongo/geo/polygon.h"
32 #include "mongo/geo/parser.h"
33 
34 namespace mongo {
35 namespace geo {
36 
37 namespace coords2d {
38 
39 typedef BoundingBox<Coordinates2D> BoundingBox;
40 typedef Geometry<Coordinates2D> Geometry;
41 typedef GeometryCollection<Coordinates2D> GeometryCollection;
42 typedef LineString<Coordinates2D> LineString;
43 typedef MultiLineString<Coordinates2D> MultiLineString;
44 typedef MultiPoint<Coordinates2D> MultiPoint;
45 typedef MultiPolygon<Coordinates2D> MultiPolygon;
46 typedef GeoObj<Coordinates2D> GeoObj;
47 typedef Point<Coordinates2D> Point;
48 typedef Polygon<Coordinates2D> Polygon;
49 typedef Parser<Coordinates2D> Parser;
50 
51 } // namespace coords2d
52 
53 namespace coords2dgeographic {
54 
55 typedef BoundingBox<Coordinates2DGeographic> BoundingBox;
56 typedef Geometry<Coordinates2DGeographic> Geometry;
57 typedef GeometryCollection<Coordinates2DGeographic> GeometryCollection;
58 typedef LineString<Coordinates2DGeographic> LineString;
59 typedef MultiLineString<Coordinates2DGeographic> MultiLineString;
60 typedef MultiPoint<Coordinates2DGeographic> MultiPoint;
61 typedef MultiPolygon<Coordinates2DGeographic> MultiPolygon;
62 typedef GeoObj<Coordinates2DGeographic> GeoObj;
63 typedef Point<Coordinates2DGeographic> Point;
64 typedef Polygon<Coordinates2DGeographic> Polygon;
65 typedef Parser<Coordinates2DGeographic> Parser;
66 
67 } // namespace coords2dgeographic
68 
69 } // namespace geo
70 } // namespace mongo
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20