|
libCombine
C++ library for working with the COMBINE Archive format
|
Static Public Member Functions | |
| static bool | isFormat (const std::string &formatKey, std::string format) |
| this function tests whether the provided format matches the given formatKey More... | |
| static std::string | lookupFormat (const std::string &formatKey) |
| returns the first format string for the given key More... | |
| static std::string | guessFormat (const std::string &fileName) |
| Guesses the format from the filename. More... | |
| static void | addKnownFormat (const std::string &formatKey, const std::string &format) |
| adds a new entry to the list of known formats More... | |
| static std::vector< std::string > | getFormatKeys () |
| static std::map< std::string, std::vector< std::string > > & | getKnownFormats () |
Static Public Attributes | |
| static const std::string | PURL_MEDIATYPES_URL |
Static Protected Member Functions | |
| static std::map< std::string, std::vector< std::string > > | initializeMap () |
Static Protected Attributes | |
| static std::map< std::string, std::vector< std::string > > | mKnownFormats |
|
static |
adds a new entry to the list of known formats
| formatKey | the key for the new known format |
| format | the format string (mime type or identifiers.org reference) |
|
static |
|
static |
|
static |
Guesses the format from the filename.
| fileName | the filename, if it is an xml file, the first 128 characters will be looked through to find some of the known xml formats. |
|
static |
this function tests whether the provided format matches the given formatKey
| formatKey | the key |
| format | the full format string |
|
static |
returns the first format string for the given key
| formatKey | the key |