Abstract ReadSession and FileReader
We need to abstract the ReadSession and FileReader classes and create specific one for CTA. Also we will need Factory classes to instantiate them.
- Add helper methods to
ReadSession
andFileReader
classes to abstract out the specific details of how to read the tape file. See CTA!187 (closed) and in particular CTA!187 (comment 5597846) for an overview of which helper functions are needed. - Change the helper methods in
ReadSession
andFileReader
into pure virtual functions. Create subclasses (example names:CtaReadSession
andCtaReadFile
) and move the CTA helper method implementations into those classes. - Instantiate on the appropriate subclass of FileReader when we call
openFileReader
(currently returns a smart pointer to aFileReader
object, it can returnCtaFileReader
instead). Same forReadSession
andopenReadSession
.