change error system & function signatures
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
ee85c53354
commit
e17e346768
28 changed files with 633 additions and 651 deletions
|
|
@ -8,27 +8,14 @@
|
|||
#include <objects/properties/property.hpp>
|
||||
#include <objects/properties/text_property.hpp>
|
||||
#include <objects/properties/toggle_property.hpp>
|
||||
#include <persistence/function_context.hpp>
|
||||
|
||||
auto IkarusProject::get_name() const -> std::string_view {
|
||||
return _name;
|
||||
}
|
||||
|
||||
auto IkarusProject::get_path() const -> std::filesystem::path const & {
|
||||
return _path;
|
||||
}
|
||||
|
||||
auto IkarusProject::get_db() -> sqlitecpp::Connection * {
|
||||
return _db.get();
|
||||
}
|
||||
|
||||
auto IkarusProject::get_db() const -> sqlitecpp::Connection const * {
|
||||
return _db.get();
|
||||
}
|
||||
|
||||
auto IkarusProject::get_function_context() -> IkarusFunctionContext * {
|
||||
return &_function_contexts.emplace_back(this);
|
||||
}
|
||||
IkarusProject::IkarusProject(std::string_view name, std::filesystem::path path):
|
||||
name{name},
|
||||
path{path},
|
||||
db{nullptr},
|
||||
_blueprints{},
|
||||
_properties{},
|
||||
_entities{} {}
|
||||
|
||||
IkarusBlueprint * IkarusProject::get_blueprint(IkarusId id) {
|
||||
return get_cached_object<IkarusBlueprint>(id, this->_blueprints);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue