Class SettingsReaderJson
Reader of settings files
Inheritance
Implements
Namespace: BuildSystem.SettingsReader.Json
Assembly: BuildSystem.Factories.dll
Syntax
public class SettingsReaderJson : Object, ISettingsReader
Constructors
SettingsReaderJson(ILogger?)
Reader of settings files
Declaration
public SettingsReaderJson(ILogger? logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Fields
KeyObjectProjectList
Key in input .json file with properties for managing list of projects
Declaration
public const string KeyObjectProjectList = "object_project_list"
Field Value
Type | Description |
---|---|
string |
KeyObjects
Key in input .json file with list of manager objects
Declaration
public const string KeyObjects = "objects"
Field Value
Type | Description |
---|---|
string |
KeyProjects
Key in input .json file with list of projects
Declaration
public const string KeyProjects = "projects"
Field Value
Type | Description |
---|---|
string |
KeyVariants
Key in input .json file with list of variants
Declaration
public const string KeyVariants = "variants"
Field Value
Type | Description |
---|---|
string |
Properties
ManagerNames
Accordance between specified object type + variant and object name
Declaration
public ListManagerNameForVariant ManagerNames { get; set; }
Property Value
Type | Description |
---|---|
ListManagerNameForVariant |
ManagerProps
List of properties for manager objects
Declaration
public List<IManagerProp> ManagerProps { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<><IManagerProp> |
ProjectListProps
Properties - how to manage over list of projects
Declaration
public IProjectListProps? ProjectListProps { get; set; }
Property Value
Type | Description |
---|---|
IProjectListProps |
Projects
List of paths to project settings files. Later string may be replaced to object, when we create new readers of project settings files
Declaration
public HashSet<string> Projects { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<><string> |
ReaderJson
Reader for json files with replacing by some variables / defines, which defined in current settings
Declaration
public ReaderJson ReaderJson { get; set; }
Property Value
Type | Description |
---|---|
ReaderJson |
TypeSuffixes
List of possible suffixes when calling creating objects methods. We can search for "cleaner" and then for "cleaner_delphi". It is important that first of all we search with suffixes and only then without them
Declaration
public List<string> TypeSuffixes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<><string> |
Variants
List of variants as groups of build session params
Declaration
public VariantList Variants { get; set; }
Property Value
Type | Description |
---|---|
VariantList |
Methods
FindManagerType(string)
Search manager types to find one that is suitable for the given class name
Declaration
public static ManagerType FindManagerType(string className)
Parameters
Type | Name | Description |
---|---|---|
string | className |
Returns
Type | Description |
---|---|
ManagerType |
Update(object, List<string>)
Update self properties by reading list of files
Declaration
public void Update(object updateInfo, List<string> suffixes)
Parameters
Type | Name | Description |
---|---|---|
object | updateInfo | Array of paths to files with properties |
System.Collections.Generic.List<><string> | suffixes | Updating list of TypeSuffixes |