-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigFile.cs
37 lines (36 loc) · 1.17 KB
/
ConfigFile.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace SingleHeaderLibBuilder
{
/// <summary>
/// Manages configuration options
/// </summary>
[JsonSerializable(typeof(ConfigFile))]
internal class ConfigFile
{
/// <summary>
/// File which contains a disclaimer to put at the top of the file output
/// </summary>
[JsonPropertyName("disclaimer")]
public string Disclaimer { get; set; } = string.Empty;
/// <summary>
/// C++ code file where the user references all initial code files to iterate
/// </summary>
[JsonPropertyName("include")]
public string Include { get; set; } = string.Empty;
/// <summary>
/// Relative output file path
/// </summary>
[JsonPropertyName("output")]
public string Output { get; set; } = String.Empty;
/// <summary>
/// What line terminator the writer should use
/// </summary>
[JsonPropertyName("lineterminator")]
public string LineTerminator { get; set; } = "\n";
}
}