Qt实现的C++框架:qtioccontainer

jopen 11年前

QtIOCContainer 是一个用Qt实现的C++框架 控制反转概念灵感来自于Spring框架。他使用Qt的元对象系统和插件系统来实现C++的反射机制

#ifndef SHAPE_INTERFACE_H_  #define SHAPE_INTERFACE_H_    class ShapeInterface  {  public:    // Define virtual destructor so that objects of derived classes     // can be deleted using pointer of ShapeInterface.    virtual ~ShapeInterface() {}      virtual void draw () = 0;  };    // Declare the interface.  Q_DECLARE_INTERFACE(ShapeInterface, "org.qic.test.ShapeInterface/1.0")    #endif

项目主页:http://www.open-open.com/lib/view/home/1392515030147