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>
29 #include <ecl/config/portable_types.hpp>
30 #include <ecl/exceptions/standard_exception.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_ */
#define ecl_time_PUBLIC
const TimeStampBase & stamp(const double &decimal_time_value) ecl_assert_throw_decl(StandardException)
#define ecl_assert_throw_decl(exception)
Assure throw exception declaration.
#define ecl_debug_throw_decl(exception)
Debug mode throw exception declaration.


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38