HDK
|
Container class to store GA_IO objects for a detail specialization. More...
#include <GA_IOTable.h>
Public Member Functions | |
GA_IOTable () | |
~GA_IOTable () | |
bool | add (GA_IO *io) |
const GA_IO * | find (const char *name=NULL) const |
void | getNames (UT_StringArray &names) const |
Get a list of IO tokens supported. More... | |
exint | entries () const |
Return the number of GA_IO entries. More... | |
const GA_IO * | get (exint i) const |
Return the i'th GA_IO item. More... | |
void | clear () |
Clear the entries. More... | |
const GA_IO * | operator() (exint i) const |
Convenience operator. More... | |
const UT_Array< GA_IO * > & | getList () const |
const GA_IO * | find (const GA_SaveOptions *options) const |
const GA_IO * | find (const GA_LoadOptions *options) const |
const GA_IO * | checkFilename (const char *filename, const GA_SaveOptions *options) const |
const GA_IO * | checkFilename (const char *filename, const GA_LoadOptions *options) const |
Static Public Member Functions | |
static const char * | getJSONToken () |
Return the token for JSON. More... | |
static const char * | getClassicToken () |
Return the token for "classic" .bgeo/.geo formats. More... | |
Container class to store GA_IO objects for a detail specialization.
Definition at line 29 of file GA_IOTable.h.
GA_IOTable::GA_IOTable | ( | ) |
GA_IOTable::~GA_IOTable | ( | ) |
bool GA_IOTable::add | ( | GA_IO * | io | ) |
Append or replace an IO entry. IO entries are scanned in the order they are added.
const GA_IO* GA_IOTable::checkFilename | ( | const char * | filename, |
const GA_SaveOptions * | options | ||
) | const |
Find the IO format which is the best match for the given filename
const GA_IO* GA_IOTable::checkFilename | ( | const char * | filename, |
const GA_LoadOptions * | options | ||
) | const |
Find the IO format which is the best match for the given filename
void GA_IOTable::clear | ( | ) |
Clear the entries.
exint GA_IOTable::entries | ( | ) | const |
Return the number of GA_IO entries.
Find an IO entry by name. With no name, the "default" IO class will be returned.
const GA_IO* GA_IOTable::find | ( | const GA_SaveOptions * | options | ) | const |
Find an IO entry by looking for the "geo:format" property
const GA_IO* GA_IOTable::find | ( | const GA_LoadOptions * | options | ) | const |
Find an IO entry by looking for the "geo:format" property
|
inlinestatic |
Return the token for "classic" .bgeo/.geo formats.
Definition at line 39 of file GA_IOTable.h.
|
inlinestatic |
Return the token for JSON.
Definition at line 36 of file GA_IOTable.h.
Definition at line 82 of file GA_IOTable.h.
void GA_IOTable::getNames | ( | UT_StringArray & | names | ) | const |
Get a list of IO tokens supported.
Convenience operator.
Definition at line 77 of file GA_IOTable.h.