How injae/serdepp works
Main Components Identification
The system should be divided into these primary components:
a) Core Serialization Engine
• Located in include/serdepp/serde.hpp
• Includes the main serialization/deserialization logic
• Contains meta-programming utilities
b) Attribute System
• Located in include/serdepp/attribute/
• Handles various serialization attributes
• Supports custom attribute creation
c) Adaptor Layer
• Located in include/serdepp/adaptor/
• Supports multiple format adaptors (JSON, YAML, TOML, etc.)
• Provides format-specific implementations
Component Relationships
[Client Code]
• ↓
[Serde Core Engine] ←→ [Attribute System]
• ↓
[Adaptor Layer]
• ↓
[Format Libraries]
Detailed Component Breakdown
a) Core Engine (Center):
• Serializer interface
• Deserializer interface
• Type reflection system
• Meta-programming utilities
b) Attribute System (Right Side):
• Default attributes
• Value/Struct handlers
• Custom attribute support
• Container attributes
c) Adaptor Layer (Bottom):
• JSON adaptors (nlohmann, rapidjson)
• YAML adaptor (yaml-cpp)
• TOML adaptor (toml11)
• FMT adaptor
• Stream adaptor
Data Flow Representation
• Blue: Serialization flow (Object → Format)
• Green: Deserialization flow (Format → Object)
• Gray: Internal communication
[Format Support]
• RapidJSON
• nlohmann::json
• YAML-cpp
• toml11
• fmt
[Core Features]
• Struct/Class Support
• Nested Types
• Enum Support
• Container Support
• Variant Support
• Pointer Support
Implementation Details
Relationship between:
• Serialization contexts
• Type traits
• Attribute processors
• Format adaptors