Griaule Biometrics

Home » Forums » FINGERPRINT SDK » C/C++ Specific » Help please with explanation of code -
1 reply [Last post]
glfrank
Offline
Joined: 2010-07-19
Rate this post:
0
No votes yet
Help please with explanation of code -

hi, i have downloaded the fingerprint sdk 2009. i was just wondering if you could tell me what the following code is doing (from the DBclass) as it is not commented very well. does it return the template data for identity or verify? what is it doing? any information will be helpful. thanks

// Return template data from an OleDbDataReader
TTemplate* DBClass::getTemplate(OleDbDataReader *rs){
  int readedBytes;

  tptBlob->_size = 0;
  // alloc space
  System::Byte temp[] = __gc new System::Byte[GRConstants::GR_MAX_SIZE_TEMPLATE];
  // get bytes
  readedBytes = (int)rs->GetBytes(1, 0, temp, 0, temp->Length);
  // copy to structure
  tptBlob->_tpt = temp;
  // set real size
  tptBlob->_size = readedBytes;
  return tptBlob;

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer,

As you can see that function is creating a blob object and returning it, because the template is stored in the database as a blob.

If you have more doubts, let us know.

 

 

Jan Beeck

Griaule Support Team