33 bool AddProfile(std::shared_ptr<ParserProfile> profile);
86 std::map<String, std::shared_ptr<ParserProfile>>
profiles_;
void InitializeDefaultProfilesInternal()
bool EnsureProfilesDirectoryExists()
String GetProfileFilePath(const String &profile_name) const
std::shared_ptr< ParserProfile > GetActiveProfile() const
std::shared_ptr< ParserProfile > LoadProfileFromFile(const String &filepath)
void InitializeDefaultProfiles()
String active_profile_name_
String GetProfilesDirectory() const
bool SaveProfile(const String &profile_name)
bool SetActiveProfile(const String &profile_name)
static const String GENERIC_PROFILE_NAME
ConfigManager & operator=(const ConfigManager &)=delete
std::vector< String > GetProfileNames() const
std::shared_ptr< ParserProfile > GetProfileInternal(const String &profile_name) const
bool RemoveProfile(const String &profile_name)
bool ImportProfile(const String &filepath, bool make_active=false)
String profiles_directory_
std::shared_ptr< ParserProfile > GetProfile(const String &profile_name) const
bool SaveProfilesInternal()
bool RenameProfile(const String &old_name, const String &new_name)
bool HasProfileInternal(const String &profile_name) const
bool AddProfile(std::shared_ptr< ParserProfile > profile)
static const String DEFAULT_PROFILE_NAME
std::map< String, std::shared_ptr< ParserProfile > > profiles_
bool HasProfile(const String &profile_name) const
size_t GetProfileCount() const
ConfigManager(const ConfigManager &)=delete
bool ExportProfile(const String &profile_name, const String &filepath)
String GetActiveProfileName() const
static ConfigManager & GetInstance()
Main types header for EmberCore.
std::string String
Framework-agnostic string type.