timestamp_win.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_TIME_TIMESTAMP_WIN_HPP_
13 #define ECL_TIME_TIMESTAMP_WIN_HPP_
14 
15 /*****************************************************************************
16 ** Platform Check
17 *****************************************************************************/
18 
19 #include <ecl/config.hpp>
20 #if defined(ECL_IS_WIN32)
21 #define ECL_HAS_TIMESTAMP
22 
23 /*****************************************************************************
24 ** Includes
25 *****************************************************************************/
26 
27 #include <ecl/config/windows.hpp>
28 #include <ecl/config/macros.hpp>
31 #include "timestamp_base.hpp"
32 
33 /*****************************************************************************
34 ** Namespaces
35 *****************************************************************************/
36 
37 namespace ecl {
38 
39 /*****************************************************************************
40 ** Interface
41 *****************************************************************************/
91 class ecl_time_PUBLIC TimeStamp : public TimeStampBase {
92 public:
93  /*********************
94  ** Constructors
95  **********************/
105  TimeStamp() ecl_debug_throw_decl(StandardException);
116  TimeStamp (const double& decimal_time_value) ecl_assert_throw_decl(StandardException);
127  TimeStamp (const time_t &seconds, const long &nanoseconds) ecl_assert_throw_decl(StandardException);
137  TimeStamp (const TimeStampBase& base);
138 
139  virtual ~TimeStamp() {}
140 
141  /******************************************
142  ** Stamps
143  *******************************************/
144  using TimeStampBase::stamp;
151  const TimeStamp& stamp() ecl_debug_throw_decl(StandardException);
152 };
153 
154 } // namespace ecl
155 
156 #endif /* ECL_IS_WIN32 */
157 #endif /* ECL_TIME_TIMESTAMP_WIN_HPP_ */
Embedded control libraries.
Base class with common functionality across platforms for timestamps.
const TimeStampBase & stamp(const double &decimal_time_value) ecl_assert_throw_decl(StandardException)
Manually set the timestamp.
#define ecl_time_PUBLIC
Definition: macros.hpp:37


ecl_time
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:15