Stride Reference Manual  - generated for commit 9643b11
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ContactLogMode.h
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2017, Kuylen E, Willem L, Broeckhove J
14  */
15 
21 #pragma once
22 
23 #include <string>
24 
25 namespace stride {
32 namespace ContactLogMode {
33 
34 enum class Id
35 {
36  None = 0U,
37  Transmissions = 1U,
38  All = 2U,
39  Susceptibles = 3U
40 };
41 
43 std::string ToString(ContactLogMode::Id w);
44 
46 bool IsMode(const std::string& s);
47 
49 ContactLogMode::Id ToMode(const std::string& s);
50 
51 } // namespace ContactLogMode
52 } // namespace stride
Id ToMode(const string &s)
Converts a string with name to LogMode value.
string ToString(Id l)
Converts a LogMode value to corresponding name.
bool IsMode(const std::string &s)
Check whether string is name of LogMode value.
Namespace for the simulator and related classes.
Definition: Calendar.cpp:28