#ifndef __CERT_FILETYPES__ #define __CERT_FILETYPES__ #include #include #include #include namespace CERT { namespace Images { typedef enum { begin_types, tiff = begin_types, bmp, gif, jpeg, png, jpeg2000, rimage, end_types } filetype; filetype filetypeFromString( const std::string &str ); std::string stringFromFiletype( filetype type ); std::string extensionFromFiletype( filetype type ); std::vector< std::string > knownFiletypes(); class invalidFiletype : public std::runtime_error { public: invalidFiletype( const std::string &msg ) : std::runtime_error(msg) { } }; } } // end namespace CERT #endif