CCsv Class Reference

CCsv class operates the information for command line options. More...

#import <ccsv.h>

List of all members.

Public Member Functions

(id) - init
 Initialize CCsv instance.
(void) - dealloc
 Release the content of CSV data.
(int) - parse:withEscape:
 Parse text data and make CSV data.
(uint_t) - rowNum
 Get number of rows in the CSV data.
(CList *) - rowList
 Get list of rows in CSV data.
(void) - print:
 Print the content of CSV data.

Static Public Member Functions

(id) + parse:withEscape:
 Parse text data and make CSV data.

Protected Attributes

CListrow_list


Detailed Description

CCsv class operates the information for command line options.

Description
CCsv class operates the information for command line options.


Member Function Documentation

- (void) dealloc  
 

Release the content of CSV data.

Description
Release the content of CSV data.

- (id) init  
 

Initialize CCsv instance.

Returns:
Initialized object.
Description
Initialize CCsv instance.

- (int) parse: (NSString *)  str
withEscape: (BOOL)  withesc
 
 

Parse text data and make CSV data.

Returns:
Generated CSV file. If some error occured, this pointer will be nil.
Parameters:
str Input text data.
Description
Parse CSV file and make CSV data. If you want use '\' to escape comma, set true to 'withesc' parameter.
Parameters:
withesc Set true to use back-slash code to escape sepatator (command).

+ (int) parse: (NSString *)  str
withEscape: (BOOL)  withesc
 
 

Parse text data and make CSV data.

Returns:
Generated CSV file. If some error occured, this pointer will be nil.
Parameters:
str Input text data.
withesc Set true to use back-slash code to escape sepatator (command).
Description
Parse CSV file and make CSV data. If you want use '\' to escape comma, set true to 'withesc' parameter.

- (void) print: (FILE *)  outfp  
 

Print the content of CSV data.

Parameters:
outfp Output stream.
Description
Print the content of CSV data.

- (CList *) rowList  
 

Get list of rows in CSV data.

Returns:
List of rows.
Description
Get list of rows in CSV data. The item of list cointains list (CList) of colmuns. The item of colmun is string (NSString).

- (uint_t) rowNum  
 

Get number of rows in the CSV data.

Returns:
Number of rows.
Description
Get number of rows in the CSV data.


Member Data Documentation

- (CList*) row_list [protected]
 

List of list for colmuns.


The documentation for this class was generated from the following files:
Generated on Mon Mar 20 18:48:15 2006 for Coconut by  doxygen 1.4.6