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
TDataStd_Variable Class Reference

Variable attribute.
==================

More...

#include <TDataStd_Variable.hxx>

Inheritance diagram for TDataStd_Variable:
Inheritance graph
[legend]

Public Member Functions

 TDataStd_Variable ()
void Name (const TCollection_ExtendedString &string)
 set or change the name of the variable, in myUnknown
and my associated Name attribute.

const TCollection_ExtendedStringName () const
 returns string stored in the associated Name
attribute.

void Set (const Standard_Real value, const TDataStd_RealEnum dimension=TDataStd_SCALAR) const
 retrieve or create the associated real attribute and
set the value . if creation, dimension is
written.

Standard_Boolean IsValued () const
 returns True if a Real attribute is associated.

Standard_Real Get () const
 returns value stored in associated Real attribute.

Handle_TDataStd_Real Real () const
 returns associated Real attribute.

Standard_Boolean IsAssigned () const
 returns True if an Expression attribute is associated.
//! create(if doesn't exist), set and returns the assigned
expression attribute.

Handle_TDataStd_Expression Assign () const
 create(if doesn't exist) and returns the assigned
expression attribute. fill it after.

void Desassign () const
 if <me> is assigned delete the associated expression
attribute.

Handle_TDataStd_Expression Expression () const
 if <me> is assigned, returns associated Expression
attribute.

Standard_Boolean IsCaptured () const
 shortcut for <Real()->IsCaptured()>

Standard_Boolean IsConstant () const
 A constant value is not modified by regeneration.

void Unit (const TCollection_AsciiString &unit)
const TCollection_AsciiStringUnit () const
 to read/write fields
===================

void Constant (const Standard_Boolean status)
 if <status> is True, this variable will not be
modified by the solver.

const Standard_GUIDID () const
 Returns the ID of the attribute.


void Restore (const Handle< TDF_Attribute > &With)
 Restores the backuped contents from <anAttribute>
into this one. It is used when aborting a
transaction.

Handle_TDF_Attribute NewEmpty () const
 Returns an new empty attribute from the good end
type. It is used by the copy algorithm.

void Paste (const Handle< TDF_Attribute > &Into, const Handle< TDF_RelocationTable > &RT) const
 This method is different from the "Copy" one,
because it is used when copying an attribute from
a source structure into a target structure. This
method may paste the contents of <me> into
<intoAttribute>.

The given pasted attribute can be full or empty of
its contents. But don't make a NEW! Just set the
contents!

It is possible to use <aRelocationTable> to
get/set the relocation value of a source
attribute.

virtual void References (const Handle< TDF_DataSet > &DS) const
 to export reference to the associated Name attribute.

virtual Standard_OStreamDump (Standard_OStream &anOS) const
 Dumps the minimum information about <me> on
<aStream>.


Static Public Member Functions

static const Standard_GUIDGetID ()
 class methods
=============

static Handle_TDataStd_Variable Set (const TDF_Label &label)
 Find, or create, a Variable attribute.
//! Real methods
============


Detailed Description

      * A variable is  associated to a TDataStd_Real (which <br>
     contains its    current  value) and  a   TDataStd_Name <br>
     attribute (which  contains  its name).  It  contains a <br>
     constant flag, and a Unit <br>



Constructor & Destructor Documentation


Member Function Documentation

Handle_TDataStd_Expression TDataStd_Variable::Assign ( ) const
virtual Standard_OStream& TDataStd_Variable::Dump ( Standard_OStream anOS) const [virtual]

Reimplemented from TDF_Attribute.

Handle_TDataStd_Expression TDataStd_Variable::Expression ( ) const

Implements TDF_Attribute.

Handle_TDF_Attribute TDataStd_Variable::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

void TDataStd_Variable::Paste ( const Handle< TDF_Attribute > &  intoAttribute,
const Handle< TDF_RelocationTable > &  aRelocationTable 
) const [virtual]

Implements TDF_Attribute.

Handle_TDataStd_Real TDataStd_Variable::Real ( ) const
virtual void TDataStd_Variable::References ( const Handle< TDF_DataSet > &  DS) const [virtual]

Reimplemented from TDF_Attribute.

void TDataStd_Variable::Restore ( const Handle< TDF_Attribute > &  anAttribute) [virtual]

Implements TDF_Attribute.

static Handle_TDataStd_Variable TDataStd_Variable::Set ( const TDF_Label label) [static]

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