22 #include <boost/algorithm/string.hpp> 
   27 using boost::to_upper;
 
   32 std::map<Type, string> g_wall_type_name {
 
   33                 make_pair(Type::AuxinSource, 
"aux_source"),
 
   34                 make_pair(Type::AuxinSink, 
"aux_sink"),
 
   35                 make_pair(Type::Normal, 
"normal")
 
   38 std::map<string, Type> g_wall_name_type {
 
   39                 make_pair(
"AUX_SOURCE", Type::AuxinSource),
 
   40                 make_pair(
"AUX_SINK", Type::AuxinSink),
 
   41                 make_pair(
"NORMAL", Type::Normal)
 
   51         string ret = 
"Unknown";
 
   52         if (g_wall_type_name.count(w) == 1)
 
   54                 ret = g_wall_type_name[w];
 
   61         Type ret = Type::Normal;
 
   63         if (g_wall_name_type.count(s) == 1)
 
   65                 ret = g_wall_name_type[s];
 
Type FromString(string s)
Converts a string with name to WallType::Type value. 
Namespace for Types walls. 
string ToString(Type w)
Converts a WallType::Type value to corresponding name. 
Type
Enumerates the wall types. 
Namespace for the core simulator.