id: zeromq_pull_msg_source
label: ZMQ PULL Message Source
category: '[Core]/ZeroMQ Interfaces'
flags: [python, cpp]

parameters:
-   id: address
    label: Address
    dtype: string
-   id: timeout
    label: Timeout (msec)
    dtype: float
    default: '100'
-   id: bind
    category: Advanced
    label: Bind
    dtype: bool
    default: 'False'
    hide: part

outputs:
-   domain: message
    id: out
    optional: true

templates:
    imports: from gnuradio import zeromq
    make: zeromq.pull_msg_source(${address}, ${timeout}, ${bind})

cpp_templates:
    includes: [ '#include <gnuradio/zeromq/pull_msg_source.h>' ]
    declarations: gr::zeromq::pull_msg_source::sptr ${id};
    make: this->${id} = gr::zeromq::pull_msg_source::make(const_cast<char *>(${address}${'.c_str())' if str(address)[0] not in '"\'' else ')'}, ${timeout});
    link: ['gnuradio::gnuradio-zeromq']      

file_format: 1
