2 using System.Collections.Generic;
9 protected internal string programs;
10 private IList<string> files_paths;
11 protected internal string separator;
22 AddObjectInput(inputObj);
28 programs = initial_program;
31 public virtual void AddFilesPath(
string file_path) => files_paths.Add(file_path);
33 public virtual void AddObjectInput(
object inputObj) =>
throw new System.NotSupportedException(
"functionality not implemented");
35 public virtual void AddObjectsInput(ISet<object> inputObjs)
37 foreach (Object inputObj
in inputObjs)
38 AddObjectInput(inputObj);
41 public virtual void AddProgram(
string new_instruction)
43 if (programs.Length == 0)
44 programs = new_instruction;
46 programs += separator + new_instruction;
49 public virtual void ClearAll()
55 public virtual void ClearFilesPaths() => files_paths.Clear();
57 public virtual void ClearPrograms() => programs =
"";
59 public virtual IList<string> FilesPaths => files_paths;
61 public virtual string Programs {
get => programs;
set => this.programs = value; }
63 public virtual string Separator {
get => separator;
set => this.separator = value; }
65 public virtual string StringOfFilesPaths
69 StringBuilder to_return =
new StringBuilder();
70 foreach (String paths
in files_paths)
71 if (paths.Length != 0)
72 to_return.Append(paths).Append(
" ");
73 return to_return.ToString();
80 files_paths =
new List<string>();