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

Associates a directory in the data framework with
a TDataStd_TagSource attribute.
You can create a new directory label and add
sub-directory or object labels to it,

#include <TDataStd_Directory.hxx>

Inheritance diagram for TDataStd_Directory:
Inheritance graph
[legend]

Public Member Functions

 TDataStd_Directory ()
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 void References (const Handle< TDF_DataSet > &DS) 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 Standard_Boolean Find (const TDF_Label &current, Handle< TDataStd_Directory > &D)
 class methods
=============
//! Searches for a directory attribute on the label
current, or on one of the father labels of current.
If a directory attribute is found, true is returned,
and the attribute found is set as D.

static Handle_TDataStd_Directory New (const TDF_Label &label)
 Creates an enpty Directory attribute, located at
<label>. Raises if <label> has attribute

static Handle_TDataStd_Directory AddDirectory (const Handle< TDataStd_Directory > &dir)
 Creates a new sub-label and sets the
sub-directory dir on that label.

static TDF_Label MakeObjectLabel (const Handle< TDataStd_Directory > &dir)
 Makes new label and returns it to insert
other object attributes (sketch,part...etc...)

static const Standard_GUIDGetID ()
 Directory methods
===============


Constructor & Destructor Documentation

TDataStd_Directory::TDataStd_Directory ( )

Member Function Documentation

static Handle_TDataStd_Directory TDataStd_Directory::AddDirectory ( const Handle< TDataStd_Directory > &  dir) [static]
virtual Standard_OStream& TDataStd_Directory::Dump ( Standard_OStream anOS) const [virtual]

Reimplemented from TDF_Attribute.

static Standard_Boolean TDataStd_Directory::Find ( const TDF_Label current,
Handle< TDataStd_Directory > &  D 
) [static]
static const Standard_GUID& TDataStd_Directory::GetID ( ) [static]
const Standard_GUID& TDataStd_Directory::ID ( ) const [virtual]

Implements TDF_Attribute.

static TDF_Label TDataStd_Directory::MakeObjectLabel ( const Handle< TDataStd_Directory > &  dir) [static]
static Handle_TDataStd_Directory TDataStd_Directory::New ( const TDF_Label label) [static]
Handle_TDF_Attribute TDataStd_Directory::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Reimplemented from TDF_Attribute.

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

Implements TDF_Attribute.


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