Skip to main content

Post-processing tools 2023 R2

dvs_plot_chunk_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_PLOT_CHUNK_INTERFACE_H___
25 #define ___DVS_PLOT_CHUNK_INTERFACE_H___
26 
29 
30 #include "dvs_object_interface.h"
31 #include "dvs_hash_interface.h"
32 
33 namespace DVS
34 {
35 
50 class IPlotChunk : public DVS::IHash
51 {
52 public:
53 
54  IPlotChunk() = default;
55  virtual ~IPlotChunk() = default;
56  IPlotChunk(IPlotChunk&&) = default;
58  IPlotChunk(const IPlotChunk&) = default;
59  IPlotChunk& operator=(const IPlotChunk&) = default;
60 
66  virtual float get_time() const = 0;
67 
77  virtual uint32_t get_rank() const = 0;
78 
84  virtual const DVS::IObject* get_object() const = 0;
85 
114  virtual dvs_ret get_data(uint32_t* num_values, float* x_axis_values, float* y_axis_values) = 0;
115 };
116 
117 } //namespace DVS
118 
119 #endif //___DVS_PLOT_CHUNK_INTERFACE_H___
Interface to get hash information from DVS objects.
Interface for part/plot objects for DVS Reader API.
Plot Chunk Interface for DVS Reader API.
IPlotChunk(IPlotChunk &&)=default
default
IPlotChunk & operator=(const IPlotChunk &)=default
default
IPlotChunk(const IPlotChunk &)=default
support copying
IPlotChunk & operator=(IPlotChunk &&)=default
default
virtual dvs_ret get_data(uint32_t *num_values, float *x_axis_values, float *y_axis_values)=0
Get data for plot chunk.
virtual const DVS::IObject * get_object() const =0
Get the plot definition this plot chunk is associated with.
virtual uint32_t get_rank() const =0
Get the rank for the plot.
IPlotChunk()=default
default
virtual ~IPlotChunk()=default
default
virtual float get_time() const =0
Get the time for this plot.
DVS Reader API Hash Interface.
DVS Reader API Object 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.