Skip to content

Writer

class Writer < Object

Abstract writer.

Member Functions

Name Description
setObject Set this as an object.
setArray Set this as an array.
setBoolean Set this as a Boolean.
setInteger Set this as an integer.
setReal Set this as a real.
setString Set this as a string.
setBooleanVector Set this as a vector of Booleans.
setIntegerVector Set this as a vector of integers.
setRealVector Set this as a vector of reals.
setBooleanMatrix Set this as matrix of Booleans.
setIntegerMatrix Set this as a matrix of integers.
setRealMatrix Set this as a matrix of reals.
setObject Set an object.
setArray Set an array.
setBoolean Set a Boolean.
setInteger Set an integer.
setReal Set a real.
setString Set a string.
setBooleanVector Set a vector of Booleans.
setIntegerVector Set a vector of integers.
setRealVector Set a vector of reals.
setBooleanMatrix Set a matrix of Booleans.
setIntegerVector Set a matrix of integers.
setRealVector Set a matrix of reals.
setObject Set an object.
setArray Set an array.
setBoolean Set a Boolean.
setInteger Set an integer.
setReal Set a real.
setString Set a string.
setBooleanVector Set a vector of Booleans.
setIntegerVector Set a vector of integers.
setRealVector Set a vector of reals.
setBooleanMatrix Set a matrix of Booleans.
setIntegerMatrix Set a matrix of integers.
setRealMatrix Set a matrix of reals.
push Push a new element onto the end of an array.
flush Flush in-memory buffers.

Member Function Details

flush

function flush()

Flush in-memory buffers.

push

function push() -> Writer

Push a new element onto the end of an array.

Returns: a writer for modifying the new element.

setArray

function setArray() -> Writer

Set this as an array.

Returns: a writer (this one) for modifying the new element.

function setArray(name:String) -> Writer

Set an array.

  • name: Name of the entry.

Returns: a writer for modifying the new element.

function setArray(path:[String]) -> Writer

Set an array.

  • path: Path of the entry.

Returns: a writer for modifying the new element.

setBoolean

function setBoolean(value:Boolean)

Set this as a Boolean.

  • value: Value of the entry.

function setBoolean(name:String, value:Boolean)

Set a Boolean.

  • name: Name of the entry.
  • value: Value of the entry.

function setBoolean(path:[String], value:Boolean)

Set a Boolean.

  • path: Path of the entry.
  • value: Value of the entry.

setBooleanMatrix

function setBooleanMatrix(value:Boolean[_,_])

Set this as matrix of Booleans.

  • value: Value of the entry.

function setBooleanMatrix(name:String, value:Boolean[_,_])

Set a matrix of Booleans.

  • name: Name of the entry.
  • value: Value of the entry.

function setBooleanMatrix(path:[String], value:Boolean[_,_])

Set a matrix of Booleans.

  • path: Path of the entry.
  • value: Value of the entry.

setBooleanVector

function setBooleanVector(value:Boolean[_])

Set this as a vector of Booleans.

  • value: Value of the entry.

function setBooleanVector(name:String, value:Boolean[_])

Set a vector of Booleans.

  • name: Name of the entry.
  • value: Value of the entry.

function setBooleanVector(path:[String], value:Boolean[_])

Set a vector of Booleans.

  • path: Path of the entry.
  • value: Value of the entry.

setInteger

function setInteger(value:Integer)

Set this as an integer.

  • value: Value of the entry.

function setInteger(name:String, value:Integer)

Set an integer.

  • name: Name of the entry.
  • value: Value of the entry.

function setInteger(path:[String], value:Integer)

Set an integer.

  • path: Path of the entry.
  • value: Value of the entry.

setIntegerMatrix

function setIntegerMatrix(value:Integer[_,_])

Set this as a matrix of integers.

  • value: Value of the entry.

function setIntegerMatrix(path:[String], value:Integer[_,_])

Set a matrix of integers.

  • path: Path of the entry.
  • value: Value of the entry.

setIntegerVector

function setIntegerVector(value:Integer[_])

Set this as a vector of integers.

  • value: Value of the entry.

function setIntegerVector(name:String, value:Integer[_])

Set a vector of integers.

  • name: Name of the entry.
  • value: Value of the entry.

function setIntegerVector(name:String, value:Integer[_,_])

Set a matrix of integers.

  • name: Name of the entry.
  • value: Value of the entry.

function setIntegerVector(path:[String], value:Integer[_])

Set a vector of integers.

  • path: Path of the entry.
  • value: Value of the entry.

setObject

function setObject() -> Writer

Set this as an object.

Returns: a writer (this one) for modifying the new element.

function setObject(name:String) -> Writer

Set an object.

  • name: Name of the entry.

Returns: a writer for modifying the new element.

function setObject(path:[String]) -> Writer

Set an object.

  • path: Path of the entry.

Returns: a writer for modifying the new element.

setReal

function setReal(value:Real)

Set this as a real.

  • value: Value of the entry.

function setReal(name:String, value:Real)

Set a real.

  • name: Name of the entry.
  • value: Value of the entry.

function setReal(path:[String], value:Real)

Set a real.

  • path: Path of the entry.
  • value: Value of the entry.

setRealMatrix

function setRealMatrix(value:Real[_,_])

Set this as a matrix of reals.

  • value: Value of the entry.

function setRealMatrix(path:[String], value:Real[_,_])

Set a matrix of reals.

  • path: Path of the entry.
  • value: Value of the entry.

setRealVector

function setRealVector(value:Real[_])

Set this as a vector of reals.

  • value: Value of the entry.

function setRealVector(name:String, value:Real[_])

Set a vector of reals.

  • name: Name of the entry.
  • value: Value of the entry.

function setRealVector(name:String, value:Real[_,_])

Set a matrix of reals.

  • name: Name of the entry.
  • value: Value of the entry.

function setRealVector(path:[String], value:Real[_])

Set a vector of reals.

  • path: Path of the entry.
  • value: Value of the entry.

setString

function setString(value:String)

Set this as a string.

  • value: Value of the entry.

function setString(name:String, value:String)

Set a string.

  • name: Name of the entry.
  • value: Value of the entry.

function setString(path:[String], value:String)

Set a string.

  • path: Path of the entry.
  • value: Value of the entry.