Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
Interface_TypedValue Class Reference

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>

Inheritance diagram for Interface_TypedValue:
Inheritance graph
[legend]

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


Constructor & Destructor Documentation


Member Function Documentation


The documentation for this class was generated from the following file: