| 220 | |
| 221 | private: |
| 222 | void getTrackFormat(IbmDecoderProto::TrackdataProto& trackdata, |
| 223 | unsigned track, |
| 224 | unsigned head) const |
| 225 | { |
| 226 | trackdata.Clear(); |
| 227 | for (const auto& f : _config.trackdata()) |
| 228 | { |
| 229 | if (f.has_track() && (f.track() != track)) |
| 230 | continue; |
| 231 | if (f.has_head() && (f.head() != head)) |
| 232 | continue; |
| 233 | |
| 234 | trackdata.MergeFrom(f); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | private: |
| 239 | const IbmDecoderProto& _config; |