-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Core.IO.Classes
Represents an archive container for storing serialized data.
public class Archive<TSerializableObject> : DiGi.Core.Classes.SerializableObject, DiGi.Core.IO.Interfaces.IArchive, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Core.IO.Interfaces.IIOObject
where TSerializableObject : DiGi.Core.Interfaces.ISerializableObjectTSerializableObject
The type of object that can be serialized within the archive.
Inheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → Archive<TSerializableObject>
Implements DiGi.Core.IO.Interfaces.IArchive, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IObject, DiGi.Core.IO.Interfaces.IIOObject
Initializes a new instance of the Archive<TSerializableObject> class using the specified byte array.
public Archive(byte[] bytes);bytes System.Byte[]
The byte array to use for initialization.
Initializes a new instance of the Archive<TSerializableObject> class by copying an existing generic archive.
public Archive(DiGi.Core.IO.Classes.Archive<TSerializableObject> archive);archive DiGi.Core.IO.Classes.Archive<TSerializableObject>
The generic archive to copy from.
Initializes a new instance of the Archive<TSerializableObject> class using the specified JSON object.
public Archive(System.Text.Json.Nodes.JsonObject? jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object to use for initialization.
Gets or sets the raw bytes contained within the archive.
public byte[]? Bytes { get; }Implements Bytes
Provides a filter for selecting files based on a name and a set of extensions.
public sealed class FileFilter : DiGi.Core.Classes.SerializableObject, DiGi.Core.IO.Interfaces.IIOObject, DiGi.Core.Interfaces.IObjectInheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → FileFilter
Implements DiGi.Core.IO.Interfaces.IIOObject, DiGi.Core.Interfaces.IObject
Initializes a new instance of the FileFilter class by copying an existing filter.
public FileFilter(DiGi.Core.IO.Classes.FileFilter? fileFilter);fileFilter FileFilter
The existing filter to copy.
Initializes a new instance of the FileFilter class with a specified name and extensions.
public FileFilter(string? name, System.Collections.Generic.IEnumerable<string>? extensions);name System.String
The name of the filter.
extensions System.Collections.Generic.IEnumerable<System.String>
The collection of file extensions associated with the filter.
Initializes a new instance of the FileFilter class using the specified JSON object.
public FileFilter(System.Text.Json.Nodes.JsonObject? jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object to use for initialization.
Gets or sets the list of file extensions associated with this filter.
public System.Collections.Generic.List<string>? Extensions { get; }System.Collections.Generic.List<System.String>
Gets or sets the descriptive name of the file filter.
public string? Name { get; }Creates a copy of the current object.
public override DiGi.Core.Interfaces.ISerializableObject? Clone();Implements Clone()
DiGi.Core.Interfaces.ISerializableObject
A new instance of the current object containing a copy of its data.
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj);obj System.Object
The object to compare with the current object.
System.Boolean
True if the specified object is equal to the current object; otherwise, false.
Returns the hash code for the current object.
public override int GetHashCode();System.Int32
The hash code for the current object.
Returns a string that represents the current object.
public override string ToString();System.String
A string representation of the current object.
Represents a report used for collecting and exporting data.
public sealed class Report : DiGi.Core.IO.Interfaces.IIOObject, DiGi.Core.Interfaces.IObjectInheritance System.Object → Report
Implements DiGi.Core.IO.Interfaces.IIOObject, DiGi.Core.Interfaces.IObject
Initializes a new instance of the Report class.
public Report();Initializes a new instance of the Report class with a specified separator character.
public Report(char separator);separator System.Char
The character used to separate values in the report.
Adds a new entry to the report.
public void Add();Adds one or more objects to the report.
public void Add(params object?[]? values);values System.Object[]
The objects to add to the report.
Adds a collection of values to the report.
public void Add<T>(System.Collections.Generic.IEnumerable<T?>? values);T
The type of elements in the collection.
values System.Collections.Generic.IEnumerable<T>
The collection of values to add to the report.
Adds one or more values of type T to the report.
public void Add<T>(params T?[]? values);T
The type of values to add.
The values of type T to add to the report.
Returns the hash code for this instance.
public override int GetHashCode();System.Int32
The hash code for this instance.
Returns a string representation of the current report.
public override string ToString();System.String
A string that represents the current report.
Writes the report content to the specified file path.
public bool Write(string? path);path System.String
The path where the report will be written.
System.Boolean
True if the write operation was successful; otherwise, false.