Main Page | Class List | File List | Class Members | File Members

CCsv Interface 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) CCsv:
 

Release the content of CSV data.

Description
Release the content of CSV data.

- (id) CCsv:
 

Initialize CCsv instance.

Returns:
Initialized object.
Description
Initialize CCsv instance.

- (int) CCsv: (id) 
(NSString *) 
(id)  str
withEscape: (id) 
(BOOL) 
(id)  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).

+ (id) CCsv: (id) 
(NSString *) 
(id)  str
withEscape: (id) 
(BOOL) 
(id)  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) CCsv: (id) 
(FILE *) 
(id)  outfp
 

Print the content of CSV data.

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

- (CList *) CCsv:
 

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) CCsv:
 

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* CCsv::row_list [protected]
 

List of list for colmuns.


The documentation for this interface was generated from the following file:
Generated on Wed Jul 14 18:34:59 2004 for Coconut by doxygen 1.3.6