Main MRPT website > C++ reference for MRPT 1.9.9
CAboutBoxBase.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #include "gui-precomp.h" // Precompiled headers
11 
12 #include "CAboutBoxBase.h"
13 #include <mrpt/config.h>
14 #include <mrpt/system/os.h>
15 #include <mrpt/core/format.h>
16 #include <mrpt/math/types_math.h> // for Eigen version
17 
18 using namespace mrpt;
19 using namespace mrpt::system;
20 
22  const std::string& appName, const std::string& additionalInfo,
23  const bool showStandardInfo)
24  : m_appName(appName),
25  m_additionalInfo(additionalInfo),
26  m_showStandardInfo(showStandardInfo)
27 {
28 }
29 
32 {
33  std::string s("Build: ");
34  s += MRPT_getVersion();
35  s += " ";
37  return s;
38 }
39 
41 {
42  return "Up to date documentation and tutorials are maintained at the MRPT "
43  "website:\n\nhttp://www.mrpt.org/\n\n\n\n";
44 }
45 
47 {
49 }
50 
52  const std::string& guiLibName, const std::string& guiLibVersion) const
53 {
54  std::string str = m_appName + "\n";
55  str +=
56  "----------------------------------\n"
57  "Part of the MRPT project.\n"
58  "For bug reports and source code, visit:"
59  " https://github.com/MRPT/mrpt \n\n";
60  ;
61  if (!m_additionalInfo.empty())
62  {
63  str += m_additionalInfo + "\n";
64  }
65  str += "MRPT version: " + MRPT_getVersion() + "\n";
66  str += "MRPT source timestamp: " + MRPT_getCompilationDate() + "\n";
67 
69  {
70  str += "Eigen version: ";
71  str += mrpt::format(
72  "%u.%u.%u\n", EIGEN_WORLD_VERSION, EIGEN_MAJOR_VERSION,
73  EIGEN_MINOR_VERSION);
74  str += guiLibName + " version: " + guiLibVersion;
75 #if defined(__WXMSW__)
76  str += "-Windows";
77 #elif defined(__UNIX__)
78  str += "-Linux";
79 #endif
80 #if wxUSE_UNICODE
81  str += "-Unicode build";
82 #else
83  str += "-ANSI build";
84 #endif // wxUSE_UNICODE
85 
86  str += "\nOpenCV version: ";
87 #if MRPT_HAS_OPENCV
88  str += MRPT_OPENCV_VERSION;
89  str += "\n";
90 #else
91  str += "None";
92  str += "\n";
93 #endif
94  }
95 
96  return str;
97 }
os.h
CAboutBoxBase::tutorial
std::string tutorial() const
Definition: CAboutBoxBase.cpp:40
s
GLdouble s
Definition: glext.h:3676
CAboutBoxBase::license
std::string license() const
Definition: CAboutBoxBase.cpp:46
format.h
CAboutBoxBase::information
std::string information(const std::string &guiLibName, const std::string &guiLibVersion) const
Definition: CAboutBoxBase.cpp:51
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
CAboutBoxBase::m_appName
const std::string m_appName
Definition: CAboutBoxBase.h:27
CAboutBoxBase::CAboutBoxBase
CAboutBoxBase(const std::string &appName, const std::string &additionalInfo, const bool showStandardInfo)
Definition: CAboutBoxBase.cpp:21
CAboutBoxBase::~CAboutBoxBase
virtual ~CAboutBoxBase()
Definition: CAboutBoxBase.cpp:30
CAboutBoxBase::m_showStandardInfo
const bool m_showStandardInfo
Definition: CAboutBoxBase.h:29
CAboutBoxBase.h
mrpt::format
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Definition: format.cpp:16
CAboutBoxBase::MRPTBuildVersion
std::string MRPTBuildVersion() const
Definition: CAboutBoxBase.cpp:31
gui-precomp.h
mrpt::system::MRPT_getCompilationDate
std::string MRPT_getCompilationDate()
Returns the MRPT source code timestamp, according to the Reproducible-Builds specifications: https://...
Definition: os.cpp:152
string
GLsizei const GLchar ** string
Definition: glext.h:4101
types_math.h
mrpt::system::MRPT_getVersion
std::string MRPT_getVersion()
Returns a string describing the MRPT version.
Definition: os.cpp:185
CAboutBoxBase::m_additionalInfo
const std::string m_additionalInfo
Definition: CAboutBoxBase.h:28
mrpt::system
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
Definition: math_frwds.h:25
mrpt::system::getMRPTLicense
const std::string & getMRPTLicense()
Returns a const ref to a text with the same text that appears at the beginning of each MRPT file (use...
Definition: os.cpp:532



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST