Container for image format specification and file extension. More...
#include <spatmod/imageformat.h>
Public Types | |
| enum | SPEC { SPEC_Undefined, SPEC_JPEG, SPEC_PNG, SPEC_TIFF, SPEC_JP2, SPEC_GIF, SPEC_SVG, SPEC_SVGZ, SPEC_DAE, SPEC_PNG16, SPEC_PNG16A, SPEC_PNG16OLD, SPEC_PNG24, SPEC_PNG32, SPEC_KML } |
Public Member Functions | |
| FORMAT (const FORMAT &rhs) | |
| FORMAT (const char *str, const char *FileExtn=0) | |
| FORMAT (const FACTORY_TARGET_FILE &FactoryTgt, const char *FileExtn=0) | |
| FORMAT (FORMAT::SPEC spec, const char *FileExtn=0) | |
| FORMAT () | |
| ~FORMAT () | |
| const FACTORY_TARGET_FILE * | GetFactoryTgt () const |
| const char * | GetFileExtn () const |
| const char * | GetMimeType () const |
| SPEC | GetSpec () const |
| FORMAT & | operator= (const FORMAT &rhs) |
Container for image format specification and file extension.
Enumeration for common format specifications.
Each generally corresponds to a specific set of file extensions and SOURCE/TARGET pair.
| SPATMOD::IMAGE::FORMAT::FORMAT | ( | ) |
Default constructor for undefined specification.
| SPATMOD::IMAGE::FORMAT::FORMAT | ( | FORMAT::SPEC | spec, | |
| const char * | FileExtn = 0 | |||
| ) |
Construct with given specification.
| FileExtn | Optional file extension, will use default 3-character extension if 0 |
| SPATMOD::IMAGE::FORMAT::FORMAT | ( | const FACTORY_TARGET_FILE & | FactoryTgt, | |
| const char * | FileExtn = 0 | |||
| ) |
Construct with TARGET_FILE::FACTORY.
| FileExtn | Optional file extension, will use default 3-character extension if 0 |
| SPATMOD::IMAGE::FORMAT::FORMAT | ( | const char * | str, | |
| const char * | FileExtn = 0 | |||
| ) |
Construct from string.
| str | String in MIME format (eg "image/jpeg"); | |
| FileExtn | Optional file extension, will use default 3-character extension if 0 |
| SPATMOD::IMAGE::FORMAT::FORMAT | ( | const FORMAT & | rhs | ) |
Copy constructor.
| SPATMOD::IMAGE::FORMAT::~FORMAT | ( | ) |
Destructor.
| const FACTORY_TARGET_FILE* SPATMOD::IMAGE::FORMAT::GetFactoryTgt | ( | ) | const [inline] |
Get factory for constructing TARGET_FILE instance if defined.
| const char* SPATMOD::IMAGE::FORMAT::GetFileExtn | ( | ) | const |
Get file extension specified when constructed or default if none specified.
| const char* SPATMOD::IMAGE::FORMAT::GetMimeType | ( | ) | const |
Get MIME type string (eg "image/jpeg") for specification.
| SPEC SPATMOD::IMAGE::FORMAT::GetSpec | ( | ) | const [inline] |
Get specification enumeration.
1.6.1