summaryrefslogtreecommitdiff
path: root/src/optparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/optparser.cpp39
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
3Bu::OptParser::OptParser()
4{
5}
6
7Bu::OptParser::~OptParser()
8{
9}
10
11void 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
21Bu::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
32Bu::OptParser::Option::Option()
33{
34}
35
36Bu::OptParser::Option::~Option()
37{
38}
39