Table of Contents

Interface IReportGeneratorContext

Namespace
Cryville.EEW.Report
Assembly
Cryville.EEW.dll
Represents a context used in report model generators.
public interface IReportGeneratorContext
Extension Methods

Properties

SeverityScheme

The severity scheme.
ISeverityScheme SeverityScheme { get; }

Property Value

ISeverityScheme

Methods

NameLocation(double, double, CultureInfo?, ref CultureInfo, out string?, out int)

Names a location in a culture.
bool NameLocation(double lat, double lon, CultureInfo? localCulture, ref CultureInfo targetCulture, out string? name, out int specificity)

Parameters

lat double
The latitude of the location.
lon double
The longitude of the location.
localCulture CultureInfo
The local culture supported by the event itself.
targetCulture CultureInfo
The target culture of the location name. When the method returns, set to the actual culture of the location name.
name string
The location name.
specificity int
The location specificity. See LocationSpecificity.

Returns

bool
Whether the name is given by the context. false if the generator should provide a local name instead.