Changeset 16367
- Timestamp:
- 10/10/13 14:09:25 (11 years ago)
- Location:
- issm/trunk-jpl/src/c/shared/Enum
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Enum/Enum.h
r14974 r16367 6 6 const char* EnumToStringx(int enum_in); 7 7 void EnumToStringx(char** string,int enum_in); 8 int StringToEnumx(const char* string_in );8 int StringToEnumx(const char* string_in,bool notfounderror=true); 9 9 10 10 #endif -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r16343 r16367 12 12 #include "../Exceptions/exceptions.h" 13 13 14 int StringToEnumx(const char* name ){14 int StringToEnumx(const char* name,bool notfounderror){ 15 15 16 16 int stage=1; … … 619 619 } 620 620 /*If we reach this point, the string provided has not been found*/ 621 _error_("Enum " << name << " not found"); 621 if(notfounderror) 622 _error_("Enum " << name << " not found"); 623 else 624 return -1; 622 625 } -
issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh
r15690 r16367 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
Note:
See TracChangeset
for help on using the changeset viewer.