#include <GEO_IOTranslator.h>
Define a map where the key is the IOTranslator format name and the value is the DSO file defining the translator. Built-in translators don't appear in this list.
Definition at line 30 of file GEO_IOTranslator.h.
GEO_IOTranslator::GEO_IOTranslator |
( |
| ) |
|
virtual GEO_IOTranslator::~GEO_IOTranslator |
( |
| ) |
|
|
virtual |
virtual int GEO_IOTranslator::checkExtension |
( |
const char * |
name | ) |
|
|
pure virtual |
virtual int GEO_IOTranslator::checkMagicNumber |
( |
unsigned |
magic | ) |
|
|
pure virtual |
Return the list of DSO based translators.
void GEO_IOTranslator::eraseDSODefinition |
( |
| ) |
|
Method to load from a stream. If the ate_magic flag is on, then the library has already read the magic number and the loader should not expect it. If the file format doesn't support reading from streams, it can use UT_IStream::isRandomAccessFile to get the raw name to read from. Return false if this translator doesn't support loading.
Implemented in GEO_IORib, GusdGEO_IOTranslator, GEO_IOBpoly, and GEO_IOTable.
Method to save a gdp to another format via a filename. Return false if this translator does not support saving.
This is an optional method. By default, it will create a stream and call the streaming version of fileSave().
Reimplemented in GEO_IOTable.
virtual bool GEO_IOTranslator::fileStat |
( |
const char * |
filename, |
|
|
GA_Stat & |
stat, |
|
|
uint |
level |
|
) |
| |
|
virtual |
Method to "stat" a file. If possible, stat shouldn't have to load the entire geometry.
Reimplemented in GEO_IOTable.
virtual const char* GEO_IOTranslator::formatName |
( |
| ) |
const |
|
pure virtual |
Method to return a list of the file extensions matched by this translator. The strings should contain the extensions (with dots). For exmple [".eps", ".ai"]. The default method returns nothing.
Reimplemented in GusdGEO_IOTranslator.
Stat a .bgeo JSON stream.
The documentation for this class was generated from the following file: