Skip to main content

Post-processing tools 2023 R2

dvs_hash_interface.h

Last update: 17.04.2023
Go to the documentation of this file.
1 /**************************************************************
2 *
3 * (C) 2022 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
4 *
5 * Restricted Rights Legend
6 *
7 * Use, duplication, or disclosure of this
8 * software and its documentation by the
9 * Government is subject to restrictions as
10 * set forth in subdivision [(b)(3)(ii)] of
11 * the Rights in Technical Data and Computer
12 * Software clause at 52.227-7013.
13 *
14 **************************************************************
15 */
16 
24 #ifndef ___DVS_HASH_INTERFACE_H___
25 #define ___DVS_HASH_INTERFACE_H___
26 
29 
30 namespace DVS
31 {
32 
37 class IHash
38 {
39 public:
40 
41  IHash() = default;
42  virtual ~IHash() = default;
43  IHash(IHash&&) = default;
44  IHash& operator=(IHash&&) = default;
45  IHash(const IHash&) = default;
46  IHash& operator=(const IHash&) = default;
47 
53  virtual uint32_t get_hash_size() const = 0;
54 
70  virtual dvs_ret get_hash(char* hash) const = 0;
71 };
72 
73 } //namespace DVS
74 
75 #endif //___DVS_HASH_INTERFACE_H___
Interface to get hash information from DVS objects.
IHash(const IHash &)=default
support copying
virtual ~IHash()=default
default
IHash()=default
default
IHash & operator=(const IHash &)=default
default
IHash(IHash &&)=default
default
virtual dvs_ret get_hash(char *hash) const =0
Get the hash of the data.
virtual uint32_t get_hash_size() const =0
Get the size of the hash to use with IHash::get_hash()
IHash & operator=(IHash &&)=default
default
Contains enums used in C/C++ API.
Contains errors used in the DVS C/C++ API.
int32_t dvs_ret
Return value of methods, TODO.