Open CASCADE Technology 6.6.0
|
Now strictly equivalent to TypedValue from MoniTool,
except for ParamType which remains for compatibility reasons
This class allows to dynamically manage .. typed values, i.e.
values which have an alphanumeric expression, but with
controls. Such as "must be an Integer" or "Enumerative Text"
etc
Hence, a TypedValue brings a specification (type + constraints
if any) and a value. Its basic form is a string, it can be
specified as integer or real or enumerative string, then
queried as such.
Its string content, which is a Handle(HAsciiString) can be
shared by other data structures, hence gives a direct on line
access to its value.
#include <Interface_TypedValue.hxx>
Public Member Functions | |
Interface_TypedValue (const Standard_CString name, const Interface_ParamType type=Interface_ParamText, const Standard_CString init="") | |
Creates a TypedValue, with a name type gives the type of the parameter, default is free text Also available : Integer, Real, Enum, Entity (i.e. Object) More precise specifications, titles, can be given to the TypedValue once created init gives an initial value. If it is not given, the TypedValue begins as "not set", its value is empty | |
Interface_ParamType | Type () const |
Returns the type I.E. calls ValueType then makes correspondance between ParamType from Interface (which remains for compatibility reasons) and ValueType from MoniTool | |
Static Public Member Functions | |
static MoniTool_ValueType | ParamTypeToValueType (const Interface_ParamType typ) |
Correspondance ParamType from Interface to ValueType from MoniTool | |
static Interface_ParamType | ValueTypeToParamType (const MoniTool_ValueType typ) |
Correspondance ParamType from Interface to ValueType from MoniTool |
Interface_TypedValue::Interface_TypedValue | ( | const Standard_CString | name, |
const Interface_ParamType | type = Interface_ParamText , |
||
const Standard_CString | init = "" |
||
) |
static MoniTool_ValueType Interface_TypedValue::ParamTypeToValueType | ( | const Interface_ParamType | typ | ) | [static] |
Interface_ParamType Interface_TypedValue::Type | ( | ) | const |
static Interface_ParamType Interface_TypedValue::ValueTypeToParamType | ( | const MoniTool_ValueType | typ | ) | [static] |