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

断点:互联网进化启示录

断点:互联网进化启示录

[美]杰夫·斯蒂贝尔 / 师蓉 / 中国人民大学出版社有限公司 / 2014-11-1 / CNY 49.00

一部神经学、生物学与互联网技术大融合的互联网进化史诗巨著。 我们正置身网络革命中。互联网的每一丝变化都与你我息息相关。当科技变得无处不在时,它就会改变你我。在《断点》一书中,大脑科学家和企业家杰夫·斯蒂贝尔将带领读者来到大脑、生物与技术的交汇处,向读者展示生物学和神经学是如何与互联网技术发生联系的;我们是如何通过生物学上的前车之鉴,来预测互联网的发展的;互联网在经历增长、断点和平衡后又会发生......一起来看看 《断点:互联网进化启示录》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试