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-2017, 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 
16 using namespace mrpt;
17 using namespace mrpt::system;
18 
20  const std::string& appName, const std::string& additionalInfo,
21  const bool showStandardInfo)
22  : m_appName(appName),
23  m_additionalInfo(additionalInfo),
24  m_showStandardInfo(showStandardInfo)
25 {
26 }
27 
30 {
31  std::string s("Build: ");
32  s += MRPT_getVersion();
33  s += " ";
35  return s;
36 }
37 
39 {
40  return "Up to date documentation and tutorials are maintained at the MRPT "
41  "website:\n\nhttp://www.mrpt.org/\n\n\n\n";
42 }
43 
45 {
47 }
48 
50  const std::string& guiLibName, const std::string& guiLibVersion) const
51 {
52  std::string str = m_appName + "\n";
53  str +=
54  "----------------------------------\n"
55  "Part of the MRPT project.\n"
56  "For bug reports and source code, visit:"
57  " https://github.com/MRPT/mrpt \n\n";
58  ;
59  if (!m_additionalInfo.empty())
60  {
61  str += m_additionalInfo + "\n";
62  }
63  str += "MRPT version: " + MRPT_getVersion() + "\n";
64  str += "MRPT source timestamp: " + MRPT_getCompilationDate() + "\n";
65 
67  {
68  str += "Eigen version: ";
69  str += mrpt::format(
70  "%u.%u.%u\n", EIGEN_WORLD_VERSION, EIGEN_MAJOR_VERSION,
71  EIGEN_MINOR_VERSION);
72  str += guiLibName + " version: " + guiLibVersion;
73 #if defined(__WXMSW__)
74  str += "-Windows";
75 #elif defined(__UNIX__)
76  str += "-Linux";
77 #endif
78 #if wxUSE_UNICODE
79  str += "-Unicode build";
80 #else
81  str += "-ANSI build";
82 #endif // wxUSE_UNICODE
83 
84  str += "\nOpenCV version: ";
85 #if MRPT_HAS_OPENCV
86  str += MRPT_OPENCV_VERSION;
87  str += "\n";
88 #else
89  str += "None";
90  str += "\n";
91 #endif
92  }
93 
94  return str;
95 }
const std::string m_additionalInfo
Definition: CAboutBoxBase.h:28
This namespace provides a OS-independent interface to many useful functions: filenames manipulation...
Definition: math_frwds.h:30
std::string license() const
std::string MRPT_getCompilationDate()
Returns the MRPT source code timestamp, according to the Reproducible-Builds specifications: https://...
Definition: os.cpp:151
std::string tutorial() const
std::string information(const std::string &guiLibName, const std::string &guiLibVersion) const
const bool m_showStandardInfo
Definition: CAboutBoxBase.h:29
GLdouble s
Definition: glext.h:3676
virtual ~CAboutBoxBase()
const std::string m_appName
Definition: CAboutBoxBase.h:27
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Definition: format.cpp:19
CAboutBoxBase(const std::string &appName, const std::string &additionalInfo, const bool showStandardInfo)
GLsizei const GLchar ** string
Definition: glext.h:4101
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string MRPTBuildVersion() const
std::string MRPT_getVersion()
Returns a string describing the MRPT version.
Definition: os.cpp:184
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:531



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019