Class tempDB
Defined in File tempDB.hpp
Class Documentation
-
class tempDB
A temporary database for managing project data.
This class provides a temporary database to store and manage project data during the editing and rendering process.
Public Functions
-
bool Open(const fs::path &projectRoot)
Opens the temporary database at the specified project root.
- Parameters:
projectRoot – The root directory of the project.
- Returns:
trueif the database was opened successfully,falseotherwise.
-
bool BuildProject(trackdata &td, std::vector<musdata> &mds)
Builds a project in the temporary database.
- Parameters:
td – The track data for the project.
mds – A vector of music data for the project.
- Returns:
trueif the project was built successfully,falseotherwise.
-
inline litedb &GetBuildedProject()
Gets the underlying
litedbobject for the built project.- Returns:
A reference to the
litedbobject.
-
tempDB() = default
-
~tempDB() = default
Public Members
-
std::string ERR = ""
deprecated Error container.
-
bool Open(const fs::path &projectRoot)