GITCombinedStore Class Reference

#import <GITCombinedStore.h>

Inherits GITObjectStore.

Collaboration diagram for GITCombinedStore:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - init
(id) - initWithStores:
(void) - addStore:
(void) - addStores:
(void) - addStore:priority:

Protected Attributes

GITObjectStorerecentStore

Properties

NSMutableArray * stores


Detailed Description

Implements a store which is composed of other stores. The GITCombinedStore allows the user to combine a selection of GITObjectStore subclasses into a single store unit. The primary use would be for combining a GITFileStore with a GITPackStore so that both loose file objects and packed objects can be accessed through one object.

Member Function Documentation

- (void) addStore: (GITObjectStore*)  store  

Adds a store to the receiver with the Normal priority.

Parameters:
store The GITObjectStore instance to add to the receiver

- (void) addStore: (GITObjectStore*)  store
priority: (GITCombinedStorePriority priority 

Adds a store to the receiver with priority.

Parameters:
store The GITObjectStore instance to add to the receiver
priority The priority indicates where the list of stores the store should be placed. If you want the store to be checked first then you can pass a higher priority.
See also:
GITCombinedStorePriority

< Added as we might well need to retain this before it goes into the array

- (void) addStores: (GITObjectStore*)  firstStore
,   ... 

Adds a list of stores to the receiver with normal priority.

Parameters:
firstStore A variable nil terminated list of stores to add to the receiver

- (id) init  

Creates and returns a new combined store. The newly created store will have no internal stores until you add them with a call to -addStore: or -addStore:priority:.

Returns:
A new combined store

- (id) initWithStores: (GITObjectStore*)  firstStore
,   ... 

Creates and returns a new combined store with the provided stores. The newly created store will be composed of the stores provided.

Parameters:
firstStore A variable nil terminated list of stores to add to the receiver. The stores will be added with the Normal priority.
Returns:
A new combined store


Member Data Documentation

- (GITObjectStore*) recentStore [protected]


Property Documentation

- (NSMutableArray *) stores [read, retain]


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

Generated on Mon Dec 8 22:57:08 2008 for CocoaGit by  doxygen 1.5.7