# axelmonc/2ccpp_project architecture

> Architecture diagram of the GitHub repository axelmonc/2ccpp_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/axelmonc/2ccpp_project
- Repository: https://github.com/axelmonc/2ccpp_project

## Overview

This is a French-language cultural-venue programme manager. An operator uses the console menu to view or search events, book seats, administer rooms and events, inspect statistics, and save changes; startup reloads the programme file when present. Venue owns the rooms and scheduled events, validating room capacity and schedule conflicts and providing booking and reporting operations. Event subclasses represent concerts, plays, screenings, and workshops. The source excerpts show the console, venue logic, and persistence dispatch; other relationships are included only where documented or evidenced by the source index.

Main entry points: [`src/main.cpp`](https://github.com/axelmonc/2ccpp_project/blob/main/src/main.cpp) (Console menu), [`src/DataManager.cpp`](https://github.com/axelmonc/2ccpp_project/blob/main/src/DataManager.cpp) (Load and save), [`src/Venue.cpp`](https://github.com/axelmonc/2ccpp_project/blob/main/src/Venue.cpp) (Venue management), [`src/Concert.cpp`](https://github.com/axelmonc/2ccpp_project/blob/main/src/Concert.cpp) (Concert)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Operator interface"]
  node_console["Console menu<br/>[main.cpp]"]
end

subgraph group_domain["Venue domain"]
  node_venue["Venue management<br/>[Venue.cpp]"]
  node_room["Room<br/>[Room.cpp]"]
  node_event["Event rules<br/>[Event.cpp]"]
end

subgraph group_types["Event types"]
  node_concert["Concert<br/>[Concert.cpp]"]
  node_play["Play<br/>[Play.cpp]"]
  node_screening["Screening<br/>[Screening.cpp]"]
  node_workshop["Workshop<br/>[Workshop.cpp]"]
end

subgraph group_persistence["Programme persistence"]
  node_persistence["Load and save<br/>[DataManager.cpp]"]
  node_programme[("programme.txt<br/>[programme.txt]")]
end

subgraph group_reporting["Statistics"]
  node_analytics["Generic statistics<br/>[Analytics.hpp]"]
end

node_operator(("Operator"))

node_operator -->|"uses menu"| node_console
node_console -->|"queries and updates"| node_venue
node_console -->|"loads and saves"| node_persistence
node_console -->|"calculates statistics"| node_analytics
node_console -->|"constructs"| node_concert
node_console -->|"constructs"| node_play
node_console -->|"constructs"| node_screening
node_console -->|"constructs"| node_workshop
node_venue -->|"checks room"| node_room
node_venue -->|"manages events"| node_event
node_persistence -->|"builds and reads"| node_venue
node_persistence -->|"reads and writes"| node_programme
node_persistence -->|"dispatches records"| node_concert
node_persistence -->|"dispatches records"| node_play
node_persistence -->|"dispatches records"| node_screening
node_persistence -->|"dispatches records"| node_workshop

click node_console "https://github.com/axelmonc/2ccpp_project/blob/main/src/main.cpp"
click node_venue "https://github.com/axelmonc/2ccpp_project/blob/main/src/Venue.cpp"
click node_room "https://github.com/axelmonc/2ccpp_project/blob/main/src/Room.cpp"
click node_event "https://github.com/axelmonc/2ccpp_project/blob/main/src/Event.cpp"
click node_concert "https://github.com/axelmonc/2ccpp_project/blob/main/src/Concert.cpp"
click node_play "https://github.com/axelmonc/2ccpp_project/blob/main/src/Play.cpp"
click node_screening "https://github.com/axelmonc/2ccpp_project/blob/main/src/Screening.cpp"
click node_workshop "https://github.com/axelmonc/2ccpp_project/blob/main/src/Workshop.cpp"
click node_persistence "https://github.com/axelmonc/2ccpp_project/blob/main/src/DataManager.cpp"
click node_programme "https://github.com/axelmonc/2ccpp_project/blob/main/programme.txt"
click node_analytics "https://github.com/axelmonc/2ccpp_project/blob/main/include/Analytics.hpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_console toneBlue
class node_venue,node_room,node_event toneAmber
class node_concert,node_play,node_screening,node_workshop toneMint
class node_persistence,node_programme toneRose
class node_analytics,node_operator toneIndigo
```

## Components

### Operator interface

- [Console menu](https://github.com/axelmonc/2ccpp_project/blob/main/src/main.cpp): `src/main.cpp`

### Venue domain

- [Venue management](https://github.com/axelmonc/2ccpp_project/blob/main/src/Venue.cpp): `src/Venue.cpp`
- [Room](https://github.com/axelmonc/2ccpp_project/blob/main/src/Room.cpp): `src/Room.cpp`
- [Event rules](https://github.com/axelmonc/2ccpp_project/blob/main/src/Event.cpp): `src/Event.cpp`

### Event types

- [Concert](https://github.com/axelmonc/2ccpp_project/blob/main/src/Concert.cpp): `src/Concert.cpp`
- [Play](https://github.com/axelmonc/2ccpp_project/blob/main/src/Play.cpp): `src/Play.cpp`
- [Screening](https://github.com/axelmonc/2ccpp_project/blob/main/src/Screening.cpp): `src/Screening.cpp`
- [Workshop](https://github.com/axelmonc/2ccpp_project/blob/main/src/Workshop.cpp): `src/Workshop.cpp`

### Programme persistence

- [Load and save](https://github.com/axelmonc/2ccpp_project/blob/main/src/DataManager.cpp): `src/DataManager.cpp`
- [programme.txt](https://github.com/axelmonc/2ccpp_project/blob/main/programme.txt): `programme.txt`

### Statistics

- [Generic statistics](https://github.com/axelmonc/2ccpp_project/blob/main/include/Analytics.hpp): `include/Analytics.hpp`

### Other components

- **Operator**

## Connections

- Operator → Console menu: uses menu (evidence: `src/main.cpp`)
- Console menu → Venue management: queries and updates (evidence: `src/main.cpp`)
- Console menu → Load and save: loads and saves (evidence: `src/main.cpp`)
- Console menu → Generic statistics: calculates statistics (evidence: `src/main.cpp`)
- Console menu → Concert: constructs (evidence: `src/main.cpp`)
- Console menu → Play: constructs (evidence: `src/main.cpp`)
- Console menu → Screening: constructs (evidence: `src/main.cpp`)
- Console menu → Workshop: constructs (evidence: `src/main.cpp`)
- Venue management → Room: checks room (evidence: `src/Venue.cpp`)
- Venue management → Event rules: manages events (evidence: `src/Venue.cpp`)
- Load and save → Venue management: builds and reads (evidence: `src/DataManager.cpp`)
- Load and save → programme.txt: reads and writes (evidence: `src/DataManager.cpp`)
- Load and save → Concert: dispatches records (evidence: `src/DataManager.cpp`)
- Load and save → Play: dispatches records (evidence: `src/DataManager.cpp`)
- Load and save → Screening: dispatches records (evidence: `src/DataManager.cpp`)
- Load and save → Workshop: dispatches records (evidence: `src/DataManager.cpp`)
