C# Class Nanook.QueenBee.Parser.QbItemBase

Datei anzeigen Open project: Nanook/Queen-Bee Class Usage Examples

Private Properties

Property Type Description
Write void
setChildMode void

Public Methods

Method Description
AddItem ( QbItemBase item ) : void

Add an item to the child collection

AlignPointers ( uint pos ) : uint

Align the pointers to account for any editing, return the position after the current item

Clone ( ) : QbItemBase
Construct ( BinaryEndianReader br, QbItemType type ) : void

Load type data from binary reader

ConstructEnd ( BinaryEndianReader br ) : void

Call after derived class has read its data in Construct()

Create ( QbItemType type ) : void

Load type data from binary reader

FindItem ( QbItemType type, bool recursive ) : QbItemBase
FindItem ( QbKey key, bool recursive ) : QbItemBase
FindItem ( bool recursive, Predicate match ) : QbItemBase
GetItems ( ) : Nanook.QueenBee.Parser.GenericQbItem[]
InsertItem ( QbItemBase item, QbItemBase sibling, bool beforeAfter ) : void

Insert a new item before or after the sibling item.

QbItemBase ( QbFile root ) : System
RemoveItem ( QbItemBase item ) : void

Remove the specified item from this items children

WriteEnd ( BinaryEndianWriter bw ) : void

Call after derived class has written its data in Write()

setQbFormat ( QbItemType type ) : void

Protected Methods

Method Description
CalcItemCount ( ) : int

Override this when the _items list does not contain the child items

StartLengthCheck ( BinaryEndianWriter bw ) : void
StreamPos ( BinaryEndianReader br ) : uint
StreamPos ( BinaryEndianWriter bw ) : uint
TestLengthCheck ( object sender, BinaryEndianWriter bw ) : ApplicationException

Private Methods

Method Description
Write ( BinaryEndianWriter bw ) : void

Write the item to the Binary Writer

setChildMode ( ) : void

Method Details

AddItem() public method

Add an item to the child collection
public AddItem ( QbItemBase item ) : void
item QbItemBase
return void

AlignPointers() public method

Align the pointers to account for any editing, return the position after the current item
public AlignPointers ( uint pos ) : uint
pos uint
return uint

CalcItemCount() protected method

Override this when the _items list does not contain the child items
protected CalcItemCount ( ) : int
return int

Clone() public abstract method

public abstract Clone ( ) : QbItemBase
return QbItemBase

Construct() public method

Load type data from binary reader
public Construct ( BinaryEndianReader br, QbItemType type ) : void
br BinaryEndianReader
type QbItemType
return void

ConstructEnd() public method

Call after derived class has read its data in Construct()
public ConstructEnd ( BinaryEndianReader br ) : void
br BinaryEndianReader
return void

Create() public method

Load type data from binary reader
public Create ( QbItemType type ) : void
type QbItemType
return void

FindItem() public method

public FindItem ( QbItemType type, bool recursive ) : QbItemBase
type QbItemType
recursive bool
return QbItemBase

FindItem() public method

public FindItem ( QbKey key, bool recursive ) : QbItemBase
key QbKey
recursive bool
return QbItemBase

FindItem() public method

public FindItem ( bool recursive, Predicate match ) : QbItemBase
recursive bool
match Predicate
return QbItemBase

GetItems() public method

public GetItems ( ) : Nanook.QueenBee.Parser.GenericQbItem[]
return Nanook.QueenBee.Parser.GenericQbItem[]

InsertItem() public method

Insert a new item before or after the sibling item.
public InsertItem ( QbItemBase item, QbItemBase sibling, bool beforeAfter ) : void
item QbItemBase Item to insert.
sibling QbItemBase
beforeAfter bool Insert before=True or after=False
return void

QbItemBase() public method

public QbItemBase ( QbFile root ) : System
root QbFile
return System

RemoveItem() public method

Remove the specified item from this items children
public RemoveItem ( QbItemBase item ) : void
item QbItemBase Item to remove
return void

StartLengthCheck() protected method

protected StartLengthCheck ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
return void

StreamPos() protected method

protected StreamPos ( BinaryEndianReader br ) : uint
br BinaryEndianReader
return uint

StreamPos() protected method

protected StreamPos ( BinaryEndianWriter bw ) : uint
bw BinaryEndianWriter
return uint

TestLengthCheck() protected method

protected TestLengthCheck ( object sender, BinaryEndianWriter bw ) : ApplicationException
sender object
bw BinaryEndianWriter
return System.ApplicationException

WriteEnd() public method

Call after derived class has written its data in Write()
public WriteEnd ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
return void

setQbFormat() public method

public setQbFormat ( QbItemType type ) : void
type QbItemType
return void