File: classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html

package info (click to toggle)
mysql%2B%2B 3.2.1%2Bpristine-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,624 kB
  • ctags: 11,252
  • sloc: cpp: 35,659; sh: 3,034; makefile: 951; perl: 786
file content (190 lines) | stat: -rw-r--r-- 14,991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>MySQL++ Reference Manual</title>
	<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
	<link href="doxygen.css" rel="stylesheet" type="text/css">
	<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="namespacemysqlpp_1_1ssqlsxlat.html">ssqlsxlat</a>::<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html">CommandLine</a></div>
<h1>mysqlpp::ssqlsxlat::CommandLine Class Reference</h1><!-- doxytag: class="mysqlpp::ssqlsxlat::CommandLine" --><!-- doxytag: inherits="mysqlpp::CommandLineBase" -->Command line parser for MySQL++'s ssqlsxlat tool.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="cmdline_8h-source.html">cmdline.h</a>&gt;</code>
<p>
Inheritance diagram for mysqlpp::ssqlsxlat::CommandLine:<p><center><img src="classmysqlpp_1_1ssqlsxlat_1_1CommandLine__inherit__graph.png" border="0" usemap="#mysqlpp_1_1ssqlsxlat_1_1CommandLine__inherit__map" alt="Inheritance graph"></center>
<map name="mysqlpp_1_1ssqlsxlat_1_1CommandLine__inherit__map">
<area href="classmysqlpp_1_1CommandLineBase.html" shape="rect" coords="23,5,236,32" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for mysqlpp::ssqlsxlat::CommandLine:<p><center><img src="classmysqlpp_1_1ssqlsxlat_1_1CommandLine__coll__graph.png" border="0" usemap="#mysqlpp_1_1ssqlsxlat_1_1CommandLine__coll__map" alt="Collaboration graph"></center>
<map name="mysqlpp_1_1ssqlsxlat_1_1CommandLine__coll__map">
<area href="classmysqlpp_1_1CommandLineBase.html" shape="rect" coords="23,5,236,32" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e169d93217a5effc5ceb2f6e09357a719">ss_unknown</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">no known input type given yet  <a href="#cff98a36fac151c8f37f7f1d3991773e169d93217a5effc5ceb2f6e09357a719"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e0928d94b4ff8acd7282e70ce7026d727">ss_ssqls1</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">a C++ file containing an SSQLS v1 declaration  <a href="#cff98a36fac151c8f37f7f1d3991773e0928d94b4ff8acd7282e70ce7026d727"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773ea00452941838c0b390c90235716b65db">ss_ssqls2</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">an SSQLS v2 file  <a href="#cff98a36fac151c8f37f7f1d3991773ea00452941838c0b390c90235716b65db"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e587e5cd81301ac94ae40bf5ab40561dd">ss_table</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">an existing DB table schema  <a href="#cff98a36fac151c8f37f7f1d3991773e587e5cd81301ac94ae40bf5ab40561dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e">SourceSink</a> { <a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e169d93217a5effc5ceb2f6e09357a719">ss_unknown</a>, 
<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e0928d94b4ff8acd7282e70ce7026d727">ss_ssqls1</a>, 
<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773ea00452941838c0b390c90235716b65db">ss_ssqls2</a>, 
<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e587e5cd81301ac94ae40bf5ab40561dd">ss_table</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Types of inputs that ssqlsxlat will accept.  <a href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#055b4f3a100607034f43159bc96d394d">CommandLine</a> (int argc, char *const argv[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#055b4f3a100607034f43159bc96d394d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7cafdcfe225dcdcdfcd6b02c91bf1c5"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::print_usage" ref="b7cafdcfe225dcdcdfcd6b02c91bf1c5" args="() const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#b7cafdcfe225dcdcdfcd6b02c91bf1c5">print_usage</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Show a message explaining the program's proper usage. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#d21ce37d734a70061541aebd6e21607d">input</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the name of the input source.  <a href="#d21ce37d734a70061541aebd6e21607d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9df09a1035f4915025fa4239e375ce34"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::input_source" ref="9df09a1035f4915025fa4239e375ce34" args="() const " -->
<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e">SourceSink</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#9df09a1035f4915025fa4239e375ce34">input_source</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The input source type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="294df88f62ad0cd2268d8352172e7f12"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::output_sink" ref="294df88f62ad0cd2268d8352172e7f12" args="() const " -->
<a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e">SourceSink</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#294df88f62ad0cd2268d8352172e7f12">output_sink</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The output sink (destination) type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9015e2c6a0efb40cf3a086e3c8f9032"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::output" ref="c9015e2c6a0efb40cf3a086e3c8f9032" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#c9015e2c6a0efb40cf3a086e3c8f9032">output</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The base name of the output file. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="206d319f835fa62b0b5eb107d519942d"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::pass" ref="206d319f835fa62b0b5eb107d519942d" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#206d319f835fa62b0b5eb107d519942d">pass</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DB password, when input type is is_table. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aeb3fac03aa9297bb160bc2214709a98"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::server" ref="aeb3fac03aa9297bb160bc2214709a98" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#aeb3fac03aa9297bb160bc2214709a98">server</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DB server name, when input type is is_table. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="148135806e9170a2558818c567fc19e1"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::user" ref="148135806e9170a2558818c567fc19e1" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#148135806e9170a2558818c567fc19e1">user</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DB user name, when input type is is_table. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Command line parser for MySQL++'s ssqlsxlat tool. 
<p>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="cff98a36fac151c8f37f7f1d3991773e"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::SourceSink" ref="cff98a36fac151c8f37f7f1d3991773e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#cff98a36fac151c8f37f7f1d3991773e">mysqlpp::ssqlsxlat::CommandLine::SourceSink</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Types of inputs that ssqlsxlat will accept. 
<p>
Public types <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="cff98a36fac151c8f37f7f1d3991773e169d93217a5effc5ceb2f6e09357a719"></a><!-- doxytag: member="ss_unknown" ref="cff98a36fac151c8f37f7f1d3991773e169d93217a5effc5ceb2f6e09357a719" args="" -->ss_unknown</em>&nbsp;</td><td>
no known input type given yet </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cff98a36fac151c8f37f7f1d3991773e0928d94b4ff8acd7282e70ce7026d727"></a><!-- doxytag: member="ss_ssqls1" ref="cff98a36fac151c8f37f7f1d3991773e0928d94b4ff8acd7282e70ce7026d727" args="" -->ss_ssqls1</em>&nbsp;</td><td>
a C++ file containing an SSQLS v1 declaration </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cff98a36fac151c8f37f7f1d3991773ea00452941838c0b390c90235716b65db"></a><!-- doxytag: member="ss_ssqls2" ref="cff98a36fac151c8f37f7f1d3991773ea00452941838c0b390c90235716b65db" args="" -->ss_ssqls2</em>&nbsp;</td><td>
an SSQLS v2 file </td></tr>
<tr><td valign="top"><em><a class="anchor" name="cff98a36fac151c8f37f7f1d3991773e587e5cd81301ac94ae40bf5ab40561dd"></a><!-- doxytag: member="ss_table" ref="cff98a36fac151c8f37f7f1d3991773e587e5cd81301ac94ae40bf5ab40561dd" args="" -->ss_table</em>&nbsp;</td><td>
an existing DB table schema </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="055b4f3a100607034f43159bc96d394d"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::CommandLine" ref="055b4f3a100607034f43159bc96d394d" args="(int argc, char *const argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mysqlpp::ssqlsxlat::CommandLine::CommandLine           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *const &nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
Public interface 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d21ce37d734a70061541aebd6e21607d"></a><!-- doxytag: member="mysqlpp::ssqlsxlat::CommandLine::input" ref="d21ce37d734a70061541aebd6e21607d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* mysqlpp::ssqlsxlat::CommandLine::input           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the name of the input source. 
<p>
This can be a file name, a table name, etc. Call <a class="el" href="classmysqlpp_1_1ssqlsxlat_1_1CommandLine.html#9df09a1035f4915025fa4239e375ce34">input_source()</a> to determine the proper interpretation. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="cmdline_8h-source.html">cmdline.h</a><li>cmdline.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on 10 Dec 2013 for MySQL++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>