40namespace DamarisOutput
58 std::string visualizable_;
62 std::string time_varying_;
64 std::string centering_;
70 std::string select_mem_;
74 std::string select_file_;
78 std::string select_subset_;
104 std::vector<int> param_sizes_;
106 std::vector<int64_t> positions_;
108 bool parameters_set_;
111 std::vector<std::string> param_names_;
113 std::string variable_name_;
119 std::string dam_err_str_;
127 std::size_t current_size_;
189 const std::string& variable_name,
225 const std::string& variable_name,
239 parameters_set_ =
true;
242 void printError()
const;
244 bool hasError()
const
255 if (parameters_set_ ==
true) {
262 const std::string& variable_name()
const
264 return variable_name_;
293 if (parameters_set_ ==
true) {
294 return current_size_;
359 bool TestType(
const std::string& variable_name);
361 void formatTypeError(
const std::string&
var_name,
This class contains the extra elements that need to be part of a Damaris <variable> type.
Definition DamarisVar.hpp:48
std::string ReturnXMLForVariable()
Creates the XML representation of the variable from the available strings.
Definition DamarisVar.cpp:45
class to store a Damaris variable representation for the XML file (can be used with class DamarisKeyw...
Definition DamarisVar.hpp:101
std::size_t size()
Returns the number of elements in the memory area.
Definition DamarisVar.hpp:291
std::string returnXMLForVariable()
Creates the XML representation of the variable from the available strings.
Definition DamarisVar.cpp:141
T * data()
Returns the data pointer to shared memory, or nullptr if it has not been allocated.
Definition DamarisVar.hpp:253
void parameterIsSet()
Allow a user to indicate that the Damaris variable has allocated a size - This method is usefull as a...
Definition DamarisVar.hpp:237
void clearVariableDamarisShmem()
Method to release the memory of the data written to the Damaris variable - Indicates that Damaris may...
Definition DamarisVar.cpp:248
void setDamarisPosition(const std::vector< int64_t > &positionsVals)
Method to set the Damaris position values.
Definition DamarisVar.cpp:188
void commitVariableDamarisShmem()
Method to commit the memory of the data written to the Damaris variable - Indicates that we will not ...
Definition DamarisVar.cpp:235
void setDamarisParameterAndShmem(const std::vector< int > ¶mSizeVal)
Method to set the Damaris paramater values and set the shmem region data_ptr_.
Definition DamarisVar.hpp:281
void setDamarisParameter(const std::vector< int > ¶mSizeVal)
Method to set the Damaris paramater values.
Definition DamarisVar.cpp:148
void setPointersToDamarisShmem()
Method to set the internal pointer (data_ptr_) to the Damaris shared memory area.
Definition DamarisVar.cpp:209
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242