#include <main.h>
Definition at line 10 of file entitycopy/main.h.
◆ MainArguments() [1/2]
MainArguments::MainArguments |
( |
Writer & | _output, |
|
|
Writer & | _errout ) |
Definition at line 41 of file entitycopy/main.cpp.
42 : Arguments(
43 _output, _errout,
44 L"entitycopy 1.0",
45 L"daejung@gowoonsoft.com",
47 L"Copy Database Tables",
48 __options__
49 )
50{
57}
◆ MainArguments() [2/2]
MainArguments::MainArguments |
( |
Writer & | _output, |
|
|
Writer & | _errout ) |
◆ database()
const String & MainArguments::database |
( |
| ) |
const |
|
inline |
◆ destination()
const String & MainArguments::destination |
( |
| ) |
const |
|
inline |
◆ dryrun() [1/2]
bool MainArguments::dryrun |
( |
| ) |
const |
|
inline |
◆ dryrun() [2/2]
bool MainArguments::dryrun |
( |
| ) |
const |
|
inline |
◆ entities()
const String & MainArguments::entities |
( |
| ) |
const |
|
inline |
◆ i4precision()
int MainArguments::i4precision |
( |
| ) |
const |
|
inline |
◆ i8precision()
int MainArguments::i8precision |
( |
| ) |
const |
|
inline |
◆ onOption() [1/2]
void MainArguments::onOption |
( |
int | _key, |
|
|
const String & | _arg ) |
|
protectedvirtual |
Reimplemented from Arguments.
Definition at line 78 of file entitycopy/main.cpp.
80{
81 switch (_key) {
82 case L'v':
84 break;
85 case L's':
87 break;
88 case L'd':
90 break;
91 case L'e':
93 break;
94 case L'c':
96 break;
97 case L'r':
99 break;
100 case L'4':
102 break;
103 case L'8':
105 break;
106 case L'n':
108 break;
109 }
110}
static int32_t parse(const wchar_t *_number, unsigned _base=10) __DCL_THROWS1(NumericConvertException *)
◆ onOption() [2/2]
virtual void MainArguments::onOption |
( |
int | _key, |
|
|
const String & | _arg ) |
|
protectedvirtual |
◆ onValidate() [1/2]
String MainArguments::onValidate |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from Arguments.
Definition at line 112 of file entitycopy/main.cpp.
113{
115 return L"option '--source' and '--destination' must both be provided";
116 }
118}
virtual String onValidate()
◆ onValidate() [2/2]
virtual String MainArguments::onValidate |
( |
| ) |
|
|
protectedvirtual |
◆ rows()
int MainArguments::rows |
( |
| ) |
const |
|
inline |
◆ source()
const String & MainArguments::source |
( |
| ) |
const |
|
inline |
◆ summary()
bool MainArguments::summary |
( |
| ) |
const |
|
inline |
◆ toString() [1/2]
String MainArguments::toString |
( |
| ) |
const |
|
virtual |
Reimplemented from Object.
Definition at line 59 of file entitycopy/main.cpp.
60{
61 StringBuilder sb;
62 sb.append(value0())
63 .append(L
" --verbose=").append(String::valueOf(
__verbose))
64 .append(L
" --source=").append(
__source)
67 .append(L
" --truncate=").append(String::valueOf(
__truncate))
68 .append(L
" --rows=").append(String::valueOf(
__rows))
69 .append(L
" --i4-precision=").append(String::valueOf(
__i4precision))
70 .append(L
" --i8-precision=").append(String::valueOf(
__i8precision))
71 .append(L
" --dry-run=").append(String::valueOf(
__dryrun))
72 .append(L
" values[").append(values().
toString())
73 .append(L"]");
74
75 return sb;
76}
virtual String toString() const
◆ toString() [2/2]
virtual String MainArguments::toString |
( |
| ) |
const |
|
virtual |
◆ truncate()
bool MainArguments::truncate |
( |
| ) |
const |
|
inline |
◆ verbose() [1/2]
bool MainArguments::verbose |
( |
| ) |
const |
|
inline |
◆ verbose() [2/2]
bool MainArguments::verbose |
( |
| ) |
const |
|
inline |
◆ __database
String MainArguments::__database |
|
protected |
◆ __destination
String MainArguments::__destination |
|
protected |
◆ __dryrun
bool MainArguments::__dryrun |
|
protected |
◆ __entities
String MainArguments::__entities |
|
protected |
◆ __i4precision
int MainArguments::__i4precision |
|
protected |
◆ __i8precision
int MainArguments::__i8precision |
|
protected |
◆ __rows
int MainArguments::__rows |
|
protected |
◆ __source
String MainArguments::__source |
|
protected |
◆ __summary
bool MainArguments::__summary |
|
protected |
◆ __truncate
bool MainArguments::__truncate |
|
protected |
◆ __verbose
bool MainArguments::__verbose |
|
protected |
The documentation for this class was generated from the following files: