MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.db.stream.MgrQueryGeneral Class Reference

The MgrQueryTime class manages the collection of data queries, and the internal data queue that contains all synchronized data items from the data queries, all fused together. More...

Inherits MyCaffe.db.stream.IXQuery.

Public Member Functions

 MgrQueryGeneral (string strSchema, List< IXCustomQuery > rgCustomQueries)
 The constructor. More...
 
void AddDirectQuery (IXCustomQuery iqry)
 Add a custom query directly to the streaming database. More...
 
void Reset (int nStartOffset)
 Reset the query to the start date used in Initialize, optionally with an offset from the start. More...
 
void Shutdown ()
 Shutdown the data queries and consolidation thread. More...
 
List< int > GetQuerySize ()
 Returns the query size of the data in the form: [0] = channels [1] = height [2] = width. More...
 
SimpleDatum Query (int nWait)
 Query the next data in the streaming database. More...
 
byte[] ConvertOutput (float[] rg, out string type)
 Converts the output values into the native type used by the CustomQuery. More...
 
Dictionary< string, float > QueryInfo ()
 The Query information returns information about the data queried such as header information. More...
 

Detailed Description

The MgrQueryTime class manages the collection of data queries, and the internal data queue that contains all synchronized data items from the data queries, all fused together.

Definition at line 18 of file MgrQueryGeneral.cs.

Constructor & Destructor Documentation

◆ MgrQueryGeneral()

MyCaffe.db.stream.MgrQueryGeneral.MgrQueryGeneral ( string  strSchema,
List< IXCustomQuery rgCustomQueries 
)

The constructor.

Parameters
strSchemaSpecifies the database schema.
rgCustomQueriesOptionally, specifies any custom queries to diretly add.

The database schema defines the number of custom queries to use along with their names. A simple key=value; list defines the streaming database schema using the following format:

"ConnectionCount=1;
Connection0_CustomQueryName=Test1;
Connection0_CustomQueryParam=param_string1

Each param_string specifies the parameters of the custom query and may include the database connection string, database table, and database fields to query.

Definition at line 41 of file MgrQueryGeneral.cs.

Member Function Documentation

◆ AddDirectQuery()

void MyCaffe.db.stream.MgrQueryGeneral.AddDirectQuery ( IXCustomQuery  iqry)

Add a custom query directly to the streaming database.

By default, the streaming database looks in the

'./CustomQuery'

folder relative to the streaming database assembly to look for CustomQuery DLL's that implement the IXCustomQuery interface. When found, these assemblies are added to the list accessible via the schema. Alternatively, custom queries may be added directly using this method.

Parameters
iqrySpecifies the custom query to add.

Definition at line 85 of file MgrQueryGeneral.cs.

◆ ConvertOutput()

byte[] MyCaffe.db.stream.MgrQueryGeneral.ConvertOutput ( float[]  rg,
out string  type 
)

Converts the output values into the native type used by the CustomQuery.

Parameters
rgSpecifies the raw output data.
typeReturns the output type.
Returns
The converted output data is returned as a byte stream.

Definition at line 180 of file MgrQueryGeneral.cs.

◆ GetQuerySize()

List< int > MyCaffe.db.stream.MgrQueryGeneral.GetQuerySize ( )

Returns the query size of the data in the form: [0] = channels [1] = height [2] = width.

Returns
The query size is returned.

Definition at line 115 of file MgrQueryGeneral.cs.

◆ Query()

SimpleDatum MyCaffe.db.stream.MgrQueryGeneral.Query ( int  nWait)

Query the next data in the streaming database.

Parameters
nWaitSpecfies the maximum amount of time (in ms.) to wait for data.
Returns
A simple datum containing the data is returned.

Definition at line 125 of file MgrQueryGeneral.cs.

◆ QueryInfo()

Dictionary< string, float > MyCaffe.db.stream.MgrQueryGeneral.QueryInfo ( )

The Query information returns information about the data queried such as header information.

Returns
The information about the data is returned.

Definition at line 189 of file MgrQueryGeneral.cs.

◆ Reset()

void MyCaffe.db.stream.MgrQueryGeneral.Reset ( int  nStartOffset)

Reset the query to the start date used in Initialize, optionally with an offset from the start.

Parameters
nStartOffsetOptionally, specifies the offset from the start to use (default = 0).

Definition at line 94 of file MgrQueryGeneral.cs.

◆ Shutdown()

void MyCaffe.db.stream.MgrQueryGeneral.Shutdown ( )

Shutdown the data queries and consolidation thread.

Definition at line 102 of file MgrQueryGeneral.cs.


The documentation for this class was generated from the following file: