- Timestamp:
- Aug 22, 2010, 12:27:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Executor.cc
r7198 r7200 191 191 } 192 192 193 Executor& Executor::setDefaultValues(const MultiType& param1) 194 { 195 this->defaultValue_[0] = param1; 196 197 return (*this); 198 } 199 200 Executor& Executor::setDefaultValues(const MultiType& param1, const MultiType& param2) 201 { 202 this->defaultValue_[0] = param1; 203 this->defaultValue_[1] = param2; 204 205 return (*this); 206 } 207 208 Executor& Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) 193 void Executor::setDefaultValues(const MultiType& param1) 194 { 195 this->defaultValue_[0] = param1; 196 } 197 198 void Executor::setDefaultValues(const MultiType& param1, const MultiType& param2) 199 { 200 this->defaultValue_[0] = param1; 201 this->defaultValue_[1] = param2; 202 } 203 204 void Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) 209 205 { 210 206 this->defaultValue_[0] = param1; 211 207 this->defaultValue_[1] = param2; 212 208 this->defaultValue_[2] = param3; 213 214 return (*this); 215 } 216 217 Executor& Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) 209 } 210 211 void Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) 218 212 { 219 213 this->defaultValue_[0] = param1; … … 221 215 this->defaultValue_[2] = param3; 222 216 this->defaultValue_[3] = param4; 223 224 return (*this); 225 } 226 227 Executor& Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) 217 } 218 219 void Executor::setDefaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) 228 220 { 229 221 this->defaultValue_[0] = param1; … … 232 224 this->defaultValue_[3] = param4; 233 225 this->defaultValue_[4] = param5; 234 235 return (*this); 236 } 237 238 Executor& Executor::setDefaultValue(unsigned int index, const MultiType& param) 226 } 227 228 void Executor::setDefaultValue(unsigned int index, const MultiType& param) 239 229 { 240 230 if (index < MAX_FUNCTOR_ARGUMENTS) 241 231 this->defaultValue_[index] = param; 242 243 return (*this);244 232 } 245 233
Note: See TracChangeset
for help on using the changeset viewer.