VPTissue Reference Manual
WallType.h
Go to the documentation of this file.
1 #ifndef WALL_TYPE_H_INCLUDED
2 #define WALL_TYPE_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
21 #include <string>
22 
23 namespace SimPT_Sim {
24 namespace WallType {
25 
27 enum class Type
28 {
29  AuxinSource, AuxinSink, Normal
30 };
31 
33 std::string ToString(Type w);
34 
36 Type FromString(std::string s);
37 
38 } // namespace
39 } // namespace
40 
41 #endif // end-of-include-guard
Type FromString(string s)
Converts a string with name to WallType::Type value.
Definition: WallType.cpp:59
string ToString(Type w)
Converts a WallType::Type value to corresponding name.
Definition: WallType.cpp:49
Type
Enumerates the wall types.
Definition: WallType.h:27
Namespace for the core simulator.