C# Class qXL.qXLRtdServer

Inheritance: ExcelDna.Integration.Rtd.ExcelRtdServer
ファイルを表示 Open project: exxeleron/qXL

Protected Methods

Method Description
ConnectData ( Topic topic, IList topicInfo, bool &newValues ) : object
DisconnectData ( Topic topic ) : void
ServerTerminate ( ) : void

Private Methods

Method Description
AddEmptyId ( string alias, string table, string id ) : void

Adds id to mapping with null value.

GetAliasForConnection ( QConnection qConnection ) : string

Re-maps connection object to its alias.

GetConnection ( string alias ) : qSharp.QCallbackConnection
GetSymbolId ( string alias, string table, string symName ) : string

Gets the subscription id based on symbol. If symbol is not assigned to anything it tries to assign it and returns newly assigned id.

OnUpdate ( object sender, qSharp.QMessageEvent args ) : void

Event triggered by the q process sending data

RemoveSymbolBasedOnId ( string alias, string table, string symId ) : void
RtdClose ( [ alias ) : object
RtdConfigure ( [ paramName, [ paramValue ) : object
RtdOpen ( [ alias, [ hostname, [ port, [ username = null, [ password = null ) : object
RtdSubscribe ( string alias, string tab, string sym ) : object

Extends current subscription bound with connection alias by given sym for given tab.

RtdSubscribeAll ( string alias ) : object

Subscribe entire content of the mapping for given alias.

RtdSubscribeAllTables ( string alias ) : object

Subscribe entire content of the mapping for given alias.

RtdSubscribeTable ( string alias, string tableName ) : object

Subscribe for all symbols from given table

RtdUnsubscribe ( string alias ) : object

Removes given symbol for given table from subscription on the connection bound with given alias.

TryToFillFromCache ( string alias, string tab, int subscriptionId, string col ) : void

Tries to fill cells with data from cache.

UpdateCache ( string alias, string table, qSharp.QTable data ) : void

This function applies data received from Q process to in-memory cache. All operations are structured in a way that only data that has been subscribed is kept, i.e.: data from columns that were not requested is simply discarded.

Method Details

ConnectData() protected method

protected ConnectData ( Topic topic, IList topicInfo, bool &newValues ) : object
topic Topic
topicInfo IList
newValues bool
return object

DisconnectData() protected method

protected DisconnectData ( Topic topic ) : void
topic Topic
return void

ServerTerminate() protected method

protected ServerTerminate ( ) : void
return void