Itasca C++ Interface
Loading...
Searching...
No Matches
iparametervalue.h
1
#pragma once
2
3
#include "shared/interface/itensordata.h"
4
5
namespace
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;
12
struct
IParameterValue
{
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
fish::IParameterValue
Definition
iparametervalue.h:12
common
fish
interface
iparametervalue.h
Generated by
1.16.1