Configuration

Input Ports

Port name

Data Type

Flags

Description

factor1

integer

_required

The first factor to multiply.

factor2

integer

_required

The second factor to multiply.

Output Ports

Port name

Data Type

Flags

Description

product

integer

_required

Where the product will be available.

Pipefile Usage

The following sections describe the blocks needed to use this process in a pipe file.

Pipefile block

# ================================================================
process <this-proc>
  :: multiplication
# ================================================================

Process connections

The following Input ports will need to be set

# This process will consume the following input ports
connect from <this-proc>.factor1
         to   <upstream-proc>.factor1
connect from <this-proc>.factor2
         to   <upstream-proc>.factor2

The following Output ports will need to be set

# This process will produce the following output ports
connect from <this-proc>.product
         to   <downstream-proc>.product

Class Description

class multiplication_process : public sprokit::process

A process which multiplies numbers.

\process Multiplies numbers.

\iports

\iport{factor1} The first number to multiply. \iport{factor2} The second number to multiply.

\oports

\oport{product} The product.

\reqs

\req The \port{factor1}, \port{factor2}, and \port{product} ports must be connected.

Public Functions

multiplication_process(kwiver::vital::config_block_sptr const &config)

Constructor.

Parameters:

config – The configuration for the process.

~multiplication_process()

Destructor.

class priv