]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/tools/lldb-mi/MIUtilDateTimeStd.h
Unbreak DRM KMS build by adding the needed compatibility field in the LinuxKPI.
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / tools / lldb-mi / MIUtilDateTimeStd.h
1 //===-- MIUtilDateTimeStd.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #pragma once
10
11 // Third party headers
12 #include <ctime>
13
14 // In-house headers:
15 #include "MIUtilString.h"
16
17 //++
18 //============================================================================
19 // Details: MI common code utility class. Used to retrieve system local date
20 //          time.
21 //--
22 class CMIUtilDateTimeStd {
23   // Methods:
24 public:
25   /* ctor */ CMIUtilDateTimeStd();
26
27   CMIUtilString GetDate();
28   CMIUtilString GetTime();
29   CMIUtilString GetDateTimeLogFilename();
30
31   // Overrideable:
32 public:
33   // From CMICmnBase
34   /* dtor */ virtual ~CMIUtilDateTimeStd();
35
36   // Attributes:
37 private:
38   std::time_t m_rawTime;
39   char m_pScratch[16];
40 };