• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Core
      • DependencyRegistrationCore
    • Mars.Core.Data
      • AbstractConfigLoader
      • AbstractEntityManager
      • AgentManagerImpl
      • DomainDataMediatorImpl
      • EntityManagerImpl
      • IAgentManager
      • IEntityManager
      • IEntityMapping
      • IGeneratedEntityLogger
      • IGeneratedLayerLogger
      • IGeneratedLogger<TModel>
      • IGeneratedTypeLogger
      • IModelCompiler
      • IOutputLogger
      • IPlatformSelector
      • ISchemaMigrationProvider
      • ISerializerManager
      • PlatformSelectorImpl
    • Mars.Core.Data.Compiler
      • AbstractEntityMapper
      • AbstractJitMapper
      • AbstractLayerMapper
      • AbstractMapper<TModel>
      • AbstractTypeMapper
      • RoslynCompilerUtils
    • Mars.Core.Data.Entities
      • CircleFilter
      • Condition
      • ConjunctiveWhere
      • DataFrame
      • DisjunctiveWhere
      • EqualityCondition
      • IntersectionFilter
      • ISelection
      • NearestFilter
      • Query
      • WindowFilter
      • WithinFilter
    • Mars.Core.Data.Exceptions
      • AgentInitializationException
    • Mars.Core.Data.Mapping
      • DefaultSourceProvider
      • ReflectiveMapping
    • Mars.Core.Data.Wrapper
      • AbstractOperationWrapper
      • AbstractWrapper
      • AbstractWrapper<TOptions>
      • GlobalRestrictions
      • ICircleQueryOperation
      • IIntersectionOperation
      • ILookupOperation
      • INearestOperation
      • IOperation
      • IPlatform
      • IQueryOperation
      • IWindowQueryOperation
      • IWithinOperation
      • IWrapper
      • KnnGraphWrapper
      • PostGisWrapper
    • Mars.Core.Data.Wrapper.Document
      • IMongoConnection
      • IMongoWrapper
      • MongoDbIteratorHelper
      • MongoDbWrapper
    • Mars.Core.Data.Wrapper.File
      • AbstractFileWrapper<TOptions>
      • AscWrapper
      • GeoJsonWrapper
    • Mars.Core.Data.Wrapper.Memory
      • DataTableWrapper
      • GeoHashTrieWrapper
      • KdTreeWrapper
      • TripPosition
      • TripPositionCoordinateConverter
      • TripsCollection
      • TripsLineConverter
      • TripsTrajectoryWrapper
    • Mars.Core.Data.Wrapper.Relational
      • AbstractRelationalConnection
      • PostgresSqlDbConnection
      • PostgresSqlWrapper
      • RelationalMapperException
      • RelationalSqlWrapper<TOptions>
      • SqliteDbConnection
      • SqliteWrapper
    • Mars.Core.Data.Wrapper.Stream
      • MqttWrapper
      • SimulationTypeInfo
    • Mars.Core.Executor
      • IRuntimeModel
      • ISimulationProgress
      • IStepExecutor
    • Mars.Core.Executor.Entities
      • Parametrization
      • StepParam
    • Mars.Core.Executor.Implementation
      • RuntimeModelImpl
      • SimulationProgressImpl
      • StepExecutionUseCase
    • Mars.Core.Model
      • IConfigLoader
      • IModelContainer
      • IModelResolver
    • Mars.Core.Model.Entities
      • LayerInstanceContainer
    • Mars.Core.Model.Exceptions
      • InvalidMappingException
      • MissingConstructorException
      • ModelResolutionException
      • ValidationException
    • Mars.Core.Model.Implementation
      • DependencyBuilder
      • MappingHelper
      • ModelContainer
      • ValidationIssueLevel
      • ValidationResult
      • Validator
    • Mars.Core.Simulation
      • ISimulation
      • ISimulationControl
    • Mars.Core.Simulation.Entities
      • SimulationRestartArgs
      • SimulationWorkflowState

    Class AbstractFileWrapper<TOptions>

    An abstract implementation for all file-based wrapper reading/writing data from and into files.
    Inheritance
    IDisposable
    AbstractConfigLoader
    AbstractWrapper
    AbstractWrapper<TOptions>
    AbstractFileWrapper<TOptions>
    AscWrapper
    GeoJsonWrapper
    TripsTrajectoryWrapper
    Implements
    IWrapper
    IDisposable
    Inherited Members
    AbstractWrapper<TOptions>.Options
    AbstractWrapper.FrameSelector
    AbstractWrapper.Serializer
    AbstractWrapper.Name
    AbstractWrapper.IsInitialized
    AbstractWrapper.SaveSnapshot(Int64, IGeneratedLayerLogger)
    AbstractWrapper.SaveSnapshot(Int64, IGeneratedTypeLogger)
    AbstractWrapper.MigrateSchema(IGeneratedTypeLogger)
    AbstractWrapper.MigrateSchema(IGeneratedLayerLogger)
    AbstractWrapper.SaveSnapshotByType(Int64, IGeneratedTypeLogger)
    AbstractWrapper.TearDown()
    AbstractWrapper.WriteEntityResult(Int64, IGeneratedEntityLogger)
    AbstractWrapper.WriteLayerResult(Int64, IGeneratedLayerLogger)
    AbstractConfigLoader.Logger
    AbstractConfigLoader.ConfigLoader
    AbstractConfigLoader.SimulationConfig
    AbstractConfigLoader.Context
    AbstractConfigLoader.ModelDescription
    Namespace: Mars.Core.Data.Wrapper.File
    Assembly: Mars.Core.dll
    Syntax
    public abstract class AbstractFileWrapper<TOptions> : AbstractWrapper<TOptions>, IWrapper, IDisposable where TOptions : AbstractFileOptions
    Type Parameters
    Name Description
    TOptions

    Constructors

    AbstractFileWrapper(IConfigLoader, ISerializerManager, TOptions)

    Declaration
    protected AbstractFileWrapper(IConfigLoader config, ISerializerManager serializer, TOptions fileOptions)
    Parameters
    Type Name Description
    IConfigLoader config
    ISerializerManager serializer
    TOptions fileOptions

    Fields

    TypeHeaders

    Declaration
    protected readonly IDictionary<IOutputLogger, > TypeHeaders
    Field Value
    Type Description
    IDictionary<IOutputLogger, System.>

    Properties

    FileSystem

    Gets the file system access layer to interact with files and folders.
    Declaration
    protected IFileSystem FileSystem { get; }
    Property Value
    Type Description
    IFileSystem

    Methods

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    AbstractConfigLoader.Dispose()

    GetPath(String, String, Nullable<Boolean>)

    Declaration
    protected string GetPath(string typeName, string fileExtensionsWithDot, bool? distinctFiles = null)
    Parameters
    Type Name Description
    System.String typeName
    System.String fileExtensionsWithDot
    System.Nullable<System.Boolean> distinctFiles
    Returns
    Type Description
    System.String

    GetStreamWriter(String, IOutputLogger, out StreamWriter)

    Declaration
    protected bool GetStreamWriter(string fileKey, IOutputLogger typeLogger, out StreamWriter streamWriter)
    Parameters
    Type Name Description
    System.String fileKey
    IOutputLogger typeLogger
    StreamWriter streamWriter
    Returns
    Type Description
    System.Boolean

    Setup()

    Declaration
    public override void Setup()
    Overrides
    Mars.Core.Data.Wrapper.AbstractWrapper<TOptions>.Setup()

    Implements

    IWrapper
    IDisposable
    Back to top Copyright © MARS GROUP.
    HAW Hamburg