summaryrefslogtreecommitdiff
path: root/src/csvwriter.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-02-11 00:38:09 +0000
committerMike Buland <eichlan@xagasoft.com>2010-02-11 00:38:09 +0000
commitd61161061bd5998ef4b1fc2aaad2cf4bbd78e90d (patch)
treef4ea64381d4f0b3b7a9610758c034183098c2e96 /src/csvwriter.cpp
parent79b7b631750b69cbe06daedb0453306595dea6ad (diff)
downloadlibbu++-d61161061bd5998ef4b1fc2aaad2cf4bbd78e90d.tar.gz
libbu++-d61161061bd5998ef4b1fc2aaad2cf4bbd78e90d.tar.bz2
libbu++-d61161061bd5998ef4b1fc2aaad2cf4bbd78e90d.tar.xz
libbu++-d61161061bd5998ef4b1fc2aaad2cf4bbd78e90d.zip
Started working on a CSV reader, it's pretty much done, the CSV writer is just
a shell, but I may finish it soon, and started work on NewLine, a filter that converts newlines in text streams between the different OS standards. Also added some more helper operators to fbasicstring.
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