ALLRegister -- Register All File Methods

ALLRegister() is used to register the database access methods for all suggested database types. On the PC, only the light weight (small) file methods are registered by ALLRegister().

See Also: GDBRegister()

CALL SEQUENCE

void    ALLRegister();
LoadGDBDynFormat -- Load GDB Dynamic Format

LoadGDBDynFormat -- Load GDB Dynamic Format

LoadGDBDynFormat() is used to register the database access methods of dynamic GDB formats. These are DLL's on the PC and shared libraries on other systems.

See Also: GDBRegister()

CALL SEQUENCE

void    *LoadGDBDynFormat( pszFormatName, pszBaseName, pszRegisterFunc,
                          nVersion, pszFileName );
const char  *pszFormatName;
       Common name for the format. Example TIFF for .tif.
const char *pszBaseName;
       The name of gdb shared library of dll without version. 
       This must be lowercase.Example, gdbtiff.
const char *pszRegisterFunc;
      The entry point name in the DLL or shared object library.
int nVersion;
      The release version number. Example, v700.
int pszFileName;
      The name of the data file that is attempting to be opened.

EXAMPLE

This example taken for tdbopen.c shows how to use the API.

 static TBool _LoadLibraries(char *pszName)
 {
    void (*pfnFullRegister)(GDBInfo_t *) = NULL;
    GDBInfo_t   *psGDBInfo;
 
 //
 //      Dynamically register the rest of the Tiff methods from the       
 //      support shared library.                                         
 
     if( GDBGetFormatInfo( FL_TIFF )->Open != NULL &&
  GDBGetFormatInfo( FL_TIFF )->Open != DummyOpen)
  return TRUE;
 
     pfnFullRegister = (void (*)(GDBInfo_t *))  
  LoadGDBDynFormat("TIFF","gdbtiff","TDBFULLRegister",PCIVERSIONID,pszName);
     if (pfnFullRegister == NULL)
  return FALSE;
 
     
 //
 //      Otherwise call it (which will populate the remainder of the   
 //      GDBInfo_t function pointers for this format) and return TRUE   
 //      indicating that the open should be called.                      
 //
     psGDBInfo = GDBGetFormatInfo( FL_TIFF);
     pfnFullRegister(psGDBInfo);
return TRUE;
 }

About PCI Help Gateway