-
Notifications
You must be signed in to change notification settings - Fork 0
Home
EHM DAL is an unofficial data abstraction layer for Eastside Hockey Manger 1 databases and saved games which you can integrate into your own Qt/C++ projects. EHM DAL provides a library of functions which enable an EHM database or saved game to be loaded and parsed without needing to code any of your own file i/o functions or any database structures. Parsing a database or saved game is as simple as integrating the EHM DAL library into your Qt/C++ project and then adding the following code:
// The following code will open and process a database
auto db{ehm_db::Database()};
db.read("C:\\Program Files (x86)\\Steam\\steamapps\\common\\Eastside Hockey Manager\\data\\database\\database.db");
// The following code will open and process a saved game
auto sav{ehm_sav::SavedGame()};
sav.read("C:\\Users\\archibalduk\\Documents\\Sports Interactive\\EHM\\games\\Test.sav");
EHM DAL's database table classes inherit from QAbstractTableModel and is therefore compatible Qt's model/view architecture. This means that database tables can be easily assigned to Qt's view widgets such as QTableView.
Data can be accessed using QModelIndex or EHM DAL's Pointer class.
- Read-only access to the EHM database and saved games;
- Access binary data for each saved game table for parsing by the user's own code;
- Various search functions for searching and filtering data; and
- Export custom spreadsheets to csv or xlsx format.
- No editing is currently possible (limited editing is planned for a future release);
- No access to playable league-related structures; and
- Few details of EHM saved game tables are known and will therefore require the user to figure out the structure and implement their own code.