Changeset 16560 for issm/trunk/src/c/shared/Enum/Synchronize.sh
- Timestamp:
- 10/28/13 14:43:03 (11 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 16138-16453,16455-16554
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/shared/Enum/Synchronize.sh
r16137 r16560 73 73 #include "../Exceptions/exceptions.h" 74 74 75 int StringToEnumx(const char* name ){75 int StringToEnumx(const char* name,bool notfounderror){ 76 76 77 77 int stage=1; … … 97 97 cat <<END >> $ISSM_DIR/src/c/shared/Enum/StringToEnumx.cpp 98 98 /*If we reach this point, the string provided has not been found*/ 99 _error_("Enum " << name << " not found"); 99 if(notfounderror) 100 _error_("Enum " << name << " not found"); 101 else 102 return -1; 100 103 } 101 104 END 102 105 #}}} 106 ##Build EnumToAnalysis.cpp {{{ 107 ##Header 108 #cat <<END > $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp 109 #/* 110 #* \file EnumToAnalysis.cpp 111 #* \brief: output class depending on enum 112 #* 113 #* WARNING: DO NOT MODIFY THIS FILE 114 #* this file has been automatically generated by Synchronize.sh 115 #* Please read README for more information 116 #*/ 117 # 118 ##include "./analyses.h" 119 ##include "../shared/shared.h" 120 # 121 #Analysis* EnumToAnalysis(int analysis_enum){ 122 # 123 # switch(analysis_enum){ 124 #END 125 ##core 126 #cat temp | grep [a-z]Analysis | \ 127 # grep -v DefaultAnalysis | grep -v FlaimAnalysis | grep -v SurfaceSlopeAnalysis | grep -v BedSlopeAnalysis | \ 128 # awk '{print "\t\t#ifdef _HAVE_"toupper(substr($1,1,length($1)-12))"_\n\t\t" "case " $1" : return new " substr($1,1,length($1)-4) "();\n\t\t#endif"}' \ 129 # >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp 130 # 131 ##Footer 132 #cat <<END >> $ISSM_DIR/src/c/analyses/EnumToAnalysis.cpp 133 #default : _error_("enum provided not supported ("<<EnumToStringx(analysis_enum)<<")"); 134 # } 135 #} 136 #END 137 ##}}} 103 138 #Build EnumDefinitions.py{{{ 104 139 cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.py
Note:
See TracChangeset
for help on using the changeset viewer.