Giter Club home page Giter Club logo

magic's Introduction

Magic

Magic [v2.0.0] 正式发布.

简介

​ Use Standard C++ 11 && CMake.

​ 基于IoC的快速开发库(C++ Rapid development library based on Inversion of Control),配合CMake构建套件开发,支持跨平台开发,并配备了更多的高性能组件.

特点

快速开发

  • 高内聚,低耦合.
  • 超强的通用性以及高度跨平台.
  • 实现模块化开发方式便于协作开发.
  • 基于 IoC (Inversion of Control)的方式对每个类进行托管以及自动注入构建.

模块配置

  • 功能模块可高度重用,方便扩展以及维护.
  • 使用Json格式配置文件(*.magic)对功能进行模块划分.

非侵入式

  • 高度解耦
  • 代码移植度高.
  • 无任何侵入式代码.

本库特性

组件: 类Log4j日志线程NetWork网路、Http协议Web服务数据库高性能网络连接池高性能数据库连接池高性能TimingWheel定时轮 等等

Config配置组件的使用用方法.

    /// 支持自定义扩展.
    /// 目前只支持基础类型和std::string.
    /// 未修改生成的配置文件的情况下,会使用at函数的第二个参数作为默认值.
    uint64_t number = config->at<uint64_t>("number", 24);

Log日志组件的使用方法.

    /// 类 Log4j 日志库.
    /// 五种日志打印级别.
    /// 可通过配置中LogLevel调整日志输出等级.
    MAGIC_INFO() << "hello world";
    MAGIC_WARN() << "hello world";
    MAGIC_DEBUG() << "hello world";
    MAGIC_ERROR() << "hello world";
    MAGIC_FATAL() << "hello world";

.....

其他

代码规范/联系方式

magic's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.