Code Monkey home page Code Monkey logo

dbg-census-cpp's Introduction

DbgCensus

A self-contained C++ library for the Daybreak Game Company Census API.

Important

This library is a work in progress (aka. hot mess) and is not really ready for anything. It is primarily replacing some Qt-infected jank from leonhard-s/ps2-rich-presence with leaner, more testable variants that don't require a half-dozen Qt modules to build.

Overview

  • REST and WebSocket clients for the Daybreak Game Company Census API
  • Uses IXWebSocket for HTTP, with optional OpenSSL support
  • All requests are synchronous, choose your own poison (std::thread, std::async, QThread, etc.)
  • *No JSON parsing, bring your own (nlohmann/json, rapidjson, QJsonDocument etc.)

*The dependency on nlohmann/json is only used for tests and examples, the library output is std::string-based.

Dependencies

IXWebSocket is currently always brought in via FetchContent, everything else is provided through vcpkg. Note that vcpkg is entirely optional, this project just calls CMake's ´find_package()` to locate its dependencies.

Building

This project uses CMake and can be consumed via find_package() after installation. When including in another project via FetchContent, it is recommended to set DbgCensus_INSTALL=OFF to avoid reinstalling its headers into its install tree.

mkdir build/
cmake -S . -B build/ -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build/

# Optionally install
cmake --build build/ --target install

Testing

This project uses Google Test driven by CMake's CTest. Tests can be run with the following command:

# After building
cd build/
ctest . -C Release # replace with the desired configuration

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.