class QPanda::DRAW_TEXT_PIC::DrawQProg

Overview

draw Qprog by text More…

#include <DrawQProg.h>

class DrawQProg
{
public:
    // construction

    DrawQProg(
        QProg& prg,
        const NodeIter node_itr_start,
        const NodeIter node_itr_end,
        bool b_out_put_to_file = false
        );

    // methods

    std::string textDraw(TEXT_PIC_TYPE t, uint32_t length = 100, const std::string config_data = CONFIG_PATH);
};

Detailed Documentation

draw Qprog by text

Construction

DrawQProg(
    QProg& prg,
    const NodeIter node_itr_start,
    const NodeIter node_itr_end,
    bool b_out_put_to_file = false
    )

Constructor of DrawQProg.

Methods

std::string textDraw(
    TEXT_PIC_TYPE t,
    uint32_t length = 100,
    const std::string config_data = CONFIG_PATH
    )

Draw text-picture.

Parameters:

TEXT_PIC_TYPE

draw type

const

std::string It can be configuration file or configuration data, which can be distinguished by file suffix, so the configuration file must be end with “.json”, default is CONFIG_PATH

Returns:

std::string the text-picture

See also:

TEXT_PIC_TYPE