Open CASCADE Technology 6.6.0
|
Provides the following two services
More...
#include <TFunction_Function.hxx>
Public Member Functions | |
TFunction_Function () | |
const Standard_GUID & | GetDriverGUID () 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_GUID & | ID () 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_OStream & | Dump (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_GUID & | GetID () |
Returns the GUID for functions. //! Returns a function found on the label. //! Instance methods: ================ |
TFunction_Function::TFunction_Function | ( | ) |
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 | ) |