Authors
- Generated by builder
-
- Declared in:
- ETObjectStore.h
- Conforms to:
- ETSeekableObjectStore
Object 'store' which keeps the data written to it in
memory. Doesn't support commit and branching
operations.
Instance Variables
Method summary
- (
NSData*)
buffer;
Returns the buffer for the current version.
Instance Variables for ETSerialObjectBuffer Class
@protected NSString* branch;
Description forthcoming.
@protected NSMutableData* buffer;
Description forthcoming.
@protected unsigned int version;
Description forthcoming.
- Declared in:
- ETObjectStore.h
- Conforms to:
- ETSeekableObjectStore
Description forthcoming.
Instance Variables
Method summary
- (id)
initWithPath: (
NSString*)aPath;
This is a designated initialiser for the class.
Description forthcoming.
- (void)
setPath: (
NSString*)aPath;
Description forthcoming.
Instance Variables for ETSerialObjectBundle Class
@protected NSString* branch;
Description forthcoming.
@protected NSString* bundlePath;
Description forthcoming.
@protected FILE* file;
Description forthcoming.
@protected unsigned int version;
Description forthcoming.
- Declared in:
- ETObjectStore.h
Object 'store' which sends data over the network to
the specified host. Supports commit but not branching
operations.
Instance Variables
Method summary
- (id)
initWithRemoteHost: (
NSString*)aHost
forService: (
NSString*)aService;
This is a designated initialiser for the class.
Initializes the store pointing to the specified
host and network service. Defaults to using the
CoreObject service (which must exist in
/etc/services in order to work).
Instance Variables for ETSerialObjectSocket Class
@protected ETSocket* socket;
The socket
- Declared in:
- ETObjectStore.h
Object 'store' which simply logs the serialiser output
to stdout. Useful for debugging.
Supports commit
but not branching operations.
- Declared in:
- ETObjectStore.h
- Conforms to:
- ETSerialObjectStore
Description forthcoming.
Method summary
- (void)
replaceRange: (
NSRange)aRange
withBytes: (unsigned char*)bytes;
Replaces the bytes in the specified
range with (the same number of) new bytes.
- Declared in:
- ETObjectStore.h
- Conforms to:
- NSObject
Description forthcoming.
Method summary
- (
NSString*)
branch;
Returns the branch currently being written, or the
last branch to be written if the version is finalised.
- (void)
commit;
Guarantees that the data is committed to the
backing store.
- (void)
createBranch: (
NSString*)newBranch
from: (
NSString*)oldBranch;
Creates a new branch from the specified parent
branch. Doesn't change the current branch.
- (
NSData*)
dataForVersion: (unsigned int)aVersion
inBranch: (
NSString*)aBranch;
Interface for an object store that allows serial
data to be written to it.
- (BOOL)
isValidBranch: (
NSString*)aBranch;
Returns true if the specified branch exists.
- (
NSString*)
parentOfBranch: (
NSString*)aBranch;
Returns the branch that is the parent of the
specified branch.
- (unsigned int)
size;
Returns the amount of data written so far in this
version.
- (void)
startVersion: (unsigned int)aVersion
inBranch: (
NSString*)aBranch;
Start a new version in the specified branch.
Subsequent data will be written to this branch.
- (
NSUInteger)
version;
Returns the version currently being written, or the
last version to be written if the version is
finalised.
- (void)
writeBytes: (unsigned char*)bytes
count: (unsigned int)count;
Writes the specified data to the store.