| 100 | } |
| 101 | |
| 102 | void |
| 103 | TrackerContext::load(const TrackerContextSerialization& serialization) |
| 104 | { |
| 105 | TrackerContextPtr thisShared = shared_from_this(); |
| 106 | QMutexLocker k(&_imp->trackerContextMutex); |
| 107 | |
| 108 | for (std::list<TrackSerialization>::const_iterator it = serialization._tracks.begin(); it != serialization._tracks.end(); ++it) { |
| 109 | TrackMarkerPtr marker; |
| 110 | if ( it->usePatternMatching() ) { |
| 111 | marker = TrackMarkerPM::create(thisShared); |
| 112 | } else { |
| 113 | marker = TrackMarker::create(thisShared); |
| 114 | } |
| 115 | marker->initializeKnobsPublic(); |
| 116 | marker->load(*it); |
| 117 | _imp->markers.push_back(marker); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void |
| 122 | TrackerContext::save(TrackerContextSerialization* serialization) const |
nothing calls this directly
no test coverage detected