-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourcePathConstants.cs
More file actions
170 lines (140 loc) · 5.22 KB
/
ResourcePathConstants.cs
File metadata and controls
170 lines (140 loc) · 5.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
namespace S7Tools.Core.Constants
{
/// <summary>
/// Constants for application resource paths to avoid hardcoded strings
/// </summary>
public static class ResourcePaths
{
/// <summary>
/// Root folder name for all application resources
/// </summary>
public const string ResourcesFolder = "Resources";
/// <summary>
/// Folder name for application settings
/// </summary>
public const string AppSettingsFolder = "AppSettings";
/// <summary>
/// File name for application settings JSON file
/// </summary>
public const string AppSettingsFile = "AppSettings.json";
/// <summary>
/// Folder name for all profile types
/// </summary>
public const string ProfilesFolder = "Profiles";
/// <summary>
/// Folder name for serial communication profiles
/// </summary>
public const string SerialFolder = "Serial";
/// <summary>
/// File name for serial profiles JSON file
/// </summary>
public const string SerialProfilesFile = "SerialProfiles.json";
/// <summary>
/// Folder name for socat profiles
/// </summary>
public const string SocatFolder = "Socat";
/// <summary>
/// File name for socat profiles JSON file
/// </summary>
public const string SocatProfilesFile = "SocatProfiles.json";
/// <summary>
/// Folder name for power supply profiles
/// </summary>
public const string PowerSupplyFolder = "PowerSupply";
/// <summary>
/// File name for power supply profiles JSON file
/// </summary>
public const string PowerSupplyProfilesFile = "PowerSupplyProfiles.json";
/// <summary>
/// Folder name for memory region profiles
/// </summary>
public const string MemoryRegionFolder = "MemoryRegion";
/// <summary>
/// Legacy folder name for memory region profiles used by previous versions.
/// Keep for backward compatibility when probing or migrating existing profiles.
/// </summary>
public const string LegacyMemoryRegionsFolder = "MemoryRegions";
/// <summary>
/// File name for memory region profiles JSON file
/// </summary>
public const string MemoryRegionProfilesFile = "MemoryRegionProfiles.json";
/// <summary>
/// Folder name for all log files
/// </summary>
public const string LogsFolder = "Logs";
/// <summary>
/// Folder name for main application logs
/// </summary>
public const string MainLogsFolder = "Main";
/// <summary>
/// Folder name for exported log files
/// </summary>
public const string ExportedLogsFolder = "Exported";
/// <summary>
/// Folder name for CSV exported logs
/// </summary>
public const string CsvLogsFolder = "CSV";
/// <summary>
/// Folder name for TXT exported logs
/// </summary>
public const string TxtLogsFolder = "TXT";
/// <summary>
/// Folder name for JSON exported logs
/// </summary>
public const string JsonLogsFolder = "JSON";
/// <summary>
/// File name pattern for main log files with timestamp and rolling number placeholders
/// </summary>
public const string MainLogFilePattern = "MainLog_{0}_{1}.json";
/// <summary>
/// File name pattern for exported log files with timestamp and extension placeholders
/// </summary>
public const string ExportedLogFilePattern = "s7tools_logs_{0}.{1}";
/// <summary>
/// Folder name for job definitions
/// </summary>
public const string JobsFolder = "Jobs";
/// <summary>
/// File name for jobs JSON file
/// </summary>
public const string JobsFile = "Jobs.json";
/// <summary>
/// Folder name for task definitions
/// </summary>
public const string TasksFolder = "Tasks";
/// <summary>
/// File name for tasks JSON file
/// </summary>
public const string TasksFile = "Tasks.json";
/// <summary>
/// Folder name for payload files
/// </summary>
public const string PayloadsFolder = "Payloads";
/// <summary>
/// Folder name for memory dump files
/// </summary>
public const string DumpsFolder = "Dumps";
}
/// <summary>
/// Constants for timestamp and file naming
/// </summary>
public static class FileNaming
{
/// <summary>
/// Standard timestamp format for file names
/// </summary>
public const string TimestampFormat = "yyyyMMdd_HHmmss";
/// <summary>
/// CSV file extension without period
/// </summary>
public const string CsvExtension = "csv";
/// <summary>
/// Text file extension without period
/// </summary>
public const string TxtExtension = "txt";
/// <summary>
/// JSON file extension without period
/// </summary>
public const string JsonExtension = "json";
}
}