libtabula::ssqlsxlat::CommandLine Class Reference

Command line parser for Libtabula's ssqlsxlat tool. More...

#include <cmdline.h>

Inheritance diagram for libtabula::ssqlsxlat::CommandLine:
Inheritance graph
[legend]
Collaboration diagram for libtabula::ssqlsxlat::CommandLine:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SourceSink { ss_unknown, ss_ssqls1, ss_ssqls2, ss_table }
 

Types of inputs that ssqlsxlat will accept.

More...

Public Member Functions

 CommandLine (int argc, char *const argv[])
 Constructor.
void print_usage () const
 Show a message explaining the program's proper usage.
const char * input () const
 Return the name of the input source.
SourceSink input_source () const
 The input source type.
SourceSink output_sink () const
 The output sink (destination) type.
const char * output () const
 The base name of the output file.
const char * pass () const
 DB password, when input type is is_table.
const char * server () const
 DB server name, when input type is is_table.
const char * user () const
 DB user name, when input type is is_table.

Detailed Description

Command line parser for Libtabula's ssqlsxlat tool.


Member Enumeration Documentation

Types of inputs that ssqlsxlat will accept.

Public types

Enumerator:
ss_unknown 

no known input type given yet

ss_ssqls1 

a C++ file containing an SSQLS v1 declaration

ss_ssqls2 

an SSQLS v2 file

ss_table 

an existing DB table schema


Constructor & Destructor Documentation

libtabula::ssqlsxlat::CommandLine::CommandLine ( int  argc,
char *const   argv[] 
)

Member Function Documentation

const char* libtabula::ssqlsxlat::CommandLine::input (  )  const [inline]

Return the name of the input source.

This can be a file name, a table name, etc. Call input_source() to determine the proper interpretation.


The documentation for this class was generated from the following files:

Generated on 26 May 2014 for Libtabula by  doxygen 1.6.1