Open CASCADE Technology 6.6.0
|
Used to define an AsciiString attribute containing a TCollection_AsciiString
#include <TDataStd_AsciiString.hxx>
Public Member Functions | |
TDataStd_AsciiString () | |
void | Set (const TCollection_AsciiString &S) |
const TCollection_AsciiString & | Get () const |
Standard_Boolean | IsEmpty () 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 ============= //! Returns the GUID of the attribute. | |
static Handle_TDataStd_AsciiString | Set (const TDF_Label &label, const TCollection_AsciiString &string) |
Finds, or creates an AsciiString attribute and sets the string. the AsciiString attribute is returned. //! AsciiString methods =================== |
TDataStd_AsciiString::TDataStd_AsciiString | ( | ) |
virtual Standard_OStream& TDataStd_AsciiString::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
const TCollection_AsciiString& TDataStd_AsciiString::Get | ( | ) | const |
static const Standard_GUID& TDataStd_AsciiString::GetID | ( | ) | [static] |
const Standard_GUID& TDataStd_AsciiString::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
Standard_Boolean TDataStd_AsciiString::IsEmpty | ( | ) | const |
Handle_TDF_Attribute TDataStd_AsciiString::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
void TDataStd_AsciiString::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
void TDataStd_AsciiString::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
static Handle_TDataStd_AsciiString TDataStd_AsciiString::Set | ( | const TDF_Label & | label, |
const TCollection_AsciiString & | string | ||
) | [static] |
void TDataStd_AsciiString::Set | ( | const TCollection_AsciiString & | S | ) |