id: blocks_transcendental
label: Transcendental
flags: [ python, cpp ]

parameters:
-   id: type
    label: Type
    dtype: enum
    options: [complex_float, float]
    option_labels: [Complex, Float]
    option_attributes:
        type: [complex, float]
    hide: part
-   id: name
    label: Function Name
    dtype: string
    default: cos

inputs:
-   domain: stream
    dtype: ${ type.type }

outputs:
-   domain: stream
    dtype: ${ type.type }

templates:
    imports: from gnuradio import blocks
    make: blocks.transcendental(${name}, "${type}")

cpp_templates:
    includes: ['#include <gnuradio/blocks/transcendental.h>']
    declarations: 'blocks::transcendental::sptr ${id};'
    make: 'this->${id} = blocks::transcendental::make(${name}, "$type");'

file_format: 1
