Binary data.
More...
#include <nfiq2_data.hpp>
Inherits std::basic_string< uint8_t >.
Inherited by NFIQ2::FingerprintImageData.
|
| | Data () |
| | Default Data constructor.
|
| |
| | Data (const uint8_t *pData, uint32_t dataSize) |
| | Constructor with available pointer to data.
|
| |
| | Data (const Data &otherData) |
| | Copy constructor.
|
| |
| | Data (const std::basic_string< uint8_t > &otherData) |
| | Constructor with string-based data.
|
| |
| virtual | ~Data () |
| | Destructor.
|
| |
| void | readFromFile (const std::string &filename) |
| | Reads the content from the a file into this object.
|
| |
| void | writeToFile (const std::string &filename) const |
| | Writes the content to a file.
|
| |
| std::string | toHexString () const |
| | Generates a string in hexadecimal format of the buffer.
|
| |
| void | fromBase64String (const std::string &base64String) |
| | Imports data from a Base64 encoded string.
|
| |
| std::string | toBase64String () const |
| | Generates a string in Base64 format of the buffer.
|
| |
Binary data.
Definition at line 24 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: