3using System.Collections.Generic;
9using System.Threading.Tasks;
23 List<IXCustomQuery> m_rgCustomQueryToAdd =
new List<IXCustomQuery>();
32 InitializeComponent();
43 InitializeComponent();
46 private void dispose()
94 m_iquery =
new MgrQueryTime(nQueryCount, dtStart, nTimeSpanInMs, nSegmentSize, nMaxCount, strSchema, m_rgCustomQueryToAdd);
123 m_rgCustomQueryToAdd.Add(iqry);
133 return m_iquery.Query(nWait);
145 List<int> rg = m_iquery.GetQuerySize();
159 return m_iquery.QueryInfo();
166 public void Reset(
int nStartOffset = 0)
168 m_iquery.Reset(nStartOffset);
179 return m_iquery.ConvertOutput(rg, out type);
The Log class provides general output in text form.
Specifies a key-value pair of properties.
DateTime GetPropertyAsDateTime(string strName)
Returns a property as a DateTime value.
int GetPropertyAsInt(string strName, int nDefault=0)
Returns a property as an integer value.
The SimpleDatum class holds a data input within host memory.
The MgrQueryTime class manages the collection of data queries, and the internal data queue that conta...
The MgrQueryTime class manages the collection of data queries, and the internal data queue that conta...
The MyCaffeStreamDatabase provides a streaming data input source to MyCaffe gyms used as input for dy...
void AddDirectQuery(IXCustomQuery iqry)
Add a custom query directly to the streaming database.
void Reset(int nStartOffset=0)
Reset the query to the start date used in Initialize, optionally with an offset from the start.
MyCaffeStreamDatabase(IContainer container)
The constructor.
Dictionary< string, float > QueryInfo()
The Query information returns information about the data queried such as header information.
void Shutdown()
Shutdonw the streaming database.
MyCaffeStreamDatabase(Log log)
The constructor.
int[] QuerySize()
Returns the query size of the data in the form: [0] = channels [1] = height [2] = width.
void Initialize(QUERY_TYPE qt, string strSchema)
The Initialize method initializes the streaming database component, preparing it for data queries.
SimpleDatum Query(int nWait)
Query the next data in the streaming database.
byte[] ConvertOutput(float[] rg, out string type)
Converts the output values into the native type used by the first CustomQuery.
The Component class is a standard Microsoft.NET class that implements the IComponent interface and is...
The custom query interface defines the functions implemented by each Custom Query object used to spec...
The IXStreamDatabase interface is the main interface to the MyCaffe Streaing Database.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.db.stream namespace contains all data streaming related classes.
QUERY_TYPE
Defines the query type to use.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...