Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofSchemaParser Class Reference
[Experimental code, may change considerably.]

#include <oofschema.h>

Collaboration diagram for oofSchemaParser:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class parses a saved schema and builds an oofile database schema in a connection.

Exists to allow connection to databases without fore knowledge of the schema. When loading a schema, it will examine the file and attempt to figure out the ooffile connection type which created the file and open it accordingly.

Todo:
Use neater encoding rather than relying on describe() output.


Public Member Functions

void parseSchemaText (const oofString &)
 Given an oofstring in srcString, this method parses and builds a schema in the current connection.

void parseSchemaText ()
 Given an oofstring in oofSchemaParser's internal buffer this method parses and builds a schema in the current connection.

void loadSchema (oofFileRef &schemaFile)
 Examine file schema and load it into oofSchemaParser mParseBuffer.

void loadSchema (const oofString &schemaFileName)
 Load a oofschema string into the mParseBuffer from a file identified by schemaFileName It will attempt to figure out the file type from one of: ramp; ctree (single or supewr file); dbase and load the data approrialtky.

bool isOOFSchema (oofFileRef &schemaFile)
 Attempt to load an OOFSchema from schemaFile and indicate if schema was found and loaded.


Protected Attributes

oofString mParseBuffer


Member Function Documentation

bool oofSchemaParser::isOOFSchema oofFileRef schemaFile  ) 
 

Attempt to load an OOFSchema from schemaFile and indicate if schema was found and loaded.

void oofSchemaParser::loadSchema const oofString schemaFileName  ) 
 

Load a oofschema string into the mParseBuffer from a file identified by schemaFileName It will attempt to figure out the file type from one of: ramp; ctree (single or supewr file); dbase and load the data approrialtky.

void oofSchemaParser::loadSchema oofFileRef schemaFile  ) 
 

Examine file schema and load it into oofSchemaParser mParseBuffer.

void oofSchemaParser::parseSchemaText  ) 
 

Given an oofstring in oofSchemaParser's internal buffer this method parses and builds a schema in the current connection.

void oofSchemaParser::parseSchemaText const oofString srcString  ) 
 

Given an oofstring in srcString, this method parses and builds a schema in the current connection.


Member Data Documentation

oofString oofSchemaParser::mParseBuffer [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 22:01:38 2004 for OOFILE by doxygen 1.3.5