Simias::Storage::ChangeLogRecord Class Reference

Contains the layout of a ChangeLog record. More...

Collaboration diagram for Simias::Storage::ChangeLogRecord:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ChangeLogOp {
  Unknown, Created, Deleted, Changed,
  Renamed
}
 Recordable change log operations. More...

Public Member Functions

 ChangeLogRecord (ChangeLogOp operation, NodeEventArgs args)
 Initializes a new instance of the struct.
 ChangeLogRecord (byte[] encodedRecord)
 Initializes a new instance of the struct from an encoded byte array.
 ChangeLogRecord (byte[] encodedRecord, int index)
 Initializes a new instance of the struct from an encoded byte array and index.
byte[] ToByteArray ()
 Converts the object to a formatted byte array.

Properties

DateTime Epoch [get, set]
 Gets or sets the record epoch.
string EventID [get, set]
 Gets or sets the event ID.
int Length [get]
 Gets the length of the record.
ChangeLogOp Operation [get, set]
 Gets or set the event operation.
ulong RecordID [get, set]
 Gets or sets the record ID.
ushort Flags [get, set]
 Gets or sets the flags.
ulong MasterRev [get, set]
 Gets or sets the master revision value.
ulong SlaveRev [get, set]
 Gets or sets the slave revision value.
long FileLength [get, set]
 Gets or sets the file length value.
NodeTypes.NodeTypeEnum Type [get, set]
 Gets or sets the base node type.
static int RecordSize [get]
 Returns the size of the ChangeLogRecord.


Detailed Description

Contains the layout of a ChangeLog record.


Member Enumeration Documentation

Recordable change log operations.


Constructor & Destructor Documentation

Simias::Storage::ChangeLogRecord::ChangeLogRecord ( ChangeLogOp  operation,
NodeEventArgs  args 
) [inline]

Initializes a new instance of the struct.

Parameters:
operation Node operation type.
args NodeEventArgs object that contains the change information.

Simias::Storage::ChangeLogRecord::ChangeLogRecord ( byte[]  encodedRecord  )  [inline]

Initializes a new instance of the struct from an encoded byte array.

Parameters:
encodedRecord ChangeLogRecord encoded record.

Simias::Storage::ChangeLogRecord::ChangeLogRecord ( byte[]  encodedRecord,
int  index 
) [inline]

Initializes a new instance of the struct from an encoded byte array and index.

Parameters:
encodedRecord ChangeLogRecord encoded record.
index Start index into the byte array.


Member Function Documentation

byte [] Simias::Storage::ChangeLogRecord::ToByteArray (  )  [inline]

Converts the object to a formatted byte array.

Returns:
A formatted byte array containing the ChangeLogRecord data.


Property Documentation

DateTime Simias::Storage::ChangeLogRecord::Epoch [get, set]

Gets or sets the record epoch.

string Simias::Storage::ChangeLogRecord::EventID [get, set]

Gets or sets the event ID.

int Simias::Storage::ChangeLogRecord::Length [get]

Gets the length of the record.

ChangeLogOp Simias::Storage::ChangeLogRecord::Operation [get, set]

Gets or set the event operation.

ulong Simias::Storage::ChangeLogRecord::RecordID [get, set]

Gets or sets the record ID.

ushort Simias::Storage::ChangeLogRecord::Flags [get, set]

Gets or sets the flags.

ulong Simias::Storage::ChangeLogRecord::MasterRev [get, set]

Gets or sets the master revision value.

ulong Simias::Storage::ChangeLogRecord::SlaveRev [get, set]

Gets or sets the slave revision value.

long Simias::Storage::ChangeLogRecord::FileLength [get, set]

Gets or sets the file length value.

NodeTypes.NodeTypeEnum Simias::Storage::ChangeLogRecord::Type [get, set]

Gets or sets the base node type.

int Simias::Storage::ChangeLogRecord::RecordSize [static, get]

Returns the size of the ChangeLogRecord.


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

Generated on Wed Apr 8 14:53:02 2009 for simias by  doxygen 1.5.6