Open CASCADE Technology
6.5.4
|
#include <TDocStd_Owner.hxx>
Public Member Functions | |
TDocStd_Owner () | |
void | SetDocument (const Handle< TDocStd_Document > &document) |
Handle_TDocStd_Document | GetDocument () const |
const Standard_GUID & | ID () 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 Standard_OStream & | Dump (Standard_OStream &anOS) const |
Dumps the minimum information about <me> on <aStream>. | |
Static Public Member Functions | |
static const Standard_GUID & | GetID () |
class methods ============= | |
static void | SetDocument (const Handle< TDF_Data > &indata, const Handle< TDocStd_Document > &doc) |
static Handle_TDocStd_Document | GetDocument (const Handle< TDF_Data > &ofdata) |
Owner methods =============== |
virtual Standard_OStream& TDocStd_Owner::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
static Handle_TDocStd_Document TDocStd_Owner::GetDocument | ( | const Handle< TDF_Data > & | ofdata | ) | [static] |
Handle_TDocStd_Document TDocStd_Owner::GetDocument | ( | ) | const |
static const Standard_GUID& TDocStd_Owner::GetID | ( | ) | [static] |
const Standard_GUID& TDocStd_Owner::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
Handle_TDF_Attribute TDocStd_Owner::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
void TDocStd_Owner::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
void TDocStd_Owner::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
static void TDocStd_Owner::SetDocument | ( | const Handle< TDF_Data > & | indata, |
const Handle< TDocStd_Document > & | doc | ||
) | [static] |
void TDocStd_Owner::SetDocument | ( | const Handle< TDocStd_Document > & | document | ) |