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, string, vector, or tensor) 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 enum class Component { X,Y,Z,Mag };
11 using Quantity = shared::ITensorData::Quantity;
13 TreatAs restrictType_ = TreatAs::Scalar; // What value you intent to ultimately pull from the parameter
14 TreatAs treatAs_ = TreatAs::Scalar; // What value you are expecting from the parameter
15 Component component_ = Component::Mag; // What scalar to pull from a vector
16 Quantity quantity_ = Quantity::XX; // What scalar to pull from a tensor
17 uint64 listIndex_ = 0; // What index to pull from a list
18 bool stress_ = false; // Does the tensor quantity represent a stress??
19 };
20}
21// EoF
A Vector2 in 2D, a Vector3 in 3D.
Definition dim.h:119
std::basic_string< char8 > String
std::string of type Char
Definition basebool.h:9
Definition iparametervalue.h:12