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

Transient attribute wich register modified
labels. This attribute is attached to root label.

#include <TDocStd_Modified.hxx>

Inheritance diagram for TDocStd_Modified:
Inheritance graph
[legend]

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_LabelMapGet () const
 returns modified label map

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 Standard_OStreamDump (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_LabelMapGet (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_GUIDGetID ()
 Modified methods
================


Constructor & Destructor Documentation


Member Function Documentation

static Standard_Boolean TDocStd_Modified::Add ( const TDF_Label alabel) [static]
static void TDocStd_Modified::Clear ( const TDF_Label access) [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]

Implements TDF_Attribute.

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.

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

Implements TDF_Attribute.


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