summaryrefslogtreecommitdiff
path: root/src/optparser.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-16 20:10:58 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-16 20:10:58 +0000
commitf72c6e4b97afeb69d9ea4d743c0c302d647ea424 (patch)
tree48d9d94db520455324e902759e887c0d98de976a /src/optparser.cpp
parent5eba456f0147b12a6247cd7aa41e55d121962358 (diff)
downloadlibbu++-f72c6e4b97afeb69d9ea4d743c0c302d647ea424.tar.gz
libbu++-f72c6e4b97afeb69d9ea4d743c0c302d647ea424.tar.bz2
libbu++-f72c6e4b97afeb69d9ea4d743c0c302d647ea424.tar.xz
libbu++-f72c6e4b97afeb69d9ea4d743c0c302d647ea424.zip
The new signal/slots system is in place, and works from 0-5 parameters right
now, I'll probably add more later on... I've also started on the replacement for ParamProc, OptParser. It should do everything that ParamProc did, only with less code, and much better.
Diffstat (limited to 'src/optparser.cpp')
-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