Binary data.
More...
#include <nfiq2_data.hpp>
Inherits std::basic_string< uint8_t >.
Inherited by NFIQ2::FingerprintImageData.
|
| Data () |
| Default Data constructor. More...
|
|
| Data (const uint8_t *pData, uint32_t dataSize) |
| Constructor with available pointer to data. More...
|
|
| Data (const Data &otherData) |
| Copy constructor. More...
|
|
| Data (const std::basic_string< uint8_t > &otherData) |
| Constructor with string-based data. More...
|
|
virtual | ~Data () |
| Destructor. More...
|
|
void | readFromFile (const std::string &filename) |
| Reads the content from the a file into this object. More...
|
|
void | writeToFile (const std::string &filename) const |
| Writes the content to a file. More...
|
|
std::string | toHexString () const |
| Generates a string in hexadecimal format of the buffer. More...
|
|
void | fromBase64String (const std::string &base64String) |
| Imports data from a Base64 encoded string. More...
|
|
std::string | toBase64String () const |
| Generates a string in Base64 format of the buffer. More...
|
|
Binary data.
Definition at line 23 of file nfiq2_data.hpp.
◆ Data() [1/4]
Default Data constructor.
◆ Data() [2/4]
NFIQ2::Data::Data |
( |
const uint8_t * |
pData, |
|
|
uint32_t |
dataSize |
|
) |
| |
Constructor with available pointer to data.
- Parameters
-
pData | Data pointer. |
dataSize | Size of data at data pointer. |
◆ Data() [3/4]
NFIQ2::Data::Data |
( |
const Data & |
otherData | ) |
|
◆ Data() [4/4]
NFIQ2::Data::Data |
( |
const std::basic_string< uint8_t > & |
otherData | ) |
|
|
explicit |
Constructor with string-based data.
- Parameters
-
otherData | Binary data in string format. |
◆ ~Data()
virtual NFIQ2::Data::~Data |
( |
| ) |
|
|
virtual |
◆ readFromFile()
void NFIQ2::Data::readFromFile |
( |
const std::string & |
filename | ) |
|
Reads the content from the a file into this object.
- Parameters
-
filename | The path of the file that will be read. |
- Exceptions
-
◆ writeToFile()
void NFIQ2::Data::writeToFile |
( |
const std::string & |
filename | ) |
const |
Writes the content to a file.
- Parameters
-
filename | The path of the file that will be written to. |
- Exceptions
-
◆ toHexString()
std::string NFIQ2::Data::toHexString |
( |
| ) |
const |
Generates a string in hexadecimal format of the buffer.
- Returns
- The content of the buffer as hexadecimal string.
- Exceptions
-
◆ fromBase64String()
void NFIQ2::Data::fromBase64String |
( |
const std::string & |
base64String | ) |
|
Imports data from a Base64 encoded string.
- Parameters
-
base64String | The Base64 encoded string. |
- Exceptions
-
◆ toBase64String()
std::string NFIQ2::Data::toBase64String |
( |
| ) |
const |
Generates a string in Base64 format of the buffer.
- Returns
- The content of the buffer as Base64 encoded string.
The documentation for this class was generated from the following file: