]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/tools/lldb-mi/MIUtilDateTimeStd.h
Merge sync of head
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / tools / lldb-mi / MIUtilDateTimeStd.h
1 //===-- MIUtilDateTimeStd.h -------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 //++
11 // File:        MIUtilDateTimeStd.h
12 //
13 // Overview:    CMIUtilDateTimeStd interface.
14 //
15 // Environment: Compilers:  Visual C++ 12.
16 //                          gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 //              Libraries:  See MIReadmetxt.
18 //
19 // Copyright:   None.
20 //--
21
22 #pragma once
23
24 // Third party headers
25 #include <ctime>
26
27 // In-house headers:
28 #include "MIUtilString.h"
29
30 //++ ============================================================================
31 // Details: MI common code utility class. Used to retrieve system local date
32 //          time.
33 // Gotchas: None.
34 // Authors: Illya Rudkin 16/07/2014.
35 // Changes: None.
36 //--
37 class CMIUtilDateTimeStd
38 {
39     // Methods:
40   public:
41     /* ctor */ CMIUtilDateTimeStd(void);
42
43     CMIUtilString GetDate(void);
44     CMIUtilString GetTime(void);
45
46     // Overrideable:
47   public:
48     // From CMICmnBase
49     /* dtor */ virtual ~CMIUtilDateTimeStd(void);
50
51     // Attributes:
52   private:
53     std::time_t m_rawTime;
54     MIchar m_pScratch[16];
55 };