C++ 应用框架 Softbloks

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 22:28:55

软件介绍

Softbloks 是一款免费的跨平台的应用框架,为开发者提供一个有效的开发模式,自下而上或者自上而下,提高开发效率。

示例代码:

class MainObject : public sb::AbstractSoft
{
    public:
    MainObject()
    {
        // 1) register the property Qt.mainview in read-only mode
        // - the method get_widget is passed as reading accessor (std::bind is
        //   used to convert the method into a std::function bound to this)
        // - empty value (nullptr) is passed as writing accessor
        this->register_property<QWidget*>(
            "Qt.mainview",
            sb::READ_ONLY,
            std::bind(&MySoft::get_widget, this),
            nullptr
        );
    }
    QWidget* get_widget()
    {
        return new QLabel("Hello World!!!");
    }
};
SB_DECLARE_CLASS(
    MainObject,
    "MainObject",
    sb::AbstractSoft
)
// 2) declare the properties of the class
SB_DECLARE_PROPERTIES(
    MainObject,
    {"Qt.mainview", {typeid(QWidget*), sb::READ_ONLY}}
)
SB_DECLARE_MODULE(/*a description should go here*/)
{
    sb::register_object<MainObject>();
}

本文地址:https://codercto.com/soft/d/12382.html

Large-Scale Inference

Large-Scale Inference

Bradley Efron / Cambridge University Press / 2010-8-5 / GBP 48.00

We live in a new age for statistical inference, where modern scientific technology such as microarrays and fMRI machines routinely produce thousands and sometimes millions of parallel data sets, each ......一起来看看 《Large-Scale Inference》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具