-
Notifications
You must be signed in to change notification settings - Fork 1
/
testbroadcastservermenudialog.cpp
95 lines (83 loc) · 2.71 KB
/
testbroadcastservermenudialog.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
86
87
88
89
90
91
92
93
94
95
//---------------------------------------------------------------------------
/*
TestBroadcastServer, tool to test WtBroadcastServer
Copyright (C) 2011-2015 Richel Bilderbeek
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//---------------------------------------------------------------------------
//From http://www.richelbilderbeek.nl/ToolTestBroadcastServer.htm
//---------------------------------------------------------------------------
#include "about.h"
#include "testbroadcastservermenudialog.h"
#include "trace.h"
ribi::ToolTestBroadcastServer::MenuDialog::MenuDialog()
{
#ifndef NDEBUG
Test();
#endif
}
int ribi::ToolTestBroadcastServer::MenuDialog::ExecuteSpecific(const std::vector<std::string>& /*argv*/) noexcept
{
//const int argc = static_cast<int>(argv.size());
std::cout << GetHelp() << '\n';
return 1;
}
ribi::About ribi::ToolTestBroadcastServer::MenuDialog::GetAbout() const noexcept
{
About a(
"Richel Bilderbeek",
"TestBroadcastServer",
"tool to test WtBroadcastServer",
"the 28th of April 2014",
"2011-2014",
"http://www.richelbilderbeek.nl/ToolTestBroadcastServer.htm",
GetVersion(),
GetVersionHistory()
);
return a;
}
ribi::Help ribi::ToolTestBroadcastServer::MenuDialog::GetHelp() const noexcept
{
return ribi::Help(
this->GetAbout().GetFileTitle(),
this->GetAbout().GetFileDescription(),
{
},
{
}
);
}
std::string ribi::ToolTestBroadcastServer::MenuDialog::GetVersion() const noexcept
{
return "2.0";
}
std::vector<std::string> ribi::ToolTestBroadcastServer::MenuDialog::GetVersionHistory() const noexcept
{
return {
"2011-07-27: Version 1.0: initial version",
"2011-07-28: Version 1.1: adapted ToolTestBroadcastServer to fit within WtWebsite",
"2011-08-01: Version 1.2: minor changes",
"2014-04-28: Version 2.0: put in namespace ribi"
};
}
#ifndef NDEBUG
void ribi::ToolTestBroadcastServer::MenuDialog::Test() noexcept
{
{
static bool is_tested = false;
if (is_tested) return;
is_tested = true;
}
TRACE("Starting ribi::ToolTestBroadcastServer::MenuDialog::Test");
TRACE("Finished ribi::ToolTestBroadcastServer::MenuDialog::Test successfully");
}
#endif