7#ifndef XFA_FXFA_PARSER_CXFA_MEASUREMENT_H_
8#define XFA_FXFA_PARSER_CXFA_MEASUREMENT_H_
10#include "core/fxcrt/widestring.h"
11#include "xfa/fxfa/fxfa_basic.h"
33 void SetString(WideStringView wsMeasure);
34 bool ToUnitInternal(
XFA_Unit eUnit,
float* fValue)
const;
36 float m_fValue = 0.0f;
absl::optional< int32_t > GetValue(uint32_t key) const
absl::optional< WideString > GetString(uint32_t key) const
absl::optional< CXFA_Measurement > GetMeasurement(uint32_t key) const
void MergeDataFrom(const CFXJSE_MapModule *pSrc)
void SetValue(uint32_t key, int32_t value)
void SetMeasurement(uint32_t key, const CXFA_Measurement &measurement)
CFXJSE_MapModule & operator=(const CFXJSE_MapModule &that)=delete
void SetString(uint32_t key, const WideString &wsString)
void RemoveKey(uint32_t key)
CFXJSE_MapModule(const CFXJSE_MapModule &that)=delete
bool HasKey(uint32_t key) const
CXFA_Measurement(float fValue, XFA_Unit eUnit)
void Set(float fValue, XFA_Unit eUnit)
CXFA_Measurement(WideStringView wsMeasure)
float ToUnit(XFA_Unit eUnit) const
static XFA_Unit GetUnitFromString(WideStringView wsUnit)
WideString ToString() const