Skip to main content

Post-processing tools 2023 R2

dvs_var_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_VAR_HASH_INTERFACE_H___
25 #define ___DVS_VAR_HASH_INTERFACE_H___
26 
29 
30 #include "dvs_var_interface.h"
31 
32 namespace DVS
33 {
34 
39 class IVarHash
40 {
41 public:
42 
43  IVarHash() = default;
44  virtual ~IVarHash() = default;
45  IVarHash(IVarHash&&) = default;
46  IVarHash& operator=(IVarHash&&) = default;
47  IVarHash(const IVarHash&) = default;
48  IVarHash& operator=(const IVarHash&) = default;
49 
56  virtual uint32_t get_var_hash_size(uint32_t index) const = 0;
57 
64  virtual uint32_t get_var_hash_size(const IVar* var) const = 0;
65 
83  virtual dvs_ret get_var_hash(uint32_t index, char* hash) const = 0;
84 
103  virtual dvs_ret get_var_hash(const IVar* var, char* hash) const = 0;
104 };
105 
106 } //namespace DVS
107 
108 #endif //___DVS_VAR_HASH_INTERFACE_H___
Interface to get variable hash information from DVS objects.
IVarHash(const IVarHash &)=default
support copying
IVarHash & operator=(IVarHash &&)=default
default
virtual dvs_ret get_var_hash(const IVar *var, char *hash) const =0
Get the hash of the variable data.
virtual ~IVarHash()=default
default
virtual dvs_ret get_var_hash(uint32_t index, char *hash) const =0
Get the hash of the variable data.
virtual uint32_t get_var_hash_size(const IVar *var) const =0
Get the size of the hash to use with IVarHash::get_var_hash()
IVarHash()=default
default
IVarHash & operator=(const IVarHash &)=default
default
virtual uint32_t get_var_hash_size(uint32_t index) const =0
Get the size of the hash to use with IVarHash::get_var_hash()
IVarHash(IVarHash &&)=default
default
Interface for variables for the DVS Reader API.
DVS Reader API Variable Interface.
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.