#include <rs_filterinterface.h>
Inheritance diagram for RS_FilterInterface:

Public Member Functions | |
| RS_FilterInterface () | |
| Constructor. | |
| virtual | ~RS_FilterInterface () |
| Destructor. | |
| virtual bool | canImport (RS2::FormatType t) |
| Checks if this filter can import the given file type. | |
| virtual bool | canExport (RS2::FormatType t) |
| Checks if this filter can export the given file type. | |
| virtual bool | fileImport (RS_Graphic &g, const RS_String &file, RS2::FormatType type)=0 |
| The implementation of this method in a inherited format class should read a file from disk and put the entities into the current entity container. | |
| virtual bool | fileExport (RS_Graphic &g, const RS_String &file, RS2::FormatType type)=0 |
| The implementation of this method in a inherited format class should write the entities in the current entity container to a file on the disk. | |
Protected Member Functions | |
| void | addImportFormat (RS2::FormatType type) |
| Adds a file extension which can be imported by this filter. | |
| void | addExportFormat (RS2::FormatType type) |
| Adds a file extension which can be exported by this filter. | |
Protected Attributes | |
| RS_ValueList< RS2::FormatType > | importFormats |
| Vector of file extensions this filter can import. | |
| RS_ValueList< RS2::FormatType > | exportFormats |
| Vector of file extensions this filter can export. | |
The RS_FileIO class uses the methods defined in here to interact with the format filter classes.
|
|
Checks if this filter can export the given file type.
|
|
|
Checks if this filter can import the given file type.
|
1.4.4