WiiUPluginLoaderBackend/source/utils/storage/StorageItemRoot.h

30 lines
609 B
C
Raw Normal View History

2023-10-07 22:38:27 +02:00
#pragma once
#include "StorageItem.h"
#include "StorageSubItem.h"
#include "utils/logger.h"
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include <wups/storage.h>
class StorageItemRoot : public StorageSubItem {
public:
2023-12-16 12:44:20 +01:00
explicit StorageItemRoot(std::string_view plugin_name) : StorageSubItem(plugin_name), mPluginName(plugin_name) {
2023-10-07 22:38:27 +02:00
}
[[nodiscard]] const std::string &getPluginId() const {
return mPluginName;
}
2023-12-16 12:44:20 +01:00
void wipe() {
mSubCategories.clear();
mItems.clear();
}
2023-10-07 22:38:27 +02:00
private:
std::string mPluginName;
};