-
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_dal::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_dal::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.