Click or drag to resize

Ascii2Bridge Class

The Ascii2 bridge is a result data write bridge that is capable of writing the results of a result data object to an ascii file.

The Ascii2 bridge only stores reach data. All other data items are ignored.

Inheritance Hierarchy

Namespace:  DHI.Mike1D.ResultDataAccess
Assembly:  DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class Ascii2Bridge : AsciiBridge, 
	IResultWriteBridge, IResultBridge

The Ascii2Bridge type exposes the following members.

Constructors
  NameDescription
Public methodAscii2Bridge
Constructor
Top
Properties
  NameDescription
Public propertySecondsBetweenFileFlush
Seconds between flush to file. Set this lower if you need to read the result file while your calculations are running. WARNING: File flush is a potentially expensive operation. Use with care.
(Inherited from AsciiBridge.)
Top
Methods
  NameDescription
Protected methodDoStore
Store at this time
(Inherited from AsciiBridge.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFinish
Finish the file. Write dynamic statistics and static values.
(Overrides AsciiBridgeFinish.)
Public methodFlush
Write the contained time steps into the file
Protected methodGetFormat
Get output format of dynamic item
(Inherited from AsciiBridge.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsIncluded
Returns true if grid point on reach is included in the output.
(Inherited from AsciiBridge.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepare (Inherited from AsciiBridge.)
Public methodSave
Writes the content of the _resultDataAccess into file
(Inherited from AsciiBridge.)
Protected methodSetupDynamicItems
Setup dynamic data: For each output grid point (_dynamicRows), store a list of dynamic items (columns). The column can be null if that grid point does not offer that quantity.
(Overrides AsciiBridgeSetupDynamicItems(ListIQuantity, ListInt32).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTruncate(String)
Truncate string to column width, though only if delimiter is not defined
(Inherited from AsciiBridge.)
Protected methodTruncate(String, Int32)
Truncate string to length, though only if delimiter is not defined
(Inherited from AsciiBridge.)
Protected methodWriteDashLine
Write a line of dashes (-) in the txt file, matching numColumns columns of output data
(Inherited from AsciiBridge.)
Protected methodWriteHeader
Write header of text file - empty, there is a header for each time step.
(Overrides AsciiBridgeWriteHeader.)
Protected methodWriteStaticValue
Write static value for the staticItem at the reach and grid point index
(Inherited from AsciiBridge.)
Protected methodWriteTimeSteps (Overrides AsciiBridgeWriteTimeSteps(Boolean).)
Top
Fields
  NameDescription
Protected field_columnWidth
Width (minimum) of each column
(Inherited from AsciiBridge.)
Protected field_culture
Culture to use when outputting. Defaults to InvariantCulture
(Inherited from AsciiBridge.)
Protected field_data
Ascii output data
(Inherited from AsciiBridge.)
Protected field_doTruncate
Flag indicating if truncation of string should take place - only when no delimiter is defined
(Inherited from AsciiBridge.)
Protected field_formatChainage
Format string for chainage outputs
(Inherited from AsciiBridge.)
Protected field_formatDefault
Format string for string outputs
(Inherited from AsciiBridge.)
Protected field_formats
Format strings for dynamic and static outputs
(Inherited from AsciiBridge.)
Protected field_maximumTime
Time of maximum value of output quantity
(Inherited from AsciiBridge.)
Protected field_maximumValue
Maximum value of output quantity
(Inherited from AsciiBridge.)
Protected field_minimumTime
Time of minimum value of output quantity
(Inherited from AsciiBridge.)
Protected field_minimumValue
Minimum value of output quantity
(Inherited from AsciiBridge.)
Protected field_resultData
Result data to extract results from
(Inherited from AsciiBridge.)
Protected field_resultSpec
Result specification - storing frequence is used
(Inherited from AsciiBridge.)
Protected field_timeBetweenUpdates (Inherited from AsciiBridge.)
Protected field_timeOfNextUpdate (Inherited from AsciiBridge.)
Protected field_timestepCount (Inherited from AsciiBridge.)
Protected field_writer (Inherited from AsciiBridge.)
Top
Remarks
The Ascii2 bridge was added to support the M11 time series output.
See Also