MongoDB C++ Driver legacy-1.1.2
Loading...
Searching...
No Matches
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
21#include "mongo/geo/constants.h"
23#include "mongo/geo/geometry.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
34namespace mongo {
35namespace geo {
36
37namespace coords2d {
38
39typedef BoundingBox<Coordinates2D> BoundingBox;
40typedef Geometry<Coordinates2D> Geometry;
41typedef GeometryCollection<Coordinates2D> GeometryCollection;
42typedef LineString<Coordinates2D> LineString;
43typedef MultiLineString<Coordinates2D> MultiLineString;
44typedef MultiPoint<Coordinates2D> MultiPoint;
45typedef MultiPolygon<Coordinates2D> MultiPolygon;
46typedef GeoObj<Coordinates2D> GeoObj;
47typedef Point<Coordinates2D> Point;
48typedef Polygon<Coordinates2D> Polygon;
49typedef Parser<Coordinates2D> Parser;
50
51} // namespace coords2d
52
53namespace coords2dgeographic {
54
55typedef BoundingBox<Coordinates2DGeographic> BoundingBox;
56typedef Geometry<Coordinates2DGeographic> Geometry;
57typedef GeometryCollection<Coordinates2DGeographic> GeometryCollection;
58typedef LineString<Coordinates2DGeographic> LineString;
59typedef MultiLineString<Coordinates2DGeographic> MultiLineString;
60typedef MultiPoint<Coordinates2DGeographic> MultiPoint;
61typedef MultiPolygon<Coordinates2DGeographic> MultiPolygon;
62typedef GeoObj<Coordinates2DGeographic> GeoObj;
63typedef Point<Coordinates2DGeographic> Point;
64typedef Polygon<Coordinates2DGeographic> Polygon;
65typedef 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