C# Класс Nanook.QueenBee.Parser.QbItemBase

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Write void
setChildMode void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
Write ( BinaryEndianWriter bw ) : void

Write the item to the Binary Writer

setChildMode ( ) : void

Описание методов

AddItem() публичный Метод

Add an item to the child collection
public AddItem ( QbItemBase item ) : void
item QbItemBase
Результат void

AlignPointers() публичный Метод

Align the pointers to account for any editing, return the position after the current item
public AlignPointers ( uint pos ) : uint
pos uint
Результат uint

CalcItemCount() защищенный Метод

Override this when the _items list does not contain the child items
protected CalcItemCount ( ) : int
Результат int

Clone() публичный абстрактный Метод

public abstract Clone ( ) : QbItemBase
Результат QbItemBase

Construct() публичный Метод

Load type data from binary reader
public Construct ( BinaryEndianReader br, QbItemType type ) : void
br BinaryEndianReader
type QbItemType
Результат void

ConstructEnd() публичный Метод

Call after derived class has read its data in Construct()
public ConstructEnd ( BinaryEndianReader br ) : void
br BinaryEndianReader
Результат void

Create() публичный Метод

Load type data from binary reader
public Create ( QbItemType type ) : void
type QbItemType
Результат void

FindItem() публичный Метод

public FindItem ( QbItemType type, bool recursive ) : QbItemBase
type QbItemType
recursive bool
Результат QbItemBase

FindItem() публичный Метод

public FindItem ( QbKey key, bool recursive ) : QbItemBase
key QbKey
recursive bool
Результат QbItemBase

FindItem() публичный Метод

public FindItem ( bool recursive, Predicate match ) : QbItemBase
recursive bool
match Predicate
Результат QbItemBase

GetItems() публичный Метод

public GetItems ( ) : Nanook.QueenBee.Parser.GenericQbItem[]
Результат Nanook.QueenBee.Parser.GenericQbItem[]

InsertItem() публичный Метод

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
Результат void

QbItemBase() публичный Метод

public QbItemBase ( QbFile root ) : System
root QbFile
Результат System

RemoveItem() публичный Метод

Remove the specified item from this items children
public RemoveItem ( QbItemBase item ) : void
item QbItemBase Item to remove
Результат void

StartLengthCheck() защищенный Метод

protected StartLengthCheck ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
Результат void

StreamPos() защищенный Метод

protected StreamPos ( BinaryEndianReader br ) : uint
br BinaryEndianReader
Результат uint

StreamPos() защищенный Метод

protected StreamPos ( BinaryEndianWriter bw ) : uint
bw BinaryEndianWriter
Результат uint

TestLengthCheck() защищенный Метод

protected TestLengthCheck ( object sender, BinaryEndianWriter bw ) : ApplicationException
sender object
bw BinaryEndianWriter
Результат System.ApplicationException

WriteEnd() публичный Метод

Call after derived class has written its data in Write()
public WriteEnd ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
Результат void

setQbFormat() публичный Метод

public setQbFormat ( QbItemType type ) : void
type QbItemType
Результат void