Class tempDB

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:

true if the database was opened successfully, false otherwise.

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:

true if the project was built successfully, false otherwise.

inline litedb &GetBuildedProject()

Gets the underlying litedb object for the built project.

Returns:

A reference to the litedb object.

tempDB() = default
~tempDB() = default

Public Members

std::string ERR = ""

deprecated Error container.