Skip to main content

Post-processing tools 2024 R1

DVS::IHash Class Reference

Last update: 16.07.2025

#include <dvs_hash_interface.h>

Inheritance diagram for DVS::IHash:
DVS::IElementBlockDVS::IMeshChunkDVS::IPlotChunk

Public Member Functions

 IHash ()=default
 
virtual ~IHash ()=default
 
 IHash (IHash &&)=default
 
IHashoperator= (IHash &&)=default
 
 IHash (const IHash &)=default
 
IHashoperator= (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()

virtual dvs_ret DVS::IHash::get_hash ( char *  hash) const
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]hashreturns 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()

virtual uint32_t DVS::IHash::get_hash_size ( ) const
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:

Connect with Ansys