Configuration

Input Ports

There are no input ports for this process.

Output Ports

Pipefile Usage

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

Pipefile block

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

Process connections

The following Input ports will need to be set

# There are no input port's for this process

The following Output ports will need to be set

# This process will produce the following output ports

Class Description

class input_adapter_process : public sprokit::process, public kwiver::adapter::adapter_base

Generic input adapter process.

This process is a generic source process in a pipeline. It takes input values from an external source and feeds them into the specified ports of the pipeline. The name of the pipeline ports are discovered dynamically as they are configured.

The main processing loop (_step()) takes sets of data from the input queue connected to the application side input_adapter object. The elements in a data set are sent to the named output port.

\oports

\oport{various} Output ports are created dynamically based on pipeline connections.

Public Functions

virtual void _step() override

Method where subclass data processing occurs.

In general, a process’ _step() method will involve:

  • Obtaining data from the input edges.

  • Running the algorithm.

  • Pushing data out via the output edges.

virtual adapter::ports_info_t get_ports()

Return list of active ports.

This method returns the list of currently active ports and associated port info items.

Returns:

List of port names and info.