Prerequisites
Before you begin, ensure you have:- C++26-compatible compiler (Clang 17+, GCC 13+, or MSVC 19.36+)
- Meson build system (1.1+)
- Basic understanding of modern C++ features
Including the library
Draconis++ uses a modular header structure. Include only what you need:Type system
Draconis++ uses custom type aliases for better expressiveness and consistency:Error handling with Result types
Draconis++ usesResult<T> (equivalent to std::expected) for error handling instead of exceptions:
Pattern matching on results
Use conditional checks for clean error handling:Working with the cache manager
TheCacheManager optimizes repeated queries by caching results:
Querying system information
All system query functions follow the same pattern:Querying package counts
Get installed package counts from system package managers:Working with network interfaces
Query network interface information:Querying display information
Get information about connected displays:Creating helper functions
Build reusable abstractions over the library:Next steps
- Explore advanced patterns for complex scenarios
- Learn how to develop plugins
- Review the API reference for all available functions
- Check platform implementations for OS-specific details