db-loader.C File Reference

#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <exception>
#include <cstring>
#include <string>
#include <iostream>
#include <fstream>
#include "Db.h"
#include "DbOutput.h"
#include "XmlOutput.h"
#include "CifSchemaMap.h"

Include dependency graph for db-loader.C:


Classes

struct  Args

Functions

static void usage (const string &progName)
static void GetArgs (Args &args, unsigned int argc, char *argv[])
static void GetFileNames (vector< string > &fileNames, const string &lFile)
static DbCreateDb (Args &args, SchemaMap &schemaMapping)
static DbOutputCreateDbOutput (Args &args, Db &db)
int main (int argc, char *argv[])

Variables

const unsigned int MODE_SQL = 1
const unsigned int MODE_BCP = 2
const unsigned int MODE_XML = 3

Function Documentation

static Db* CreateDb ( Args args,
SchemaMap &  schemaMapping 
) [static]

static DbOutput* CreateDbOutput ( Args args,
Db db 
) [static]

static void GetArgs ( Args args,
unsigned int  argc,
char *  argv[] 
) [static]

static void GetFileNames ( vector< string > &  fileNames,
const string &  lFile 
) [static]

int main ( int  argc,
char *  argv[] 
)

static void usage ( const string &  progName  )  [static]


Variable Documentation

const unsigned int MODE_BCP = 2

const unsigned int MODE_SQL = 1

const unsigned int MODE_XML = 3


Generated on Thu Oct 6 10:15:51 2011 for db-loader-v4.1.0 by  doxygen 1.4.7