Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
TFunction_Function Class Reference

Provides the following two services
More...

#include <TFunction_Function.hxx>

Inheritance diagram for TFunction_Function:
Inheritance graph
[legend]

Public Member Functions

 TFunction_Function ()
const Standard_GUIDGetDriverGUID () const
 Returns the GUID for this function's driver.

void SetDriverGUID (const Standard_GUID &guid)
 Sets the driver for this function as that
indentified by the GUID guid.

Standard_Boolean Failed () const
 Returns true if the execution failed

void SetFailure (const Standard_Integer mode=0)
 Sets the failed index.

Standard_Integer GetFailure () const
 Returns an index of failure if the execution of this function failed.
If this integer value is 0, no failure has occurred.
//! Implementation of Attribute methods:
===================================

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


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

virtual 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 Handle_TDF_Attribute NewEmpty () const
 Returns an new empty attribute from the good end
type. It is used by the copy algorithm.

virtual void References (const Handle< TDF_DataSet > &aDataSet) const
 Adds the first level referenced attributes and labels
to <aDataSet>.

For this, use the AddLabel or AddAttribute of
DataSet.

If there is none, do not implement the method.

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


Static Public Member Functions

static Handle_TFunction_Function Set (const TDF_Label &L)
 Static methods:
==============
//! Finds or Creates a function attribute on the label <L>.
Returns the function attribute.

static Handle_TFunction_Function Set (const TDF_Label &L, const Standard_GUID &DriverID)
 Finds or Creates a function attribute on the label <L>.
Sets a driver ID to the function.
Returns the function attribute.

static const Standard_GUIDGetID ()
 Returns the GUID for functions.
//! Returns a function found on the label.
//! Instance methods:
================


Detailed Description


Constructor & Destructor Documentation

TFunction_Function::TFunction_Function ( )

Member Function Documentation

virtual Standard_OStream& TFunction_Function::Dump ( Standard_OStream anOS) const [virtual]

Reimplemented from TDF_Attribute.

Standard_Boolean TFunction_Function::Failed ( ) const
const Standard_GUID& TFunction_Function::GetDriverGUID ( ) const
Standard_Integer TFunction_Function::GetFailure ( ) const
static const Standard_GUID& TFunction_Function::GetID ( ) [static]
const Standard_GUID& TFunction_Function::ID ( ) const [virtual]

Implements TDF_Attribute.

virtual Handle_TDF_Attribute TFunction_Function::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

virtual void TFunction_Function::References ( const Handle< TDF_DataSet > &  aDataSet) const [virtual]

Reimplemented from TDF_Attribute.

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

Implements TDF_Attribute.

static Handle_TFunction_Function TFunction_Function::Set ( const TDF_Label L,
const Standard_GUID DriverID 
) [static]
static Handle_TFunction_Function TFunction_Function::Set ( const TDF_Label L) [static]
void TFunction_Function::SetDriverGUID ( const Standard_GUID guid)
void TFunction_Function::SetFailure ( const Standard_Integer  mode = 0)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines