初始化仓库:test_123
Go to file
linianlin 04d4da3e17 修改错误 2026-05-16 13:07:25 +08:00
include 修改错误 2026-05-16 13:07:25 +08:00
src 生成代码工程 2026-05-16 12:54:48 +08:00
tests 生成代码工程 2026-05-16 12:54:48 +08:00
.gitignore Initial commit: 项目初始化 2026-05-13 10:14:36 +08:00
CMakeLists.txt 生成代码工程 2026-05-16 12:54:48 +08:00
README.md 生成代码工程 2026-05-16 12:54:48 +08:00
events.ndjson 生成代码工程 2026-05-16 12:54:48 +08:00
generation.json 生成代码工程 2026-05-16 12:54:48 +08:00

README.md

ModularApp

A modular C++17 software project demonstrating clean module separation, CMake build system, and Doxygen-style API documentation.

Features

  • Logger Module — Hierarchical log output (DEBUG / INFO / WARN / ERROR)
  • ConfigManager Module — Parse and manage key=value configuration files
  • DataManager Module — In-memory data caching and lifecycle management
  • Utils Module — String trimming, splitting, time formatting, file path helpers
  • Processor Module — Core business logic processing with dependency injection
  • Adapter Module — CLI argument parsing (--config, --help, --version)

Build & Run

# Configure
cmake -B build -DCMAKE_BUILD_TYPE=Release

# Build
cmake --build build

# Run with a config file
./build/ModularApp --config example.conf

# Show help
./build/ModularApp --help

# Show version
./build/ModularApp --version

# Run tests
./build/ModularApp_test

Project Structure

.
├── CMakeLists.txt
├── README.md
├── include/
│   ├── app.hpp              # Master header (includes all modules)
│   ├── logger.hpp
│   ├── configmanager.hpp
│   ├── datamanager.hpp
│   ├── utils.hpp
│   ├── processor.hpp
│   └── adapter.hpp
├── src/
│   ├── logger.cpp
│   ├── configmanager.cpp
│   ├── datamanager.cpp
│   ├── utils.cpp
│   ├── processor.cpp
│   ├── adapter.cpp
│   └── main.cpp
└── tests/
    └── basic_test.cpp