| 80 | } |
| 81 | |
| 82 | void OPS_printDamping(OPS_Stream &s, int flag) |
| 83 | { |
| 84 | if (flag == OPS_PRINT_PRINTMODEL_JSON) |
| 85 | { |
| 86 | s << "\t\t\"Dampings\": [\n"; |
| 87 | MapOfTaggedObjectsIter theObjects = theDampingObjects.getIter(); |
| 88 | theObjects.reset(); |
| 89 | TaggedObject *theObject; |
| 90 | int count = 0; |
| 91 | int numComponents = theDampingObjects.getNumComponents(); |
| 92 | while ((theObject = theObjects()) != 0) { |
| 93 | Damping *theDamping = (Damping *)theObject; |
| 94 | theDamping->Print(s, flag); |
| 95 | if (count < numComponents-1) s << ",\n"; |
| 96 | count++; |
| 97 | } |
| 98 | s << "\n\t\t]"; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | |
| 103 | // constructor: |
nothing calls this directly
no test coverage detected