#ifndef DATABASE_MANAGER_H #define DATABASE_MANAGER_H #include "core/reference.h" #include "core/ustring.h" #include "core/object.h" class Database; class DatabaseManager : public Object { GDCLASS(DatabaseManager, Object); public: Ref get_ddb(); void set_ddb(const Ref &db); void load(); static DatabaseManager *get_singleton(); DatabaseManager(); ~DatabaseManager(); protected: Vector> _databases; Ref _ddb; private: static DatabaseManager *_instance; }; #endif