d6e95abf72
Changes: - Added SharedMemory module for file-backed memory-mapped storage - Added MappingInfo, FileHeader, RecordState and TrackedRecord infrastructure - Replaced CSV-based serialization with binary struct serialization - Added DataStore initialization and shutdown lifecycle management - Added datastore mutex synchronization for multi-process access - Added shared-memory mapping configuration for all datastore entities - Added generic loadRecords and saveRecords template infrastructure - Added automatic datastore directory creation and .dat file storage - Updated configuration to use binary datastore files and initial capacities - Added enum underlying types for serialization compatibility - Added password masking support for login, registration and password change flows - Added Visual Studio project configuration for shared-memory components - Added datastore-owned record caches for runtime object management - Updated datastore APIs to return cached tracked-record collections by reference - Added generic cache refresh and cleanup infrastructure - Updated save operations to persist datastore caches directly - Added automatic cache cleanup during datastore destruction - Prepared datastore for multi-process shared-memory persistence
46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
/*
|
|
File: Config.h
|
|
Description: Header file declaring configuration constants for the Vehicle Service System.
|
|
Includes default admin account details such as username, name, password,
|
|
email, and phone number.
|
|
Author: Trenser
|
|
Date: 21-May-2026
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace config
|
|
{
|
|
namespace admin
|
|
{
|
|
constexpr const char* DEFAULT_ADMIN_USERNAME = "admin";
|
|
constexpr const char* DEFAULT_ADMIN_NAME = "admin";
|
|
constexpr const char* DEFAULT_ADMIN_PASSWORD = "admin";
|
|
constexpr const char* DEFAULT_ADMIN_EMAIL = "admin@vss";
|
|
constexpr const char* DEFAULT_ADMIN_PHONE = "0000000000";
|
|
}
|
|
|
|
namespace threshold
|
|
{
|
|
constexpr int INVENTORY_LOW_STOCK_THRESHOLD = 5;
|
|
constexpr int PAYMENT_REMINDER_THRESHOLD_HOURS = 168;
|
|
}
|
|
|
|
namespace file
|
|
{
|
|
const size_t INITIAL_CAPACITY = 100;
|
|
constexpr const char* DIRECTORY = "files/";
|
|
constexpr const char* INVENTORYITEM_FILE = "files/InventoryItem.dat";
|
|
constexpr const char* USER_FILE = "files/User.dat";
|
|
constexpr const char* NOTIFICATION_FILE = "files/Notification.dat";
|
|
constexpr const char* SERVICE_FILE = "files/Service.dat";
|
|
constexpr const char* COMBOPACKAGE_FILE = "files/ComboPackage.dat";
|
|
constexpr const char* SERVICEBOOKING_FILE = "files/ServiceBooking.dat";
|
|
constexpr const char* JOBCARD_FILE = "files/JobCard.dat";
|
|
constexpr const char* INVOICE_FILE = "files/Invoice.dat";
|
|
constexpr const char* SERVICEMANAGEMENTOBSERVERS = "files/ServiceManagementObservers.dat";
|
|
constexpr const char* PAYMENTMANAGEMENTOBSERVERS = "files/PaymentManagementObservers.dat";
|
|
constexpr const char* INVENTORYMANAGEMENTOBSERVERS = "files/InventoryManagementObservers.dat";
|
|
}
|
|
}
|