FbsCommon.h File Reference
Describes the common structures and functions that are not specific to any one module.
More...
#include "FoundationBridgeSDKDll.h"
#include "FbsTypes.h"
|
Typedefs |
| typedef void * | FbsHandle |
| typedef BlobStruct * | FbsBlobHandle |
| typedef BaseStruct * | FbsLicenseHandle |
| typedef FingerprintPositionStruct * | FbsFingerprintPositionHandle |
Functions |
| bool | fbsSetGlobalConfigurationPath (const char *pathA) |
| char * | fbsGetFoundationVersionStr () |
| void | fbsGetFoundationVersion (int &majorA, int &minorA, int &tinyA, int &buildA, const char *&msgA) |
| void | fbsGetLastError (const FbsHandle handleA, int &codeA, const char *&msgA) |
| FbsBlobHandle | fbsCreateBlob () |
| bool | fbsDestroyBlob (FbsBlobHandle &handle) |
| bool | fbsBlobGetDataPointer (FbsBlobHandle handle, const char *&data, int &datasize) |
| const char * | fbsBlobGetCStr (FbsBlobHandle handle) |
| bool | fbsBlobWriteToFile (FbsBlobHandle handle, const char *filename) |
| bool | fbsBlobLoadFromFile (FbsBlobHandle handle, const char *filename) |
| bool | fbsBlobCalculateChecksum (FbsBlobHandle handle, FBSuint64 &checksum) |
| FbsLicenseHandle | fbsCreateLicense () |
| bool | fbsDestroyLicense (FbsLicenseHandle &handle) |
| bool | fbsAddLicense (FbsLicenseHandle handle, const char *productID, const char *customerID, const char *license) |
| FbsFingerprintPositionHandle | fbsCreateFingerprintPosition () |
| bool | fbsDestroyFingerprintPosition (FbsFingerprintPositionHandle &handle) |
| bool | fbsFingerprintPositionSetPosition (FbsFingerprintPositionHandle handle, int leftTopX, int leftTopY, int leftBottomX, int leftBottomY, int rightTopX, int rightTopY, int rightBottomX, int rightBottomY, FbsInstance instance) |
| bool | fbsFingerprintPositionGetPosition (FbsFingerprintPositionHandle handle, int &leftTopX, int &leftTopY, int &leftBottomX, int &leftBottomY, int &rightTopX, int &rightTopY, int &rightBottomX, int &rightBottomY, FbsInstance &instance) |
Detailed Description
Describes the common structures and functions that are not specific to any one module.
- Copyright 2008:
- L1 Identiy Solutions
- Project:
- Foundation Bridge
- Language and Compiler:
- C, tested with Microsoft Visual C++ 8.0 SP1
Typedef Documentation
FbsFingerprintPositionHanlde is used to store a rectangle surrounding region for a segmented finger along with the finger position. Every FbsFingerprintPositionHanlde created by a call to fbsCreateFingerprintPositionHandle should be destroyed with a call to :: fbsDestroyFingerprintPosition
Function Documentation
| bool fbsAddLicense |
( |
FbsLicenseHandle |
handle, |
|
|
const char * |
productID, |
|
|
const char * |
customerID, |
|
|
const char * |
license | |
|
) |
| | |
Add license for a specific product.
- Parameters:
-
| handle,: | FbsLicenseHandle that will contain any occuring error messages. |
| productID. | |
| customerID. | |
| license. | |
- Returns:
- success.
Function will compute a checksum for the data stored in this FbsBlobHandle. This checksum can be passed to functions such as fbsIdRecordAddSerializedTemplateBlock to certify that the stored blob data has not been modified.
- Parameters:
-
| handle | source FbsBlobHandle containing the data. |
| checksum | checksum of blob data is returned. |
Function to retrieve actual data from FbsBlobHandle, but this is to retrieve ASCII data. Returns only a pointer to the internal data, do not destroy this pointer. You don't have to allocate the memory for the data pointer, but if you want to use the data in an upper layer you will need to use memcpy to copy the data.
- Parameters:
-
| handle | source FbsBlobHandle containing the data. |
| data | pointer to actual blob data returned. Do not delete! |
| datasize | size of internal data blob returned. |
| bool fbsBlobGetDataPointer |
( |
FbsBlobHandle |
handle, |
|
|
const char *& |
data, |
|
|
int & |
datasize | |
|
) |
| | |
Function to retrieve actual data from FbsBlobHandle. Returns only a pointer to the internal data, do not destroy this pointer. You don't have to allocate the memory for the data pointer, but if you want to use the data in an upper layer you will need to use memcpy to copy the data.
- Parameters:
-
| handle | source FbsBlobHandle containing the data. |
| data | pointer to actual blob data returned. Do not delete! |
| datasize | size of internal data blob returned. |
| bool fbsBlobLoadFromFile |
( |
FbsBlobHandle |
handle, |
|
|
const char * |
filename | |
|
) |
| | |
Function to read blob data from a file. The FbsBlobHandle must have been previously created using the fbsCreateBlob function. Each call to fbsBlobLoadFromFile will clear the previously held contents of the blob structure.
- Parameters:
-
| handle | destination FbsBlobHandle that will hold this file's data. |
| filename | path where the data blob's contents is stored. |
| bool fbsBlobWriteToFile |
( |
FbsBlobHandle |
handle, |
|
|
const char * |
filename | |
|
) |
| | |
Function to write blob data to file.
- Parameters:
-
| handle | source FbsBlobHandle containing the data. |
| filename | path to where the data blob's contents will be stored. |
Creates an blob handle.
- Returns:
- FbsBlobHandle
Creates an fingerprint position handle.
- Returns:
- FbsFingerprintPositionHandle
Create license handle.
- Returns:
- FbsLicenseHandle.
Destroy a blob handle.
- Parameters:
-
| handle | the handle that is to be destroyed. |
Destroy a fingerprint position handle.
- Parameters:
-
| handle | the handle that is to be destroyed. |
Destroy a license handle.
- Parameters:
-
| handle | the handle that is to be destroyed. |
| bool fbsFingerprintPositionGetPosition |
( |
FbsFingerprintPositionHandle |
handle, |
|
|
int & |
leftTopX, |
|
|
int & |
leftTopY, |
|
|
int & |
leftBottomX, |
|
|
int & |
leftBottomY, |
|
|
int & |
rightTopX, |
|
|
int & |
rightTopY, |
|
|
int & |
rightBottomX, |
|
|
int & |
rightBottomY, |
|
|
FbsInstance & |
instance | |
|
) |
| | |
Get a fingerprint position rectangle region and instance.
- Parameters:
-
| handle | the handle to be used. |
| leftTopX | x coordinate of the left top corner of the region |
| leftTopY | y coordinate of the left top corner of the region |
| leftBottomX | x coordinate of the left bottom corner of the region |
| leftBottomY | y coordinate of the left bottom corner of the region |
| rightTopX | x coordinate of the right top corner of the region |
| rightTopY | y coordinate of the right top corner of the region |
| rightBottomX | x coordinate of the right bottom corner of the region |
| rightBottomY | y coordinate of the right bottom corner of the region |
| instance | instance of the fingerprint |
| bool fbsFingerprintPositionSetPosition |
( |
FbsFingerprintPositionHandle |
handle, |
|
|
int |
leftTopX, |
|
|
int |
leftTopY, |
|
|
int |
leftBottomX, |
|
|
int |
leftBottomY, |
|
|
int |
rightTopX, |
|
|
int |
rightTopY, |
|
|
int |
rightBottomX, |
|
|
int |
rightBottomY, |
|
|
FbsInstance |
instance | |
|
) |
| | |
Set a fingerprint position rectangle region and instance.
- Parameters:
-
| handle | the handle to be used. |
| leftTopX | x coordinate of the left top corner of the region |
| leftTopY | y coordinate of the left top corner of the region |
| leftBottomX | x coordinate of the left bottom corner of the region |
| leftBottomY | y coordinate of the left bottom corner of the region |
| rightTopX | x coordinate of the right top corner of the region |
| rightTopY | y coordinate of the right top corner of the region |
| rightBottomX | x coordinate of the right bottom corner of the region |
| rightBottomY | y coordinate of the right bottom corner of the region |
| instance | instance of the fingerprint |
| void fbsGetFoundationVersion |
( |
int & |
majorA, |
|
|
int & |
minorA, |
|
|
int & |
tinyA, |
|
|
int & |
buildA, |
|
|
const char *& |
msgA | |
|
) |
| | |
| char* fbsGetFoundationVersionStr |
( |
|
) |
|
Retrieve version numbers of Foundation
- Parameters:
-
| majorA | major version of Foundation returned. |
| minorA | minor version of Foundation returned. |
| tinyA | tiny version of Foundation returned. |
| buildA | build version of Foundation returned. |
| msgA | associated message returned. Do not delete this pointer! |
| void fbsGetLastError |
( |
const FbsHandle |
handleA, |
|
|
int & |
codeA, |
|
|
const char *& |
msgA | |
|
) |
| | |
Retrieve error code and error message from any module handle in the Foundation Bridge.
- Parameters:
-
| handleA | any Foundation Bridge module handle. |
| codeA | last error code for this module returned. |
| msgA | last error message for this module returned. Do not delete this pointer! |
| bool fbsSetGlobalConfigurationPath |
( |
const char * |
pathA |
) |
|
Set the config files directory. This function should be called before any other FoundationBridge functions are called.
- Parameters:
-
| pathA | input parameter specifying the folder containing the configuration files of the system. |