Changeset 3280 for code/trunk/src/core/CommandEvaluation.cc
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/core/CommandEvaluation.cc
r3196 r3280 30 30 31 31 #include "util/Debug.h" 32 #include "util/String .h"32 #include "util/StringUtils.h" 33 33 #include "ConsoleCommand.h" 34 34 #include "Identifier.h" … … 39 39 { 40 40 this->initialize(""); 41 this->state_ = C S_Uninitialized;41 this->state_ = CommandState::Uninitialized; 42 42 } 43 43 … … 64 64 65 65 this->errorMessage_ = ""; 66 this->state_ = C S_Empty;66 this->state_ = CommandState::Empty; 67 67 } 68 68 … … 104 104 switch (this->state_) 105 105 { 106 case C S_Uninitialized:107 break; 108 case C S_Empty:109 break; 110 case C S_ShortcutOrIdentifier:106 case CommandState::Uninitialized: 107 break; 108 case CommandState::Empty: 109 break; 110 case CommandState::ShortcutOrIdentifier: 111 111 if (this->function_) 112 112 { … … 119 119 return (this->command_ = this->functionclass_->getName() + " "); 120 120 break; 121 case C S_Function:121 case CommandState::Function: 122 122 if (this->function_) 123 123 { … … 128 128 } 129 129 break; 130 case C S_ParamPreparation:131 case C S_Params:130 case CommandState::ParamPreparation: 131 case CommandState::Params: 132 132 { 133 133 if (this->argument_ == "" && this->possibleArgument_ == "") … … 149 149 break; 150 150 } 151 case C S_Finished:152 break; 153 case C S_Error:151 case CommandState::Finished: 152 break; 153 case CommandState::Error: 154 154 break; 155 155 } … … 163 163 switch (this->state_) 164 164 { 165 case C S_Uninitialized:166 break; 167 case C S_Empty:168 case C S_ShortcutOrIdentifier:165 case CommandState::Uninitialized: 166 break; 167 case CommandState::Empty: 168 case CommandState::ShortcutOrIdentifier: 169 169 if (this->listOfPossibleFunctions_.size() == 0) 170 170 return CommandEvaluation::dump(this->listOfPossibleIdentifiers_); … … 174 174 return (CommandEvaluation::dump(this->listOfPossibleFunctions_) + "\n" + CommandEvaluation::dump(this->listOfPossibleIdentifiers_)); 175 175 break; 176 case C S_Function:176 case CommandState::Function: 177 177 return CommandEvaluation::dump(this->listOfPossibleFunctions_); 178 178 break; 179 case C S_ParamPreparation:180 case C S_Params:179 case CommandState::ParamPreparation: 180 case CommandState::Params: 181 181 if (this->listOfPossibleArguments_.size() > 0) 182 182 return CommandEvaluation::dump(this->listOfPossibleArguments_); 183 183 else 184 184 return CommandEvaluation::dump(this->function_); 185 case C S_Finished:185 case CommandState::Finished: 186 186 if (this->function_) 187 187 return CommandEvaluation::dump(this->function_); 188 188 break; 189 case C S_Error:189 case CommandState::Error: 190 190 return this->errorMessage_; 191 191 break; … … 200 200 201 201 for (unsigned int i = 0; i < MAX_FUNCTOR_ARGUMENTS; i++) 202 this->param_[i] = MT_ null;202 this->param_[i] = MT_Type::Null; 203 203 204 204 if (!this->isValid()) … … 230 230 return this->param_[index]; 231 231 232 return MT_ null;232 return MT_Type::Null; 233 233 } 234 234 … … 238 238 return this->function_->hasReturnvalue(); 239 239 240 return MT_ null;240 return MT_Type::Null; 241 241 } 242 242
Note: See TracChangeset
for help on using the changeset viewer.