batch_mode_batch_workspace_interface/
workspace_interface.rs

1// ---------------- [ File: src/workspace_interface.rs ]
2crate::ix!();
3
4pub trait BatchWorkspaceInterface
5: GetInputFilenameAtIndex
6+ GetOutputFilenameAtIndex
7+ GetErrorFilenameAtIndex
8+ GetMetadataFilenameAtIndex
9+ GetDoneDirectory
10+ GetTokenExpansionPath
11+ GetFailedJsonRepairsDir
12+ GetFailedItemsDir
13+ GetTextStoragePath
14{}
15
16pub trait GetInputFilenameAtIndex {
17    fn input_filename(&self, batch_idx: &BatchIndex) -> PathBuf;
18
19}
20pub trait GetOutputFilenameAtIndex {
21    fn output_filename(&self, batch_idx: &BatchIndex) -> PathBuf;
22}
23
24pub trait GetErrorFilenameAtIndex {
25    fn error_filename(&self, batch_idx: &BatchIndex) -> PathBuf;
26}
27
28pub trait GetMetadataFilenameAtIndex {
29    fn metadata_filename(&self, batch_idx: &BatchIndex) -> PathBuf;
30}
31
32pub trait GetDoneDirectory {
33    fn get_done_directory(&self) -> &PathBuf;
34}
35
36pub trait GetTokenExpansionPath {
37    fn token_expansion_path(&self,token_name: &CamelCaseTokenWithComment) -> PathBuf;
38}
39
40pub trait GetFailedJsonRepairsDir {
41    fn failed_json_repairs_dir(&self) -> PathBuf;
42}
43
44pub trait GetFailedItemsDir {
45    fn failed_items_dir(&self) -> PathBuf;
46}
47
48pub trait GetTextStoragePath {
49    fn text_storage_path(&self, batch_idx: &BatchIndex) -> PathBuf;
50}