Open CASCADE Technology 6.6.0
|
Transient attribute wich register modified
labels. This attribute is attached to root label.
#include <TDocStd_Modified.hxx>
Public Member Functions | |
TDocStd_Modified () | |
Standard_Boolean | IsEmpty () const |
void | Clear () |
Standard_Boolean | AddLabel (const TDF_Label &L) |
add <L> as modified | |
Standard_Boolean | RemoveLabel (const TDF_Label &L) |
remove <L> as modified | |
const TDF_LabelMap & | Get () const |
returns modified label map | |
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 Standard_Boolean | IsEmpty (const TDF_Label &access) |
API class methods ================= | |
static Standard_Boolean | Add (const TDF_Label &alabel) |
static Standard_Boolean | Remove (const TDF_Label &alabel) |
static Standard_Boolean | Contains (const TDF_Label &alabel) |
static const TDF_LabelMap & | Get (const TDF_Label &access) |
if <IsEmpty> raise an exception. | |
static void | Clear (const TDF_Label &access) |
remove all modified labels. becomes empty | |
static const Standard_GUID & | GetID () |
Modified methods ================ |
TDocStd_Modified::TDocStd_Modified | ( | ) |
static Standard_Boolean TDocStd_Modified::Add | ( | const TDF_Label & | alabel | ) | [static] |
Standard_Boolean TDocStd_Modified::AddLabel | ( | const TDF_Label & | L | ) |
void TDocStd_Modified::Clear | ( | ) |
static void TDocStd_Modified::Clear | ( | const TDF_Label & | access | ) | [static] |
static Standard_Boolean TDocStd_Modified::Contains | ( | const TDF_Label & | alabel | ) | [static] |
virtual Standard_OStream& TDocStd_Modified::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
static const TDF_LabelMap& TDocStd_Modified::Get | ( | const TDF_Label & | access | ) | [static] |
const TDF_LabelMap& TDocStd_Modified::Get | ( | ) | const |
static const Standard_GUID& TDocStd_Modified::GetID | ( | ) | [static] |
const Standard_GUID& TDocStd_Modified::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
static Standard_Boolean TDocStd_Modified::IsEmpty | ( | const TDF_Label & | access | ) | [static] |
Standard_Boolean TDocStd_Modified::IsEmpty | ( | ) | const |
Handle_TDF_Attribute TDocStd_Modified::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
void TDocStd_Modified::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
static Standard_Boolean TDocStd_Modified::Remove | ( | const TDF_Label & | alabel | ) | [static] |
Standard_Boolean TDocStd_Modified::RemoveLabel | ( | const TDF_Label & | L | ) |
void TDocStd_Modified::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.