Table of Contents

Class ReaderValue

Namespace
Mech3DotNet.Reader
Assembly
Mech3DotNet.dll

A value in reader ZBD data.

public abstract class ReaderValue
Inheritance
ReaderValue
Derived
Inherited Members

Fields

FLOAT

protected const int FLOAT = 2

Field Value

int

INT

protected const int INT = 1

Field Value

int

LIST

protected const int LIST = 4

Field Value

int

STRING

protected const int STRING = 3

Field Value

int

Properties

Kind

The kind of ReaderValue.

public abstract ReaderValueKind Kind { get; }

Property Value

ReaderValueKind

Methods

Read(BinaryReader)

Read a ReaderValue from binary.

public static ReaderValue Read(BinaryReader reader)

Parameters

reader BinaryReader

Returns

ReaderValue

Exceptions

ReaderValueReadException

Thrown if:

  • The reader value kind is unknown
  • When the reader value kind is a string, and the string length is negative.
  • When the reader value kind is a list, and the list length is negative.

Write(BinaryWriter)

public abstract void Write(BinaryWriter writer)

Parameters

writer BinaryWriter

Operators

operator /(ReaderValue, IQueryOperation)

Create a new Query on this value, and apply the IQueryOperation.

public static Query operator /(ReaderValue value, IQueryOperation op)

Parameters

value ReaderValue
op IQueryOperation

Returns

Query

operator /(ReaderValue, int)

Create a new Query on this value, and apply a FindByIndexIQueryOperation based on the specified index.

public static Query operator /(ReaderValue value, int index)

Parameters

value ReaderValue
index int

Returns

Query

operator /(ReaderValue, string)

Create a new Query on this value, and apply a FindByKeyIQueryOperation based on the specified key.

public static Query operator /(ReaderValue value, string key)

Parameters

value ReaderValue
key string

Returns

Query