| 54 | } |
| 55 | |
| 56 | TimeSeries *OPS_getTimeSeries(int tag) { |
| 57 | |
| 58 | TaggedObject *theResult = theTimeSeriesObjects.getComponentPtr(tag); |
| 59 | if (theResult == 0) { |
| 60 | opserr << "TimeSeries *getTimeSeries(int tag) - none found with tag: " << tag << endln; |
| 61 | return 0; |
| 62 | } |
| 63 | TimeSeries *theSeries = (TimeSeries *)theResult; |
| 64 | |
| 65 | return theSeries->getCopy(); |
| 66 | } |
| 67 | |
| 68 | void OPS_clearAllTimeSeries(void) { |
| 69 | theTimeSeriesObjects.clearAll(); |