-
Notifications
You must be signed in to change notification settings - Fork 0
/
testconceptmapmenudialog.cpp
85 lines (68 loc) · 1.96 KB
/
testconceptmapmenudialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "testconceptmapmenudialog.h"
#include <cassert>
#include <iostream>
#include "conceptmap.h"
#include "conceptmapfactory.h"
#include "container.h"
#include "fileio.h"
#include "geometry.h"
#include "plane.h"
#include "ribi_regex.h"
ribi::TestConceptMapMenuDialog::TestConceptMapMenuDialog()
{
}
int ribi::TestConceptMapMenuDialog::ExecuteSpecific(const std::vector<std::string>& argv) noexcept
{
const int argc = static_cast<int>(argv.size());
if (argc == 1)
{
std::cout << GetHelp() << '\n';
return 0;
}
std::cout << "This application does not have a console mode\n";
return 0;
}
ribi::About ribi::TestConceptMapMenuDialog::GetAbout() const noexcept
{
About a(
"Richel Bilderbeek",
"TestConceptMap",
"tests the ConceptMap classes",
"on April 9th 2016",
"2013-2016",
"http://www.richelbilderbeek.nl/ToolTestConceptMap.htm",
GetVersion(),
GetVersionHistory());
a.AddLibrary("apfloat version: 2.4.1");
//a.AddLibrary("ConceptMap version: " + ribi::cmap::ConceptMap::GetVersion());
a.AddLibrary("Container version: " + ribi::Container().GetVersion());
a.AddLibrary("FileIo version: " + FileIo().GetVersion());
a.AddLibrary("Geometry version: " + Geometry().GetVersion());
a.AddLibrary("ribi::Regex version: " + Regex().GetVersion());
return a;
}
ribi::Help ribi::TestConceptMapMenuDialog::GetHelp() const noexcept
{
return ribi::Help(
this->GetAbout().GetFileTitle(),
this->GetAbout().GetFileDescription(),
{
},
{
}
);
}
std::string ribi::TestConceptMapMenuDialog::GetVersion() const noexcept
{
return "1.4";
}
std::vector<std::string> ribi::TestConceptMapMenuDialog::GetVersionHistory() const noexcept
{
return {
"2013-12-03: version 1.0: initial version",
"2014-05-18: version 1.1: added testing Example",
"2014-08-07: version 1.2: increased use of TDD",
"2015-10-02: version 1.3: moved to own GitHub",
"2016-04-09: version 1.4: Travis CI did first GUI test"
};
}