/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; declare type float32 = number; declare type float64 = number; import { ABuffer } from "../../system/buffer/ABuffer"; import { InStream } from "../../system/io/InStream"; import { OutStream } from "../../system/io/OutStream"; import { ALong } from "../../system/runtime/ALong"; /** * Class AttributeValue holds a single (typed) attribute value. * * @version 1.0 August 2013 */ /** @internal */ export declare class AttributeValue { /** The 'false' value */ static readonly FALSE: AttributeValue; /** The 'true' value */ static readonly TRUE: AttributeValue; /** The type */ private _type; /** The value for boolean/int1/int2/int4 types */ private _valueI4; /** The value for int8 types */ private _valueI8; /** The value for float4 types */ private _valueF4; /** The value for float8 types */ private _valueF8; /** * Create a new (empty) value. */ constructor(); /** * Create a new value. * @param value the value. */ static createBoolean(value: boolean): AttributeValue; /** * Create a new value. * @param value the value. */ static createInt1(value: int32): AttributeValue; /** * Create a new value. * @param value the value. */ static createInt2(value: int32): AttributeValue; /** * Create a new value. * @param value the value. */ static createInt4(value: int32): AttributeValue; /** * Create a new value. * @param value the value. */ static createInt8(value: ALong): AttributeValue; /** * Create a new value. * @param value the value. */ static createFloat4(value: float32): AttributeValue; /** * Create a new value. * @param value the value. */ static createFloat8(value: float64): AttributeValue; /** * Create a new value. * @param value the value. */ static createColor(value: int32): AttributeValue; /** * Get the type. * @return the type. */ getType(): int32; /** * Clear the value. */ clear(): void; /** * Is this an empty value? * @return true for empty. */ isEmpty(): boolean; /** * Get the value. * @return the value. */ getBoolean(): boolean; /** * Get the value. * @return the value. */ getBooleanAsInt(): int32; /** * Set the value. * @param value the new value. */ setBoolean(value: boolean): void; /** * Set the value. * @param value the new value. */ setBooleanFromInt(value: int32): void; /** * Get the value. * @return the value. */ getInt1(): int32; /** * Set the value. * @param value the new value. */ setInt1(value: int32): void; /** * Get the value. * @return the value. */ getInt2(): int32; /** * Set the value. * @param value the new value. */ setInt2(value: int32): void; /** * Get the value. * @return the value. */ getInt4(): int32; /** * Set the value. * @param value the new value. */ setInt4(value: int32): void; /** * Get the value. * @return the value. */ getInt8(): ALong; /** * Set the value. * @param value the new value. */ setInt8(value: ALong): void; /** * Get the value. * @return the value. */ getFloat4(): float32; /** * Set the value. * @param value the new value. */ setFloat4(value: float32): void; /** * Get the value. * @return the value. */ getFloat8(): float64; /** * Set the value. * @param value the new value. */ setFloat8(value: float64): void; /** * Get the value. * @return the value. */ getColor(): int32; /** * Set the value. * @param value the new value. */ setColor(value: int32): void; /** * Check if the value equals another value. * @param other the other value. * @return true if same. */ same(other: AttributeValue): boolean; /** * Copy to another value. * @param other the other value to copy to. */ copyTo(other: AttributeValue): void; /** * Copy the value. * @return the copied value. */ copy(): AttributeValue; /** * Copy a list of values. * @return the copied values. */ static copyList(list: Array): Array; /** * Get the value as a string. * @return the string. */ asString(): string; /** * The standard toString method. * @see Object#toString */ toString(): string; /** * Create a default attribute value. * @param type the type of value. * @return a default value. */ static createDefault(type: int32): AttributeValue; /** * Read an attribute value. * @param buffer the buffer to read from. * @param bufferOffset the buffer offset to read from. * @param attributeType the type of the attribute. * @param the value to read into. */ static readFromBufferTo(buffer: ABuffer, bufferOffset: int32, attributeType: int32, value: AttributeValue): void; /** * Read an attribute value. * @param input the input stream to read from. * @param attributeType the type of the attribute. * @param the value to read into. */ static readFromStreamTo(stream: InStream, attributeType: int32, value: AttributeValue): void; /** * Read an attribute value. * @param input the input stream to read from. * @param attributeType the type of the attribute. * @return the value. */ static readFromStream(stream: InStream, attributeType: int32): AttributeValue; /** * Write an attribute value. * @param output the output stream to write to. * @param attributeType the type of the attribute. * @param value the value of the attribute. */ static writeToStream(stream: OutStream, attributeType: int32, value: AttributeValue): void; } export {}; //# sourceMappingURL=AttributeValue.d.ts.map