diff options
Diffstat (limited to 'Source/SPCSVExporter.h')
-rw-r--r-- | Source/SPCSVExporter.h | 89 |
1 files changed, 74 insertions, 15 deletions
diff --git a/Source/SPCSVExporter.h b/Source/SPCSVExporter.h index 5c78be04..b0c6c46b 100644 --- a/Source/SPCSVExporter.h +++ b/Source/SPCSVExporter.h @@ -25,34 +25,93 @@ #import <Cocoa/Cocoa.h> -#import "MCPKit.h" #import "SPExporter.h" +#import "SPCSVExporterProtocol.h" +@class SPTableData; + +/** + * @class SPCSVExporter SPCSVExporter.m + * + * @author Stuart Connolly http://stuconnolly.com/ + * + * CSV exporter class. + */ @interface SPCSVExporter : SPExporter -{ - // CSV data +{ + /** + * Exporter delegate + */ + NSObject <SPCSVExporterProtocol> *delegate; + + /** + * Data array + */ NSArray *csvDataArray; - MCPStreamingResult *csvDataResult; - // CSV options + /** + * Table name + */ + NSString *csvTableName; + + /** + * Output field names + */ BOOL csvOutputFieldNames; + + /** + * CSV field separator string + */ NSString *csvFieldSeparatorString; + + /** + * CSV enclosing character string + */ NSString *csvEnclosingCharacterString; + + /** + * CSV escape string + */ NSString *csvEscapeString; + + /** + * CSV line ending string + */ NSString *csvLineEndingString; + + /** + * CSV NULL string + */ NSString *csvNULLString; - NSArray *csvTableColumnNumericStatus; + + /** + * Table data + */ + SPTableData *csvTableData; } -@property (readwrite, retain) NSArray *csvDataArray; -@property (readwrite, retain) MCPStreamingResult *csvDataResult; +@property(readwrite, assign) NSObject <SPCSVExporterProtocol> *delegate; + +@property(readwrite, retain) NSArray *csvDataArray; +@property(readwrite, retain) NSString *csvTableName; + +@property(readwrite, assign) BOOL csvOutputFieldNames; + +@property(readwrite, retain) NSString *csvFieldSeparatorString; +@property(readwrite, retain) NSString *csvEnclosingCharacterString; +@property(readwrite, retain) NSString *csvEscapeString; +@property(readwrite, retain) NSString *csvLineEndingString; +@property(readwrite, retain) NSString *csvNULLString; + +@property(readwrite, retain) SPTableData *csvTableData; -@property (readwrite, assign) BOOL csvOutputFieldNames; -@property (readwrite, retain) NSString *csvFieldSeparatorString; -@property (readwrite, retain) NSString *csvEnclosingCharacterString; -@property (readwrite, retain) NSString *csvEscapeString; -@property (readwrite, retain) NSString *csvLineEndingString; -@property (readwrite, retain) NSString *csvNULLString; -@property (readwrite, retain) NSArray *csvTableColumnNumericStatus; +/** + * Initialise an instance of SPCSVExporter using the supplied delegate. + * + * @param exportDelegate The exporter delegate + * + * @return The initialised instance + */ +- (id)initWithDelegate:(NSObject *)exportDelegate; @end |