VPTissue Reference Manual
simPT_sim.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
20 #include "modes/mode_manager.h"
21 
22 #include <boost/functional/value_factory.hpp>
23 #include <iostream>
24 #include <string>
25 #include <vector>
26 
27 using namespace Modes;
28 using namespace std;
29 
30 struct sim {
31  static const ModeManager<sim>::MapType modes;
32  static const std::string default_mode;
33  static const std::string application_name;
34 };
35 
36 const ModeManager<sim>::MapType sim::modes =
37  {{
38  make_pair("gui", boost::value_factory<simPTGUIMode>()),
39  make_pair("cli", boost::value_factory<simPTCLIMode>())
40  }};
41 
42 const std::string sim::default_mode = "gui";
43 const std::string sim::application_name = "simPT_sim";
44 
45 int main(int argc, char** argv)
46 {
47  return ModeManager<sim>::main(argc,argv);
48 }
STL namespace.
Implementation for the mode manager.
Namespace for startup modes for simPT tools.
Definition: mode_manager.h:36
Factory produces functions that start the different modes of the various executables.
Definition: mode_manager.h:47