summaryrefslogtreecommitdiff
path: root/src/csvwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/csvwriter.cpp')
-rw-r--r--src/csvwriter.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/csvwriter.cpp b/src/csvwriter.cpp
new file mode 100644
index 0000000..b66dca8
--- /dev/null
+++ b/src/csvwriter.cpp
@@ -0,0 +1,39 @@
1#include "bu/csvwriter.h"
2#include "bu/stream.h"
3
4Bu::CsvWriter::CsvWriter( Bu::Stream &sOut, Bu::CsvWriter::Style eStyle ) :
5 sOut( sOut )
6{
7 switch( eStyle )
8 {
9 case styleExcel:
10 sEncode = Bu::slot( &encodeExcel );
11 break;
12
13 case styleC:
14 sEncode = Bu::slot( &encodeExcel );
15 break;
16 }
17}
18
19Bu::CsvWriter::CsvWriter( Bu::Stream &sOut,
20 Bu::CsvWriter::EncodeSignal sEncode ) :
21 sOut( sOut ),
22 sEncode( sEncode )
23{
24}
25
26Bu::CsvWriter::~CsvWriter()
27{
28}
29
30Bu::FString Bu::CsvWriter::encodeExcel( const Bu::FString &sIn )
31{
32 return "";
33}
34
35Bu::FString Bu::CsvWriter::encodeC( const Bu::FString &sIn )
36{
37 return "";
38}
39