Oolite
Loading...
Searching...
No Matches
OOAsyncCacheWriter Class Reference
Inheritance diagram for OOAsyncCacheWriter:
Collaboration diagram for OOAsyncCacheWriter:

Instance Methods

(id) - initWithCacheContents:
(void) - dealloc [implementation]
(void) - performAsyncTask [implementation]
(void) - completeAsyncTask [implementation]

Private Attributes

NSDictionary * _cacheContents

Detailed Description

Definition at line 100 of file OOCacheManager.m.

Method Documentation

◆ completeAsyncTask

- (void) completeAsyncTask
implementation

Reimplemented from <OOAsyncWorkTask>.

Definition at line 662 of file OOCacheManager.m.

663{
664 // Don't need to do anything, but this needs to be here so we can wait on it.
665}

References completeAsyncTask.

Referenced by completeAsyncTask.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dealloc

- (void) dealloc
implementation

Definition at line 645 of file OOCacheManager.m.

646{
648
649 [super dealloc];
650}
#define DESTROY(x)
NSDictionary * _cacheContents

References _cacheContents, dealloc, and DESTROY.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initWithCacheContents:

- (id) initWithCacheContents: (NSDictionary*) cacheContents

Definition at line 632 of file OOCacheManager.m.

632 :(NSDictionary*)cacheContents
633{
634 if ((self = [super init])) {
635 _cacheContents = [cacheContents copy];
636 if (_cacheContents == nil) {
637 [self release];
638 self = nil;
639 }
640 }
641
642 return self;
643}
return nil

References _cacheContents, and nil.

◆ performAsyncTask

- (void) performAsyncTask
implementation

Reimplemented from <OOAsyncWorkTask>.

Definition at line 652 of file OOCacheManager.m.

653{
654 if ([[OOCacheManager sharedCache] writeDict:_cacheContents]) {
655 OOLog(kOOLogDataCacheWriteSuccess, @"%@", @"Wrote data cache.");
656 } else {
657 OOLog(kOOLogDataCacheWriteFailed, @"%@", @"Failed to write data cache.");
658 }
660}
static NSString *const kOOLogDataCacheWriteSuccess
static NSString *const kOOLogDataCacheWriteFailed
#define OOLog(class, format,...)
Definition OOLogging.h:84

References _cacheContents, DESTROY, kOOLogDataCacheWriteFailed, kOOLogDataCacheWriteSuccess, OOLog, and performAsyncTask.

Referenced by performAsyncTask.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _cacheContents

- (NSDictionary*) _cacheContents
private

Definition at line 102 of file OOCacheManager.m.

Referenced by dealloc, initWithCacheContents:, and performAsyncTask.


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