Itasca C++ Interface
Loading...
Searching...
No Matches
iparametervalue.h
1#pragma once
2
3#include "shared/interface/itensordata.h"
4
5namespace fish {
6 // ParameterDesc - describes how to get a single value (double or string) from a parameter.
7 // Currently only works on a subset of parameter types.
8 // Note: List assumes list of doubles
9 enum class TreatAs { Scalar,Vector,Any,Tensor,List,String };
10#ifdef THREED
11 enum class Component { X,Y,Z,Mag };
12#else
13 enum class Component { X, Y, Mag };
14#endif
15 using Quantity = shared::ITensorData::Quantity;
17 TreatAs treatAs_ = TreatAs::Scalar;
18 Component component_ = Component::Mag;
19 Quantity quantity_ = Quantity::XX;
20 uint64 listIndex_ = 0;
21 bool stress_ = false;
22 };
23}
24// EoF
A Vector2 in 2D, a Vector3 in 3D.
Definition dim.h:117
std::basic_string< char8 > String
std::string of type Char
Definition basebool.h:9
Definition iparametervalue.h:16