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();
116  TimeStamp (const double& decimal_time_value);
127  TimeStamp (const time_t &seconds, const long &nanoseconds);
137  TimeStamp (const TimeStampBase& base);
138 
139  virtual ~TimeStamp() {}
140 
141  /******************************************
142  ** Stamps
143  *******************************************/
144  using TimeStampBase::stamp;
151  const TimeStamp& stamp();
152 };
153 
154 } // namespace ecl
155 
156 #endif /* ECL_IS_WIN32 */
157 #endif /* ECL_TIME_TIMESTAMP_WIN_HPP_ */
portable_types.hpp
timestamp_base.hpp
Base class with common functionality across platforms for timestamps.
config.hpp
standard_exception.hpp
ecl_time_PUBLIC
#define ecl_time_PUBLIC
Definition: macros.hpp:37
ecl::TimeStampBase::stamp
const TimeStampBase & stamp(const double &decimal_time_value)
Manually set the timestamp.
Definition: timestamp_base.cpp:50
macros.hpp
ecl
Embedded control libraries.
windows.hpp


ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19