# whoeverxd/sales architecture

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

- Interactive diagram: https://gitdiagram.com/whoeverxd/sales
- Repository: https://github.com/whoeverxd/sales

## Overview

This is a small, console-based real-estate sales management program. Its implemented workflow authenticates an agent, loads property records, then presents a menu; the sampled code only implements password lookup/change and property-list ordering in that menu, while several advertised sales and administration actions are placeholders. Property records are represented by Data and ordered by selling price. The README is brief, so coverage of additional capabilities comes from the menu in project.cpp; a1login.cpp and the linked-list templates appear separate from the main workflow.

Main entry points: [`project.cpp`](https://github.com/whoeverxd/sales/blob/master/project.cpp) (Sales menu), [`Property.h`](https://github.com/whoeverxd/sales/blob/master/Property.h) (Property), [`lista.h`](https://github.com/whoeverxd/sales/blob/master/lista.h) (Generic list), [`Agent.h`](https://github.com/whoeverxd/sales/blob/master/Agent.h) (Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Agent access"]
  node_agent["Agent<br/>[Agent.h]"]
  node_passwords["Credential file<br/>[passwords.in]"]
end

subgraph group_sales["Sales records"]
  node_property["Property<br/>[Property.h]"]
  node_record["Sales record<br/>[Data.h]"]
  node_app["Sales menu<br/>[project.cpp]"]
  node_recordsfile["Property data file<br/>[data.in]"]
end

subgraph group_structures["Data structures"]
  node_list["Generic list<br/>[lista.h]"]
  node_node["List node<br/>[nodo.h]"]
end

node_agentuser(("Agent"))
node_legacylogin["Standalone login utility<br/>[a1login.cpp]"]

node_agentuser -->|"enters credentials"| node_app
node_app -->|"checks credentials"| node_passwords
node_app -->|"loads records"| node_recordsfile
node_app -->|"creates records"| node_record
node_app -->|"includes model"| node_property
node_property -->|"embeds agent"| node_agent
node_app -->|"prompts menu"| node_agentuser
node_list -->|"uses nodes"| node_node

click node_agent "https://github.com/whoeverxd/sales/blob/master/Agent.h"
click node_property "https://github.com/whoeverxd/sales/blob/master/Property.h"
click node_record "https://github.com/whoeverxd/sales/blob/master/Data.h"
click node_app "https://github.com/whoeverxd/sales/blob/master/project.cpp"
click node_passwords "https://github.com/whoeverxd/sales/blob/master/passwords.in"
click node_recordsfile "https://github.com/whoeverxd/sales/blob/master/data.in"
click node_list "https://github.com/whoeverxd/sales/blob/master/lista.h"
click node_node "https://github.com/whoeverxd/sales/blob/master/nodo.h"
click node_legacylogin "https://github.com/whoeverxd/sales/blob/master/a1login.cpp"

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_agent,node_passwords toneBlue
class node_property,node_record,node_app,node_recordsfile toneAmber
class node_list,node_node toneMint
class node_agentuser toneIndigo
class node_legacylogin toneTeal
```

## Components

### Agent access

- [Agent](https://github.com/whoeverxd/sales/blob/master/Agent.h): `Agent.h`
- [Credential file](https://github.com/whoeverxd/sales/blob/master/passwords.in): `passwords.in`

### Sales records

- [Property](https://github.com/whoeverxd/sales/blob/master/Property.h): `Property.h`
- [Sales record](https://github.com/whoeverxd/sales/blob/master/Data.h): `Data.h`
- [Sales menu](https://github.com/whoeverxd/sales/blob/master/project.cpp): `project.cpp`
- [Property data file](https://github.com/whoeverxd/sales/blob/master/data.in): `data.in`

### Data structures

- [Generic list](https://github.com/whoeverxd/sales/blob/master/lista.h): `lista.h`
- [List node](https://github.com/whoeverxd/sales/blob/master/nodo.h): `nodo.h`

### Other components

- **Agent**
- [Standalone login utility](https://github.com/whoeverxd/sales/blob/master/a1login.cpp): `a1login.cpp`

## Connections

- Agent → Sales menu: enters credentials (evidence: `project.cpp`)
- Sales menu → Credential file: checks credentials (evidence: `project.cpp`)
- Sales menu → Property data file: loads records (evidence: `project.cpp`)
- Sales menu → Sales record: creates records (evidence: `project.cpp`)
- Sales menu → Property: includes model (evidence: `project.cpp`)
- Property → Agent: embeds agent (evidence: `Property.h`)
- Sales menu → Agent: prompts menu (evidence: `project.cpp`)
- Generic list → List node: uses nodes (evidence: `lista.h`)
