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

DbiAsciiDbImporter Class Reference

Concept A utility to prepare an ASCII database from a a collection of ASCII files. Purpose To prepare a temporary (process specific) ASCII database. Acknowledgments The code is essentially a translation of RDBC/TSQLImporter by Valeriy Onuchin 21/03/2001 More...

#include <DbiAsciiDbImporter.h>

List of all members.

Public Member Functions

 DbiAsciiDbImporter ()
 DbiAsciiDbImporter (const TString &url, TSQLServer *server)
virtual ~DbiAsciiDbImporter ()
const DbiExceptionLogGetExceptionLog () const
Int_t Import (const TString &url, TSQLServer *server)
const std::list< std::string > & GetImportedTableNames () const
Bool_t IsValid () const

Private Member Functions

void LoadCatalog (const TString &url)
void LoadTable (const TString &url)

Private Attributes

Int_t fStatus
 Status of import procedure, fStatus < 400 status is OK.
DbiExceptionLog fExceptionLog
 Log of exceptions generated.
std::list< std::string > fImportedTableNames
 List of imported table names.
TSQLServer * fServer
 Where to import data. Not owned.
DbiAsciiTablePreparerfTablePreparer
 Helper class used to prepare a single table. May be null.


Detailed Description

Concept A utility to prepare an ASCII database from a a collection of ASCII files. Purpose To prepare a temporary (process specific) ASCII database. Acknowledgments The code is essentially a translation of RDBC/TSQLImporter by Valeriy Onuchin 21/03/2001

Id
DbiAsciiDbImporter.h,v 1.4 2008/02/14 11:12:04 west Exp

DatabaseInterface

Contact: n.west1@physics.ox.ac.uk

Definition at line 38 of file DbiAsciiDbImporter.h.


Constructor & Destructor Documentation

DbiAsciiDbImporter::DbiAsciiDbImporter  ) 
 

DbiAsciiDbImporter::DbiAsciiDbImporter const TString &  url,
TSQLServer *  server
 

virtual DbiAsciiDbImporter::~DbiAsciiDbImporter  )  [virtual]
 


Member Function Documentation

const DbiExceptionLog& DbiAsciiDbImporter::GetExceptionLog  )  const [inline]
 

Definition at line 45 of file DbiAsciiDbImporter.h.

Referenced by DbiConnection::Open().

00045 { return fExceptionLog; }

const std::list<std::string>& DbiAsciiDbImporter::GetImportedTableNames  )  const [inline]
 

Definition at line 47 of file DbiAsciiDbImporter.h.

Referenced by DbiConnection::Open().

00047 { return fImportedTableNames; }

Int_t DbiAsciiDbImporter::Import const TString &  url,
TSQLServer *  server
 

Bool_t DbiAsciiDbImporter::IsValid  )  const
 

void DbiAsciiDbImporter::LoadCatalog const TString &  url  )  [private]
 

void DbiAsciiDbImporter::LoadTable const TString &  url  )  [private]
 


Member Data Documentation

DbiExceptionLog DbiAsciiDbImporter::fExceptionLog [private]
 

Log of exceptions generated.

Definition at line 60 of file DbiAsciiDbImporter.h.

std::list<std::string> DbiAsciiDbImporter::fImportedTableNames [private]
 

List of imported table names.

Definition at line 63 of file DbiAsciiDbImporter.h.

TSQLServer* DbiAsciiDbImporter::fServer [private]
 

Where to import data. Not owned.

Definition at line 67 of file DbiAsciiDbImporter.h.

Int_t DbiAsciiDbImporter::fStatus [private]
 

Status of import procedure, fStatus < 400 status is OK.

Definition at line 57 of file DbiAsciiDbImporter.h.

DbiAsciiTablePreparer* DbiAsciiDbImporter::fTablePreparer [private]
 

Helper class used to prepare a single table. May be null.

Definition at line 70 of file DbiAsciiDbImporter.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 15 11:09:02 2010 for loon by  doxygen 1.3.9.1