Spaces:
Sleeping
Sleeping
Download settings_manager.h from sok99/bigcode-starcoder2-15b: direct link, hf CLI and curl.
- Browser
- Download file 808 Bytes
-
https://huggingface.co/spaces/sok99/bigcode-starcoder2-15b/resolve/refs%2Fpr%2F1/settings_manager.h
- Command line
-
hf download hf://spaces/sok99/bigcode-starcoder2-15b@refs/pr/1/settings_manager.h
-
curl -L -o settings_manager.h https://huggingface.co/spaces/sok99/bigcode-starcoder2-15b/resolve/refs%2Fpr%2F1/settings_manager.h
808 Bytes
| class SettingsManager { | |
| private: | |
| SystemSettings settings; | |
| static const char* NAMESPACE; | |
| static const char* SETTINGS_KEY; | |
| uint32_t version; | |
| void setDefaults(); | |
| bool validateSettings(); | |
| public: | |
| SettingsManager(); | |
| void begin(); | |
| bool load(); | |
| bool save(); | |
| void reset(); | |
| SystemSettings& getSettings() { return settings; } | |
| void setSettings(const SystemSettings& newSettings); | |
| String exportToJson(); | |
| bool importFromJson(const String& json); | |
| bool saveToSD(const char* filename); | |
| bool loadFromSD(const char* filename); | |
| uint32_t getVersion() const { return version; } | |
| bool isCompatibleVersion(uint32_t version) const; | |
| }; | |