20 #ifndef DAMARISVAR_HPP 21 #define DAMARISVAR_HPP 40 namespace DamarisOutput
56 std::string visualizable_;
61 std::string time_varying_;
63 std::string centering_;
69 std::string select_mem_;
71 std::string select_file_;
75 std::string select_subset_;
103 std::vector<int> param_sizes_;
105 std::vector<int64_t> positions_;
107 bool parameters_set_;
109 std::vector<std::string> param_names_;
112 std::string variable_name_;
119 std::string dam_err_str_;
125 std::size_t current_size_;
188 const std::vector<std::string>& param_names,
189 const std::string& variable_name,
223 const std::vector<std::string>& param_names,
224 const std::vector<int>& param_values,
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,
362 const std::string& type_name1,
363 const std::string& type_name2);
void commitVariableDamarisShmem()
Method to commit the memory of the data written to the Damaris variable - Indicates that we will not ...
Definition: DamarisVar.cpp:235
std::string ReturnXMLForVariable()
Creates the XML representation of the variable from the available strings.
Definition: DamarisVar.cpp:45
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
std::size_t size()
Returns the number of elements in the memory area.
Definition: DamarisVar.hpp:291
void setDamarisParameter(const std::vector< int > ¶mSizeVal)
Method to set the Damaris paramater values.
Definition: DamarisVar.cpp:148
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
void setDamarisPosition(const std::vector< int64_t > &positionsVals)
Method to set the Damaris position values.
Definition: DamarisVar.cpp:188
class to store a Damaris variable representation for the XML file (can be used with class DamarisKeyw...
Definition: DamarisVar.hpp:100
void setPointersToDamarisShmem()
Method to set the internal pointer (data_ptr_) to the Damaris shared memory area. ...
Definition: DamarisVar.cpp:209
DamarisVar(int dims, const std::vector< std::string > ¶m_names, const std::string &variable_name, int rank)
Constructor - sets private data values and dos not initialise the shared memory area.
Definition: DamarisVar.cpp:77
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
std::string returnXMLForVariable()
Creates the XML representation of the variable from the available strings.
Definition: DamarisVar.cpp:141
void clearVariableDamarisShmem()
Method to release the memory of the data written to the Damaris variable - Indicates that Damaris may...
Definition: DamarisVar.cpp:248
T * data()
Returns the data pointer to shared memory, or nullptr if it has not been allocated.
Definition: DamarisVar.hpp:253
This class contains the extra elements that need to be part of a Damaris <variable> type...
Definition: DamarisVar.hpp:47