Into

Modules

Documentation

classPiiStringizer

#include <PiiStringizer.h>

Convert (almost) any type to a string.

Inherits PiiDefaultOperation

Description

Inputs

inputany number or a matrix containing numbers

Outputs

outputthe input value as a string. Matrices are represented as shown in the example below.
0 1 2
3 4 5

Properties

Column separator for matrices.

This will be appended to the end of the string.

int

The maximum number of digits after the decimal point shown in a floating-point number.

Row separator for matrices.

This will be prepended to the output string.

Constructors and destructor

Public member functions

int
( )
void
( )
void
( )
void
(
  • int precision
)
void
( )
void
( )

Protected member functions

virtual void
( )

Executes one round of processing.

Property details

  • QString columnSeparator

    [read, write]

    Column separator for matrices.

    The default value is " ".

  • QString endDelimiter

    [read, write]

    This will be appended to the end of the string.

    The default value is an empty string.

  • int precision

    [read, write]

    The maximum number of digits after the decimal point shown in a floating-point number.

    The default value is 2.

  • QString rowSeparator

    [read, write]

    Row separator for matrices.

    Default value is " ".

  • QString startDelimiter

    [read, write]

    This will be prepended to the output string.

    The default value is an empty string.

Function details

  • PiiStringizer

    ()
  • QString columnSeparator

    ()
  • QString endDelimiter

    ()
  • int precision

    ()
  • QString rowSeparator

    ()
  • void setColumnSeparator

    ()
  • void setEndDelimiter

    ()
  • void setPrecision

    (
    • int precision
    )
  • void setRowSeparator

    ()
  • void setStartDelimiter

    ()
  • QString startDelimiter

    ()
  • virtual void process

    ()
    [protected, virtual]

    Executes one round of processing.

    This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.

    Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().

    Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns Running.

    Exceptions
    PiiExecutionException

    whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.

    Reimplemented from PiiDefaultOperation.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.