HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdGEO_IOTranslator Class Reference

#include <GEO_IOTranslator.h>

+ Inheritance diagram for GusdGEO_IOTranslator:

Public Member Functions

 GusdGEO_IOTranslator ()
 
 ~GusdGEO_IOTranslator () override
 
GEO_IOTranslatorduplicate () const override
 This method is used to create a copy of the sub-class. More...
 
const char * formatName () const override
 
int checkExtension (const char *name) override
 
void getFileExtensions (UT_StringArray &extensions) const override
 
int checkMagicNumber (unsigned magic) override
 
GA_Detail::IOStatus fileLoad (GEO_Detail *, UT_IStream &, bool ate_magic) override
 
GA_Detail::IOStatus fileSave (const GEO_Detail *, std::ostream &) override
 
- Public Member Functions inherited from GEO_IOTranslator
 GEO_IOTranslator ()
 
virtual ~GEO_IOTranslator ()
 
virtual bool fileStat (const char *filename, GA_Stat &stat, uint level)
 
virtual GA_Detail::IOStatus fileSaveToFile (const GEO_Detail *gdp, const char *filename)
 
void eraseDSODefinition ()
 

Additional Inherited Members

- Public Types inherited from GEO_IOTranslator
typedef UT_StringMap
< UT_StringHolder
geo_DSODefinitions
 
- Static Public Member Functions inherited from GEO_IOTranslator
static const geo_DSODefinitionsdsoDefinitions ()
 Return the list of DSO based translators. More...
 
- Protected Member Functions inherited from GEO_IOTranslator
bool statJSONStream (UT_IStream &is, GA_Stat &stat, uint level) const
 Stat a .bgeo JSON stream. More...
 

Detailed Description

Definition at line 35 of file GEO_IOTranslator.h.

Constructor & Destructor Documentation

GusdGEO_IOTranslator::GusdGEO_IOTranslator ( )
GusdGEO_IOTranslator::~GusdGEO_IOTranslator ( )
override

Member Function Documentation

int GusdGEO_IOTranslator::checkExtension ( const char *  name)
overridevirtual

Method to check the extension of the name to see if it matches one that we can handle. Returns true if there's a match

Implements GEO_IOTranslator.

int GusdGEO_IOTranslator::checkMagicNumber ( unsigned  magic)
overridevirtual

Method to check if the given magic number matches the magic number. Return true on a match.

Implements GEO_IOTranslator.

GEO_IOTranslator* GusdGEO_IOTranslator::duplicate ( ) const
overridevirtual

This method is used to create a copy of the sub-class.

Implements GEO_IOTranslator.

GA_Detail::IOStatus GusdGEO_IOTranslator::fileLoad ( GEO_Detail gdp,
UT_IStream is,
bool  ate_magic 
)
overridevirtual

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.

Implements GEO_IOTranslator.

GA_Detail::IOStatus GusdGEO_IOTranslator::fileSave ( const GEO_Detail gdp,
std::ostream &  os 
)
overridevirtual

Method to save a gdp to another format. Return false if this translator does not support saving.

Implements GEO_IOTranslator.

const char* GusdGEO_IOTranslator::formatName ( ) const
overridevirtual

Returns the label for the geometry format that this translator supports.

Implements GEO_IOTranslator.

void GusdGEO_IOTranslator::getFileExtensions ( UT_StringArray extensions) const
overridevirtual

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 from GEO_IOTranslator.


The documentation for this class was generated from the following file: