Inherits YGP::FileTypeChecker.
Inherited by YGP::FileTypeCheckerByCaseExt.
Public Member Functions | |
| FileTypeCheckerByExtension () | |
| ~FileTypeCheckerByExtension () | |
| virtual unsigned int | getType (const char *file) const |
| void | addType (const char *ext, unsigned int value) |
Protected Member Functions | |
| unsigned int | getType4Extension (const char *extension) const |
MS Office document) by the extension of the file
Further types can be added by the addType()-member
| YGP::FileTypeCheckerByExtension::FileTypeCheckerByExtension | ( | ) |
Defaultconstructor.
| YGP::FileTypeCheckerByExtension::~FileTypeCheckerByExtension | ( | ) |
Destructor.
| void YGP::FileTypeCheckerByExtension::addType | ( | const char * | ext, | |
| unsigned int | value | |||
| ) |
Adds a type to the handled file-types.
| ext | Extension, which is handled | |
| vaule | ID identifying the file-type |
| unsigned int YGP::FileTypeCheckerByExtension::getType | ( | const char * | file | ) | const [virtual] |
Gets the type of the passed file.
Returns the type of the file (e.g.
| file | File to analyse |
| file | File to inspect |
Implements YGP::FileTypeChecker.
Reimplemented in YGP::FileTypeCheckerByCaseExt.
| unsigned int YGP::FileTypeCheckerByExtension::getType4Extension | ( | const char * | extension | ) | const [protected] |
Gets the file-type defined by the passed extension.
Returns the type of the file (e.g.
| file | Extension of file to analyse |
| file | File to inspect |