Inherits from NSObject
Declared in CsvDefaultValues.h
CsvDefaultValues.mm

Overview

A class to hold key-value pairs of devault values for gaps in the CSV content

Properties

columns

Columns that have default values.

@property (nonatomic, readonly) NSOrderedSet *columns

Declared In

CsvDefaultValues.h

defaults

Default values. The order matches wiht the order of columns .

@property (nonatomic, readonly) NSArray *defaults

Declared In

CsvDefaultValues.h

Instance Methods

addDefaultValue:forColumn:

Assigns a default value to a given column.

- (void)addDefaultValue:(NSString *)defaultValue_ forColumn:(NSString *)column_

Parameters

defaultValue_

A placeholder value to fill empty content with.

column_

Name of the column that might contain empty content.

Discussion

Warning : no validation is made for performance reasons.

Declared In

CsvDefaultValues.h

clear

Returns the structure to the initial empty state.

- (void)clear

Declared In

CsvDefaultValues.h

count

Number of columns that have default values.

- (NSUInteger)count

Declared In

CsvDefaultValues.h