RouteX Document Router Toolkit
Main Functions Types & Errors Query Language Demo Home

rxOpenRouterDatabase

Opens an existing database of queries. This database must have previously been created at some time by a call to rxCreateRouterDatabase.

Synopsis

void rxOpenRouterDatabase( RouteX Router, char *FileName, StatusCodeT *Status )

Arguments

Router The RouteX object you are deleting
FileName The name and path of the database you wish to open.
 Status A pointer to a value of type StatusCodeT. If an error occurs during the execution of the function a value representing the error will be stored in *Status. You should check *Status after every function call.

Returns

Nothing.

Related Functions

rxCreateRouterDatabase, rxCloseRouterDatabase

Example

StatusCodeT  Status;

RouterX      Router;



Router = ixCreateRouter( 0x0011FFFFL, 0x0011FFFFL, &Status );



if ( *Status < 0 ) {

   printerror( Status );

   return; // error

}



// Check to see if we created a database yet

if ( DoesntExist("d:\routing\queries.rdb") ) {  



   // if there isn't a database, create it

   rxCreateRouterDatabase( Router, "d:\routing\queries.rdb", 1000, Status);



   if ( *Status < 0 ) {

      printerror( Status );

      return; // error

   }

}



rxOpenRouterDatabase( Router, "d:\routing\queries.rdb", 1000, Status);



// 

// rest of program using RouteX goes here

// 

 

 

 

Previous Main Next Home

Copyright 2000 Lextek International