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

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

Detailed Description

Container class to store GA_IO objects for a detail specialization.

Definition at line 29 of file GA_IOTable.h.

Constructor & Destructor Documentation

GA_IOTable::GA_IOTable ( )
GA_IOTable::~GA_IOTable ( )

Member Function Documentation

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.

const GA_IO* GA_IOTable::find ( const char *  name = NULL) const

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

const GA_IO* GA_IOTable::get ( exint  i) const

Return the i'th GA_IO item.

static const char* GA_IOTable::getClassicToken ( )
inlinestatic

Return the token for "classic" .bgeo/.geo formats.

Definition at line 39 of file GA_IOTable.h.

static const char* GA_IOTable::getJSONToken ( )
inlinestatic

Return the token for JSON.

Definition at line 36 of file GA_IOTable.h.

const UT_Array<GA_IO *>& GA_IOTable::getList ( ) const
inline

Definition at line 82 of file GA_IOTable.h.

void GA_IOTable::getNames ( UT_StringArray names) const

Get a list of IO tokens supported.

const GA_IO* GA_IOTable::operator() ( exint  i) const
inline

Convenience operator.

Definition at line 77 of file GA_IOTable.h.


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