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
protected const int INT = 1
Field Value
LIST
protected const int LIST = 4
Field Value
STRING
protected const int STRING = 3
Field Value
Properties
Kind
The kind of ReaderValue.
public abstract ReaderValueKind Kind { get; }
Property Value
Methods
Read(BinaryReader)
Read a ReaderValue from binary.
public static ReaderValue Read(BinaryReader reader)
Parameters
reader
BinaryReader
Returns
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
ReaderValueop
IQueryOperation
Returns
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
ReaderValueindex
int
Returns
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
ReaderValuekey
string