C# 클래스 TimeSeriesLibrary.ComTSLibrary

상속: _ComTSLibrary
파일 보기 프로젝트 열기: hydrologics/TimeSeriesLibrary 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ConnxObject TSConnection

Private Properties

프로퍼티 타입 설명
CloseConnection void
CountTimeSteps int
DeleteMatchingSeries bool
DeleteSeries bool
FillDateArray void
FillSeriesDateArray void
GetConnectionFromId System.Data.SqlClient.SqlConnection
IncrementDate System.DateTime
OpenConnection int
ReadDatesValues int
ReadValuesRegular int
WriteParametersIrregular int
WriteParametersRegular int
WriteTraceIrregular void
WriteTraceRegular void
XmlImport int

공개 메소드들

메소드 설명
ComTSLibrary ( ) : System

Class constructor. In accord with the COM callable wrapper, this constructor can not take any parameters, and there can be no other constructors besides this one.

GetErrorMessage ( sbyte pErrorMessage ) : void
GetHasError ( ) : bool
ResetErrorHandler ( ) : void
XmlImportWithList ( int connectionNumber, String paramTableName, String traceTableName, String xmlFileName, List tsImportList ) : int

This method reads the given XML file and stores any time series that are defined in the XML file to the database using the given database connection number and database table name. For each time series that the method adds to the database, it adds a TSImport object to the given List of TSImport objects. Each TSImport object records fields that were read from the XML file, but which TSLibrary does not process.

비공개 메소드들

메소드 설명
CloseConnection ( int connectionNumber ) : void
CountTimeSteps ( System.DateTime startDate, System.DateTime endDate, short unit, short stepSize ) : int
DeleteMatchingSeries ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, sbyte pWhereClause ) : bool
DeleteSeries ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int id ) : bool
FillDateArray ( short timeStepUnit, short timeStepQuantity, int nReqValues, System.DateTime dateArray, System.DateTime reqStartDate ) : void
FillSeriesDateArray ( int connectionNumber, String paramTableName, String traceTableName, int id, int nReqValues, System.DateTime dateArray, System.DateTime reqStartDate ) : void
GetConnectionFromId ( int connectionNumber ) : SqlConnection
IncrementDate ( System.DateTime startDate, short unit, short stepSize, int numSteps ) : System.DateTime
OpenConnection ( sbyte pConnectionString ) : int
ReadDatesValues ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int id, int traceNumber, int nReqValues, TSDateValueStruct &dateValueArray, System.DateTime reqStartDate, System.DateTime reqEndDate ) : int
ReadValuesRegular ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int id, int traceNumber, int nReqValues, double valueArray, System.DateTime reqStartDate, System.DateTime reqEndDate ) : int
WriteParametersIrregular ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int nOutValues, System.DateTime outStartDate, System.DateTime outEndDate, sbyte pExtraParamNames, sbyte pExtraParamValues ) : int
WriteParametersRegular ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, short timeStepUnit, short timeStepQuantity, int nOutValues, System.DateTime outStartDate, sbyte pExtraParamNames, sbyte pExtraParamValues ) : int
WriteTraceIrregular ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int id, int traceNumber, TSDateValueStruct dateValueArray ) : void
WriteTraceRegular ( int connectionNumber, sbyte pParamTableName, sbyte pTraceTableName, int id, int traceNumber, double valueArray ) : void
XmlImport ( int connectionNumber, String paramTableName, String traceTableName, String xmlFileName ) : int

메소드 상세

ComTSLibrary() 공개 메소드

Class constructor. In accord with the COM callable wrapper, this constructor can not take any parameters, and there can be no other constructors besides this one.
public ComTSLibrary ( ) : System
리턴 System

GetErrorMessage() 공개 메소드

public GetErrorMessage ( sbyte pErrorMessage ) : void
pErrorMessage sbyte
리턴 void

GetHasError() 공개 메소드

public GetHasError ( ) : bool
리턴 bool

ResetErrorHandler() 공개 메소드

public ResetErrorHandler ( ) : void
리턴 void

XmlImportWithList() 공개 메소드

This method reads the given XML file and stores any time series that are defined in the XML file to the database using the given database connection number and database table name. For each time series that the method adds to the database, it adds a TSImport object to the given List of TSImport objects. Each TSImport object records fields that were read from the XML file, but which TSLibrary does not process.
public XmlImportWithList ( int connectionNumber, String paramTableName, String traceTableName, String xmlFileName, List tsImportList ) : int
connectionNumber int The serial number of the connection that is used to write to the database
paramTableName String The name of the database table that time series will be written to
traceTableName String The name of the database table that stores the BLOB for a single trace
xmlFileName String The file name (with path) of an XML file that defines one or more time series to import
tsImportList List A List of TSImport objects that the method adds to--one item for each time series /// that is saved to the database. The List must already be instantiated before calling this method. /// The method does not change any items that are already in the List.
리턴 int

프로퍼티 상세

ConnxObject 공개적으로 프로퍼티

TSConnection object maintains a list of connections that have been opened by the library
public TSConnection,TimeSeriesLibrary ConnxObject
리턴 TSConnection