Did you see the class in /utilities/filetypes/EpwFile.hpp?  I would prefer to extend that class than to create this new one.