C# Class BExIS.IO.Transform.Output.DataWriter

DataWriter is an abstract class that has basic functions for storing file.
Afficher le fichier Open project: BEXIS2/Core Class Usage Examples

Protected Properties

Свойство Type Description
DatasetManager BExIS.Dlm.Services.Data.DatasetManager
VariableIdentifierRows List>
VariableIdentifiers List
dataStructure BExIS.Dlm.Entities.DataStructure.StructuredDataStructure

Méthodes publiques

Méthode Description
CreateFile ( string filepath ) : string
CreateFile ( string path, string filename ) : string
DataWriter ( ) : System

GetDataStructureTemplatePath ( long dataStructureId, string extention ) : string

GetDynamicStorePath ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string

GetDynamicStorePathOriginalFile ( long datasetId, long datasetVersionOrderNr, string filename ) : string

GetFullStorePath ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string

Create the general store path under AppConfiguration.DataPath with filename

GetFullStorePathOriginalFile ( long datasetId, long datasetVersionOrderNr, string filename ) : string

GetNewTitle ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string

Returns a Title based on incoming parameters

GetStorePath ( long datasetId, long datasetVersionOrderNr ) : string

Generate the gernal store path based on AppConfiguration.DataPath without filename

GetTitle ( long id ) : String

Open ( string fileName ) : FileStream

If file exist open a FileStream

Méthodes protégées

Méthode Description
GetDataStructure ( ) : StructuredDataStructure
GetDataStructure ( long id ) : StructuredDataStructure

GetFormatedValue ( object value, Dlm datatype, string format ) : string
GetStringFormat ( Dlm datatype ) : string
GetSubsetOfVariableValues ( List source, String selected ) : List

select a subset of the variables from a datastructure based on a list of variablenames

GetSubsetOfVariables ( List source, String selected ) : List

select a subset of the variables from a datastructure based on a list of variablenames

createDicrectoriesIfNotExist ( string path ) : void

Method Details

CreateFile() public méthode

public CreateFile ( string filepath ) : string
filepath string
Résultat string

CreateFile() public méthode

public CreateFile ( string path, string filename ) : string
path string
filename string
Résultat string

DataWriter() public méthode

public DataWriter ( ) : System
Résultat System

GetDataStructure() protected méthode

protected GetDataStructure ( ) : StructuredDataStructure
Résultat BExIS.Dlm.Entities.DataStructure.StructuredDataStructure

GetDataStructure() protected méthode

protected GetDataStructure ( long id ) : StructuredDataStructure
id long
Résultat BExIS.Dlm.Entities.DataStructure.StructuredDataStructure

GetDataStructureTemplatePath() public méthode

public GetDataStructureTemplatePath ( long dataStructureId, string extention ) : string
dataStructureId long
extention string
Résultat string

GetDynamicStorePath() public méthode

public GetDynamicStorePath ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string
datasetId long
datasetVersionOrderNr long
title string
extention string
Résultat string

GetDynamicStorePathOriginalFile() public méthode

public GetDynamicStorePathOriginalFile ( long datasetId, long datasetVersionOrderNr, string filename ) : string
datasetId long
datasetVersionOrderNr long
filename string
Résultat string

GetFormatedValue() protected méthode

protected GetFormatedValue ( object value, Dlm datatype, string format ) : string
value object
datatype Dlm
format string
Résultat string

GetFullStorePath() public méthode

Create the general store path under AppConfiguration.DataPath with filename
public GetFullStorePath ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string
datasetId long
datasetVersionOrderNr long
title string
extention string
Résultat string

GetFullStorePathOriginalFile() public méthode

public GetFullStorePathOriginalFile ( long datasetId, long datasetVersionOrderNr, string filename ) : string
datasetId long
datasetVersionOrderNr long
filename string
Résultat string

GetNewTitle() public méthode

Returns a Title based on incoming parameters
public GetNewTitle ( long datasetId, long datasetVersionOrderNr, string title, string extention ) : string
datasetId long
datasetVersionOrderNr long
title string
extention string
Résultat string

GetStorePath() public méthode

Generate the gernal store path based on AppConfiguration.DataPath without filename
public GetStorePath ( long datasetId, long datasetVersionOrderNr ) : string
datasetId long
datasetVersionOrderNr long
Résultat string

GetStringFormat() protected méthode

protected GetStringFormat ( Dlm datatype ) : string
datatype Dlm
Résultat string

GetSubsetOfVariableValues() protected méthode

select a subset of the variables from a datastructure based on a list of variablenames
protected GetSubsetOfVariableValues ( List source, String selected ) : List
source List full list of variables
selected String variablenames
Résultat List

GetSubsetOfVariables() protected méthode

select a subset of the variables from a datastructure based on a list of variablenames
protected GetSubsetOfVariables ( List source, String selected ) : List
source List full list of variables
selected String variablenames
Résultat List

GetTitle() public méthode

public GetTitle ( long id ) : String
id long
Résultat String

Open() public static méthode

If file exist open a FileStream
public static Open ( string fileName ) : FileStream
fileName string
Résultat System.IO.FileStream

createDicrectoriesIfNotExist() protected méthode

protected createDicrectoriesIfNotExist ( string path ) : void
path string
Résultat void

Property Details

DatasetManager protected_oe property

protected DatasetManager,BExIS.Dlm.Services.Data DatasetManager
Résultat BExIS.Dlm.Services.Data.DatasetManager

VariableIdentifierRows protected_oe property

protected List> VariableIdentifierRows
Résultat List>

VariableIdentifiers protected_oe property

List of VariableIdentifiers with VariableName and VariableID
protected List VariableIdentifiers
Résultat List

dataStructure protected_oe property

protected StructuredDataStructure,BExIS.Dlm.Entities.DataStructure dataStructure
Résultat BExIS.Dlm.Entities.DataStructure.StructuredDataStructure