Show / Hide Table of Contents

Class Svc2004Loader

Loads SVC2004-format database from .zip

Inheritance
System.Object
DataSetLoader
Svc2004Loader
Implements
IDataSetLoader
ILoggerObject
Inherited Members
DataSetLoader.Logger
DataSetLoader.EnumerateSigners()
DataSetLoader.IDataSetLoader.SignerFilter
Namespace: SigStat.Common.Loaders
Assembly: SigStat.Common.dll
Syntax
public class Svc2004Loader : DataSetLoader, IDataSetLoader, ILoggerObject

Constructors

| Improve this Doc View Source

Svc2004Loader(String, Boolean)

Initializes a new instance of the Svc2004Loader class with specified database.

Declaration
public Svc2004Loader(string databasePath, bool standardFeatures)
Parameters
Type Name Description
System.String databasePath

Represents the path, to load the signatures from. It supports two basic approaches:

System.Boolean standardFeatures

Convert loaded data (Svc2004) to standard Features.

| Improve this Doc View Source

Svc2004Loader(String, Boolean, Predicate<Signer>)

Initializes a new instance of the Svc2004Loader class with specified database.

Declaration
public Svc2004Loader(string databasePath, bool standardFeatures, Predicate<Signer> signerFilter = null)
Parameters
Type Name Description
System.String databasePath

Represents the path, to load the signatures from. It supports two basic approaches:

System.Boolean standardFeatures

Convert loaded data (Svc2004) to standard Features.

Predicate<Signer> signerFilter

Sets the SignerFilter property

Properties

| Improve this Doc View Source

DatabasePath

Gets or sets the database path.

Declaration
public string DatabasePath { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SamplingFrequency

Sampling Frequency of the SVC database

Declaration
public override int SamplingFrequency { get; }
Property Value
Type Description
System.Int32
Overrides
DataSetLoader.SamplingFrequency
| Improve this Doc View Source

SignerFilter

Ignores any signers during the loading, that do not match the predicate

Declaration
public Predicate<Signer> SignerFilter { get; set; }
Property Value
Type Description
Predicate<Signer>
| Improve this Doc View Source

StandardFeatures

Gets or sets a value indicating whether features are also loaded as Features

Declaration
public bool StandardFeatures { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

EnumerateSigners(Predicate<Signer>)

Enumerates all Signers that match the signerFilter.

Declaration
public override IEnumerable<Signer> EnumerateSigners(Predicate<Signer> signerFilter)
Parameters
Type Name Description
Predicate<Signer> signerFilter

Filter to specify which Signers to load. Example: (p=>p=="01")

Returns
Type Description
IEnumerable<Signer>

Collection of Signers that match the signerFilter

Overrides
DataSetLoader.EnumerateSigners(Predicate<Signer>)
| Improve this Doc View Source

LoadSignature(Signature, Stream, Boolean)

Loads one signature from specified stream.

Declaration
public static void LoadSignature(Signature signature, Stream stream, bool standardFeatures)
Parameters
Type Name Description
Signature signature

Signature to write features to.

Stream stream

Stream to read svc2004 data from.

System.Boolean standardFeatures

Convert loaded data to standard Features.

| Improve this Doc View Source

LoadSignature(Signature, String, Boolean)

Loads one signature from specified file path.

Declaration
public void LoadSignature(Signature signature, string path, bool standardFeatures)
Parameters
Type Name Description
Signature signature

Signature to write features to.

System.String path

Path to a file of format "US.txt"

System.Boolean standardFeatures

Convert loaded data to standard Features.

Implements

IDataSetLoader
ILoggerObject
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX