~ci-train-bot/location-service/location-service-ubuntu-yakkety-landing-006

« back to all changes in this revision

Viewing changes to include/location_service/com/ubuntu/location/wgs84/altitude.h

  • Committer: Thomas Voß
  • Date: 2013-05-28 14:20:45 UTC
  • Revision ID: thomas.voss@canonical.com-20130528142045-kq5umqdmm4o53vwk
Initial push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_ALTITUDE_H_
 
2
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_ALTITUDE_H_
 
3
 
 
4
#include "com/ubuntu/location/units/units.h"
 
5
#include "com/ubuntu/location/wgs84/coordinate.h"
 
6
 
 
7
namespace com
 
8
{
 
9
namespace ubuntu
 
10
{
 
11
namespace location
 
12
{
 
13
namespace wgs84
 
14
{
 
15
namespace tag
 
16
{
 
17
struct Altitude;
 
18
}
 
19
typedef Coordinate<tag::Altitude, units::Length> Altitude;
 
20
 
 
21
template<>
 
22
struct CoordinateTraits<Altitude>
 
23
{
 
24
    static void check_and_throw_if_invalid(const typename Altitude::Quantity&) {}
 
25
};
 
26
}
 
27
}
 
28
}
 
29
}
 
30
#endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_ALTITUDE_H_