VPTissue Reference Manual
simPT_parex.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 parex {
31  static const ModeManager<parex>::MapType modes;
32  static const std::string default_mode;
33  static const std::string application_name;
34 };
35 
36 const ModeManager<parex>::MapType parex::modes=
37  {{
38  make_pair("client", boost::value_factory<ParexClientMode>()),
39  make_pair("server", boost::value_factory<ParexServerMode>()),
40  make_pair("node", boost::value_factory<ParexNodeMode>())
41  }};
42 
43 const std::string parex::default_mode = "client";
44 const std::string parex::application_name = "simPT_parex";
45 
46 
47 
48 int main(int argc, char** argv)
49 {
50  return ModeManager<parex>::main(argc,argv);
51 }
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