MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The StandardQueryTextFile provides queries that read text (*.txt) files residing in a given directory. More...
Public Member Functions | |
StandardQueryTextFile (string strParam=null) | |
The constructor. More... | |
IXCustomQuery | Clone (string strParam) |
Clone the custom query returning a new copy. More... | |
void | Close () |
Close the custom query. More... | |
void | Open () |
Open the custom query. The query must be opened before calling QueryBytes. More... | |
double[] | QueryByTime (DateTime dt, TimeSpan ts, int nCount) |
The QueryByTime method is not implemented for this custom query. More... | |
byte[] | QueryBytes () |
The QueryBytes method returns the bytes of the next file in the directory. More... | |
List< double[]> | QueryRealD () |
The QueryRealD method is not implemented for this custom query. More... | |
List< float[]> | QueryRealF () |
The QueryRealF method is not implemented for this custom query. More... | |
Dictionary< string, float > | QueryInfo () |
The Query information returns information about the data queried such as header information. More... | |
List< int > | GetQuerySize () |
The GetQuerySize method returns the size of the query as {1,1,filesize}. More... | |
void | Reset () |
Reset the file index to the first file. More... | |
byte[] | ConvertOutput (float[] rg, out string strType) |
Converts the output values into the native type used by the CustomQuery. More... | |
Properties | |
CUSTOM_QUERY_TYPE | QueryType [get] |
Returns the QUERY_TYPE of BYTE. More... | |
string | Name [get] |
Returns the custom query name 'StdTextFileQuery'. More... | |
int | FieldCount [get] |
Returns the field count of 1. More... | |
Properties inherited from MyCaffe.db.stream.IXCustomQuery | |
CUSTOM_QUERY_TYPE | QueryType [get] |
Returns the custom query type supported by the custom query. More... | |
string | Name [get] |
Returns the name of the Custom Query. More... | |
int | FieldCount [get] |
Returns the field count for this query. More... | |
The StandardQueryTextFile provides queries that read text (*.txt) files residing in a given directory.
Definition at line 14 of file StandardQueryTextFile.cs.
MyCaffe.db.stream.StandardQueryTextFile.StandardQueryTextFile | ( | string | strParam = null | ) |
The constructor.
strParam | Specifies the parameters which shold contains the 'FilePath'=path key=value pair. |
Definition at line 24 of file StandardQueryTextFile.cs.
IXCustomQuery MyCaffe.db.stream.StandardQueryTextFile.Clone | ( | string | strParam | ) |
Clone the custom query returning a new copy.
strParam | Optionally, initialize the new copy with these parameters. |
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 63 of file StandardQueryTextFile.cs.
void MyCaffe.db.stream.StandardQueryTextFile.Close | ( | ) |
Close the custom query.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 71 of file StandardQueryTextFile.cs.
byte[] MyCaffe.db.stream.StandardQueryTextFile.ConvertOutput | ( | float[] | rg, |
out string | strType | ||
) |
Converts the output values into the native type used by the CustomQuery.
rg | Specifies the raw output data. |
strType | Returns the output type. |
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 190 of file StandardQueryTextFile.cs.
List< int > MyCaffe.db.stream.StandardQueryTextFile.GetQuerySize | ( | ) |
The GetQuerySize method returns the size of the query as {1,1,filesize}.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 160 of file StandardQueryTextFile.cs.
void MyCaffe.db.stream.StandardQueryTextFile.Open | ( | ) |
Open the custom query. The query must be opened before calling QueryBytes.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 80 of file StandardQueryTextFile.cs.
byte[] MyCaffe.db.stream.StandardQueryTextFile.QueryBytes | ( | ) |
The QueryBytes method returns the bytes of the next file in the directory.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 117 of file StandardQueryTextFile.cs.
double[] MyCaffe.db.stream.StandardQueryTextFile.QueryByTime | ( | DateTime | dt, |
TimeSpan | ts, | ||
int | nCount | ||
) |
The QueryByTime method is not implemented for this custom query.
dt | not used. |
ts | non used. |
nCount | not used. |
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 108 of file StandardQueryTextFile.cs.
Dictionary< string, float > MyCaffe.db.stream.StandardQueryTextFile.QueryInfo | ( | ) |
The Query information returns information about the data queried such as header information.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 151 of file StandardQueryTextFile.cs.
List< double[]> MyCaffe.db.stream.StandardQueryTextFile.QueryRealD | ( | ) |
The QueryRealD method is not implemented for this custom query.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 133 of file StandardQueryTextFile.cs.
List< float[]> MyCaffe.db.stream.StandardQueryTextFile.QueryRealF | ( | ) |
The QueryRealF method is not implemented for this custom query.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 142 of file StandardQueryTextFile.cs.
void MyCaffe.db.stream.StandardQueryTextFile.Reset | ( | ) |
Reset the file index to the first file.
Implements MyCaffe.db.stream.IXCustomQuery.
Definition at line 179 of file StandardQueryTextFile.cs.
|
get |
Returns the field count of 1.
Definition at line 53 of file StandardQueryTextFile.cs.
|
get |
Returns the custom query name 'StdTextFileQuery'.
Definition at line 45 of file StandardQueryTextFile.cs.
|
get |
Returns the QUERY_TYPE of BYTE.
Definition at line 37 of file StandardQueryTextFile.cs.