DVS::IHash Class Reference
Last update: 16.07.2025#include <dvs_hash_interface.h>
Inheritance diagram for DVS::IHash:

Public Member Functions | |
| IHash ()=default | |
| virtual | ~IHash ()=default |
| IHash (IHash &&)=default | |
| IHash & | operator= (IHash &&)=default |
| IHash (const IHash &)=default | |
| IHash & | operator= (const IHash &)=default |
| virtual uint32_t | get_hash_size () const =0 |
| virtual dvs_ret | get_hash (char *hash) const =0 |
Detailed Description
Definition at line 37 of file dvs_hash_interface.h.
Member Function Documentation
◆ get_hash()
|
pure virtual |
Get the hash of the data.
The hash of data for DVS objects is a checksum + the hex size of the internal arrays. The size of the has should be retrieved via IHash::get_hash_size() to be compatible with future hash changes
Error Codes:
- DVS_NONE: No error
- DVS_NO_DATA: Object has no data and hash is invalid
- DVS_INVALID_HASH: Hash of data is invalid. There is a problem with the data
- Parameters
-
[out] hash returns a null terminated string of size IHash::get_hash_size() to be filled if no error
- Returns
- dvs_ret DVS_NONE on no error, otherwise see method description
◆ get_hash_size()
|
pure virtual |
Get the size of the hash to use with IHash::get_hash()
- Returns
- uint32_t the size of the hash from IHash::get_hash()
The documentation for this class was generated from the following file:
- D:/ANSYSDev/Product-src/ensight/user_defined_src/readers/dvs/include/dvs_hash_interface.h