| 377 | } |
| 378 | |
| 379 | void |
| 380 | SimulationInformation::Print(OPS_Stream &s, int flag) const |
| 381 | { |
| 382 | if (flag == OPS_PRINT_CURRENTSTATE) { |
| 383 | s.tag("Central"); |
| 384 | s.tag("SimulationRun"); |
| 385 | |
| 386 | if (title != 0) |
| 387 | s.tag("title", title); |
| 388 | |
| 389 | if (description != 0) |
| 390 | s.tag("description", description); |
| 391 | |
| 392 | if (contactName != 0) |
| 393 | s.tag("contact", contactName); |
| 394 | |
| 395 | if (lengthUnit != 0) |
| 396 | s.tag("lengthUnit", lengthUnit); |
| 397 | |
| 398 | if (forceUnit != 0) |
| 399 | s.tag("forceUnit", forceUnit); |
| 400 | |
| 401 | if (timeUnit != 0) |
| 402 | s.tag("timeUnit", timeUnit); |
| 403 | |
| 404 | if (temperatureUnit != 0) |
| 405 | s.tag("temperatureUnit", temperatureUnit); |
| 406 | |
| 407 | // need anotherTime to get rid of /n |
| 408 | char *c = (char *)strchr(startTime, '\n'); |
| 409 | if (c != 0) |
| 410 | strcpy(c, ""); |
| 411 | s.tag("startDate", startTime); |
| 412 | |
| 413 | c = (char *)strchr(endTime, '\n'); |
| 414 | if (c != 0) |
| 415 | strcpy(c, ""); |
| 416 | s.tag("endDate", endTime); |
| 417 | |
| 418 | int numStrings; |
| 419 | |
| 420 | numStrings = modelTypes.getNumStrings(); |
| 421 | for (int i = 0; i < numStrings; i++) |
| 422 | s.tag("SimulationModelType", modelTypes.getString(i)); |
| 423 | |
| 424 | numStrings = analysisTypes.getNumStrings(); |
| 425 | for (int i = 0; i < numStrings; i++) |
| 426 | s.tag("SimulationAnalysisType", analysisTypes.getString(i)); |
| 427 | |
| 428 | numStrings = loadingTypes.getNumStrings(); |
| 429 | for (int i = 0; i < numStrings; i++) |
| 430 | s.tag("SimulationLoadingType", loadingTypes.getString(i)); |
| 431 | |
| 432 | numStrings = elementTypes.getNumStrings(); |
| 433 | for (int i = 0; i < numStrings; i++) |
| 434 | s.tag("SimulationElementType", elementTypes.getString(i)); |
| 435 | |
| 436 | numStrings = materialTypes.getNumStrings(); |
no test coverage detected