aboutsummaryrefslogtreecommitdiff
path: root/src/stable/csvreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/csvreader.h')
-rw-r--r--src/stable/csvreader.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/stable/csvreader.h b/src/stable/csvreader.h
index 6825da3..cb2a560 100644
--- a/src/stable/csvreader.h
+++ b/src/stable/csvreader.h
@@ -14,32 +14,32 @@
14 14
15namespace Bu 15namespace Bu
16{ 16{
17 class Stream; 17 class Stream;
18 typedef Bu::Array<Bu::String> StrArray; 18 typedef Bu::Array<Bu::String> StrArray;
19 19
20 class CsvReader 20 class CsvReader
21 { 21 {
22 public: 22 public:
23 typedef Bu::Signal1<Bu::String, Bu::String::iterator &> DecodeSignal; 23 typedef Bu::Signal1<Bu::String, Bu::String::iterator &> DecodeSignal;
24 enum Style 24 enum Style
25 { 25 {
26 styleExcel, ///< Excel style quotes around things that need em 26 styleExcel, ///< Excel style quotes around things that need em
27 styleC ///< Escape things that need it C-style 27 styleC ///< Escape things that need it C-style
28 }; 28 };
29 29
30 CsvReader( Stream &sIn, Style eStyle=styleExcel ); 30 CsvReader( Stream &sIn, Style eStyle=styleExcel );
31 CsvReader( Stream &sIn, DecodeSignal sDecode ); 31 CsvReader( Stream &sIn, DecodeSignal sDecode );
32 virtual ~CsvReader(); 32 virtual ~CsvReader();
33 33
34 StrArray readLine(); 34 StrArray readLine();
35 35
36 private: 36 private:
37 Stream &sIn; 37 Stream &sIn;
38 DecodeSignal sDecode; 38 DecodeSignal sDecode;
39 39
40 static Bu::String decodeExcel( Bu::String::iterator &i ); 40 static Bu::String decodeExcel( Bu::String::iterator &i );
41 static Bu::String decodeC( Bu::String::iterator &i ); 41 static Bu::String decodeC( Bu::String::iterator &i );
42 }; 42 };
43}; 43};
44 44
45#endif 45#endif