16 ScaleManager(
const std::string& batteryPath,
const std::string& workspacePath =
"");
23 std::shared_ptr<ScaleDefinition>
CreateScale(
const std::string& code);
26 std::shared_ptr<ScaleDefinition>
LoadScale(
const std::string& code);
29 bool SaveScale(std::shared_ptr<ScaleDefinition> scale);
38 std::shared_ptr<ScaleDefinition>
ImportFromFile(
const std::string& filePath);
51 std::shared_ptr<ScaleDefinition>
InstallLooseOSD(
const std::string& osdPath);
55 std::string
GetOSDPath(
const std::string& code)
const;
56 std::string
GetTranslationPath(
const std::string& code,
const std::string& lang)
const;
63 std::string
GetScalesPath()
const {
return mWorkspaceScalesPath.empty() ? mBatteryScalesPath : mWorkspaceScalesPath; }
64 std::string
GetDefinitionsPath()
const {
return mWorkspaceDefinitionsPath.empty() ? mBatteryDefinitionsPath : mWorkspaceDefinitionsPath; }
82 const std::string& workspaceStudiesPath,
83 const std::string& studyName =
"");
87 const std::string& studyPath);
90 void EnsureDirectoriesExist();
91 std::vector<std::string> GetTranslationFiles(
const std::string& code)
const;
92 std::vector<std::string> GetTranslationFilesFromPath(
const std::string& code,
const std::string& translationsPath)
const;
93 bool ScaleExistsInPath(
const std::string& code,
const std::string& definitionsPath)
const;
96 bool GenerateScreenshot(
const std::string& scaleCode,
const std::string& testPath);
102 bool GenerateSchemaFiles(
const ScaleDefinition& scale,
const std::string& testPath);
104 std::string mBatteryPath;
105 std::string mWorkspacePath;
108 std::string mBatteryScalesPath;
109 std::string mBatteryDefinitionsPath;
112 std::string mWorkspaceScalesPath;
113 std::string mWorkspaceDefinitionsPath;