ExampleProducerΒΆ

class ExampleProducer : public kotekan::Stage

An example producer stage that sets each element of a buffer to a constant value.

Buffers

  • out_buf The buffer to process the contents of.

    • Format: any

    • Metadata: any

Param init_value:

Default 0. The value to set each element to.

Public Functions

ExampleProducer(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)

Constructor for the stage Note: you can use the macro STAGE_CONSTRUCTOR(ExampleProducer) if your constructor does not need additional customisation and you wish to hide the complexity.

virtual ~ExampleProducer()

Deconstructor - Called on shutdown, after main_thread has exited.

virtual void main_thread() override

Framework managed pthread.