| 252 | } |
| 253 | |
| 254 | int |
| 255 | SimulationInformation::setTemperatureUnit(const char *name) |
| 256 | { |
| 257 | // check for valid i/p |
| 258 | if (name == 0) |
| 259 | return -1; |
| 260 | |
| 261 | // delete the old |
| 262 | if (temperatureUnit != 0) |
| 263 | delete[] temperatureUnit; |
| 264 | |
| 265 | // create new space & copy string |
| 266 | temperatureUnit = new char[strlen(name) + 1]; |
| 267 | if (temperatureUnit == 0) |
| 268 | return -1; |
| 269 | strcpy(temperatureUnit, name); |
| 270 | |
| 271 | return 0; |
| 272 | } |
| 273 | |
| 274 | int |
| 275 | SimulationInformation::addInputFile(const char *fileName, const char *path) |
no outgoing calls
no test coverage detected