|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
24 #include "OTBMetadataExport.h"
27 #include <boost/operators.hpp>
42 constexpr
double internalPeriod =
static_cast<double>(InternalDurationType::period::num) / InternalDurationType::period::den;
60 return Ratio(lhs, rhs);
68 return V::template diff<U,V>(lhs, rhs);
74 friend std::ostream &
operator<<(std::ostream & os,
const T & v)
78 friend std::istream &
operator>>(std::istream & is, T & v)
96 private boost::equality_comparable<TimePoint>,
97 private boost::less_than_comparable<TimePoint>
105 std::ostream & Display(std::ostream & os)
const;
108 template <
typename U,
typename V>
static U
diff(V
const& lhs, V
const& rhs)
110 U
const res(lhs.m_Time - rhs.m_Time);
125 double GetJulianDay()
const;
128 double GetModifiedJulianDay()
const;
134 unsigned int GetMonth()
const;
137 unsigned int GetDay()
const;
140 unsigned int GetHour()
const;
143 unsigned int GetMinute()
const;
146 double GetSecond()
const;
163 private boost::addable<Duration>,
164 private boost::subtractable<Duration>,
165 private boost::multipliable2<Duration, double>,
167 private boost::equality_comparable<Duration>,
168 private boost::less_than_comparable<Duration>,
169 private boost::addable<TimePoint, Duration>,
170 private boost::subtractable<TimePoint, Duration>
198 double TotalSeconds()
const;
200 InternalDurationType::rep NumberOfTicks()
const;
250 std::ostream & Display(std::ostream & os)
const;
251 std::istream &
Read (std::istream & is);
265 #endif // otbDateTime_h
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
constexpr bool operator==(extents< StaticExtentsL... > const &lhs, extents< StaticExtentsR... > const &rhs)
OTBApplicationEngine_EXPORT int Read(const std::string &filename, Application::Pointer application)
bool operator<(std::tm x, std::tm y)
Compare 2 dates.