VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
logFileInfo.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "vrfutil/vrfutilDefines.h"
13 #include <string>
14 
18 #ifdef DtDIS
19 #define DT_PROTOCOL_SHORT_NAME "DIS"
20 #elif DtHLA
21 #ifdef DtHLA_1516
22 #ifdef DtHLA_1516_EVOLVED
23 #define DT_PROTOCOL_SHORT_NAME "HLA1516e"
24 #else
25 #define DT_PROTOCOL_SHORT_NAME "HLA1516"
26 #endif
27 #else
28 #define DT_PROTOCOL_SHORT_NAME "HLA13"
29 #endif
30 #else
31 #define DT_PROTOCOL_SHORT_NAME ""
32 #endif
33 
37 {
38 public:
39  DtLogFileInfo();
40  ~DtLogFileInfo() = default;
41 
42  DtLogFileInfo(DtLogFileInfo&) = default;
43  DtLogFileInfo(DtLogFileInfo&&) = default;
44 
45  static DtLogFileInfo& instance();
46 
47  std::string getFullString();
48  std::string getLogFileName();
49  std::string getDmpFileName();
50 
51  std::string getAppName();
52  void setAppName(const std::string&);
53 
54  std::string getProtocol();
55  void setProtocol(const std::string&);
56 
57  std::string getVersion();
58  void setVersion(const std::string&);
59 
60  std::string getSvnRev();
61  void setSvnRev(const std::string&);
62 
64  std::string getDate();
65  std::string getTime();
66  std::string getHostname();
67 
68 protected:
70 
71  std::string myAppName;
72  std::string myDate;
73  std::string myHostname;
74  std::string myProtocol;
75  std::string mySvnRev;
76  std::string myTime;
77  std::string myVersion;
78 };
std::string myVersion
Definition: logFileInfo.h:77
std::string myTime
Definition: logFileInfo.h:76
static DtLogFileInfo * theLogFileInstance
Definition: logFileInfo.h:69
std::string myProtocol
Definition: logFileInfo.h:74
Class DtLogFileInfo is a Singleton which contains the necessary information to name ...
Definition: logFileInfo.h:36
std::string myHostname
Definition: logFileInfo.h:73
std::string myDate
Definition: logFileInfo.h:72
std::string myAppName
Definition: logFileInfo.h:71
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
std::string mySvnRev
Definition: logFileInfo.h:75

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)