diff options
Diffstat (limited to '')
-rw-r--r-- | src/optparser.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/optparser.cpp b/src/optparser.cpp new file mode 100644 index 0000000..2046792 --- /dev/null +++ b/src/optparser.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | #include "bu/optparser.h" | ||
2 | |||
3 | Bu::OptParser::OptParser() | ||
4 | { | ||
5 | } | ||
6 | |||
7 | Bu::OptParser::~OptParser() | ||
8 | { | ||
9 | } | ||
10 | |||
11 | void Bu::OptParser::addOption( const Option &opt ) | ||
12 | { | ||
13 | lOption.append( opt ); | ||
14 | if( opt.cOpt != '\0' ) | ||
15 | hsOption.insert( opt.cOpt, &lOption.last() ); | ||
16 | if( opt.sOpt ) | ||
17 | hlOption.insert( opt.sOpt, &lOption.last() ); | ||
18 | |||
19 | } | ||
20 | |||
21 | Bu::FString Bu::OptParser::format( const Bu::FString &sIn, int iWidth, | ||
22 | int iIndent ) | ||
23 | { | ||
24 | |||
25 | } | ||
26 | |||
27 | |||
28 | // | ||
29 | // Code for Bu::OptParser::Option | ||
30 | // | ||
31 | |||
32 | Bu::OptParser::Option::Option() | ||
33 | { | ||
34 | } | ||
35 | |||
36 | Bu::OptParser::Option::~Option() | ||
37 | { | ||
38 | } | ||
39 | |||