Splunk MINT SDK for iOS  4.4
 All Classes Files Functions Enumerations Enumerator Properties Macros
LimitedExtraDataList Class Reference

#import <LimitedExtraDataList.h>

Inherits SPLJSONModel.

Instance Methods

(void) - add:
 
(void) - remove:
 
(void) - addWithKey:andValue:
 
(void) - removeWithKey:
 
(NSInteger) - indexOf:
 
(void) - insertAtIndex:extraData:
 
(void) - removeAtIndex:
 
(void) - clear
 
(BOOL) - contains:
 
(void) - addPrivateExtraDataToDataFixture:
 

Class Methods

(LimitedExtraDataList *) + sharedInstance
 
(void) + addExtraDataToDataFixture:
 

Properties

NSUInteger maxCount
 
NSUInteger count
 
NSMutableArray * extraDataArray
 

Detailed Description

The LimitedExtraDataList class contains a list of extra crash data (from ExtraData instances) to attach to error requests.

Method Documentation

- (void) add: (ExtraData *)  extraData

Adds an ExtraData instance to the list.

Parameters
extraDataThe ExtraData instance.
+ (void) addExtraDataToDataFixture: (DataFixture *)  dataFixture

Used internally for adding global extra data to data fixture.

- (void) addPrivateExtraDataToDataFixture: (DataFixture *)  dataFixture

Used internally for adding private extra data to data fixture.

- (void) addWithKey: (NSString *)  key
andValue: (NSString *)  value 

Adds an ExtraData instance to the list as a key-value pair.

Parameters
keyThe key.
valueThe value.
- (void) clear

Clears the internal ExtraData list.

- (BOOL) contains: (ExtraData *)  extraData

Determines whether an ExtraData instance is in the list.

Parameters
extraDataAn ExtraData instance.
Returns
A Boolean that indicates whether the ExtraData instance exists.
- (NSInteger) indexOf: (ExtraData *)  extraData

Gets the index of an ExtraData instance in the list.

Parameters
extraDataAn ExtraData instance.
Returns
The index of the ExtraData in the list.
- (void) insertAtIndex: (NSUInteger)  index
extraData: (ExtraData *)  extraData 

Inserts an ExtraData instance at a specific index in the list.

Parameters
indexThe index.
extraDataAn ExtraData instance.
- (void) remove: (ExtraData *)  extraData

Removes an ExtraData instance from the list.

Parameters
extraDataThe ExtraData instance.
- (void) removeAtIndex: (NSUInteger)  index

Removes an ExtraData instance from a specific index in the list.

Parameters
indexThe index.
- (void) removeWithKey: (NSString *)  key

Removes an ExtraData instance from the list.

Parameters
keyThe key of the ExtraData instance.
+ (LimitedExtraDataList*) sharedInstance

A singleton instance for the global extra data attached to the crash.

Returns
A reference to the LimitedExtraDataList singleton instance.

Property Documentation

- (NSUInteger) count
readnonatomicassign

The count of ExtraData instances in the list.

- (NSMutableArray*) extraDataArray
readwritenonatomicstrong

A modifiable array that contains the ExtraData instances.

- (NSUInteger) maxCount
readnonatomicassign

The maximum number of ExtraData instances that can be included in the list of extra crash data.


The documentation for this class was generated from the following file: