GPKGContentValues

Objective-C

@interface GPKGContentValues : NSObject

Swift

class GPKGContentValues : NSObject

Content Values mapping between columns and values

  • Mapping between columns and values

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableDictionary *values;

    Swift

    var values: NSMutableDictionary! { get set }
  • Initializer

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new content values

  • Put a key value pari

    Declaration

    Objective-C

    - (void)putKey:(NSString *)key withValue:(NSObject *)value;

    Swift

    func putKey(_ key: String!, withValue value: NSObject!)

    Parameters

    key

    key

    value

    value

  • Put a key null value

    Declaration

    Objective-C

    - (void)putNullValueForKey:(NSString *)key;

    Swift

    func putNullValue(forKey key: String!)

    Parameters

    key

    key

  • Get the number of value mappings

    Declaration

    Objective-C

    - (int)size;

    Swift

    func size() -> Int32

    Return Value

    mapping count

  • Get the value of the key

    Declaration

    Objective-C

    - (NSObject *)valueForKey:(NSString *)key;

    Swift

    func value(forKey key: String!) -> NSObject!

    Parameters

    key

    key

    Return Value

    value

  • Get a field key set

    Declaration

    Objective-C

    - (NSArray *)keySet;

    Swift

    func keySet() -> [Any]!

    Return Value

    all keys

  • Get the key value as a string

    Declaration

    Objective-C

    - (NSString *)keyAsString:(NSString *)key;

    Swift

    func key(as key: String!) -> String!

    Parameters

    key

    key

    Return Value

    key string