#include <TDataStd_NamedData.hxx>
Inheritance diagram for TDataStd_NamedData:
Public Member Functions | |
Standard_EXPORT | TDataStd_NamedData () |
Standard_Boolean | HasIntegers () const |
Returns true if at least one named integer value is kept in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasInteger (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains specified by Name integer value. . | |
Standard_EXPORT Standard_Integer | GetInteger (const TCollection_ExtendedString &theName) |
Returns the integer value specified by the Name. It returns 0 if internal map doesn't contain the specified integer (use HasInteger() to check before). . | |
Standard_EXPORT void | SetInteger (const TCollection_ExtendedString &theName, const Standard_Integer theInteger) |
Defines a named integer. If the integer already exists, it changes its value to <theinteger>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringInteger & | GetIntegersContainer () |
Returns the internal container of named integers. . | |
Standard_EXPORT void | ChangeIntegers (const TDataStd_DataMapOfStringInteger &theIntegers) |
Replace the container content by new content of the <theintegers>. . | |
Standard_Boolean | HasReals () const |
Returns true if at least one named real value is kept in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasReal (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains a real specified by Name. . | |
Standard_EXPORT Standard_Real | GetReal (const TCollection_ExtendedString &theName) |
Returns the named real. It returns 0.0 if there is no such a named real (use HasReal()). . | |
Standard_EXPORT void | SetReal (const TCollection_ExtendedString &theName, const Standard_Real theReal) |
Defines a named real. If the real already exists, it changes its value to <thereal>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringReal & | GetRealsContainer () |
Returns the internal container of named reals. . | |
Standard_EXPORT void | ChangeReals (const TDataStd_DataMapOfStringReal &theReals) |
Replace the container content by new content of the <thereals>. . | |
Standard_Boolean | HasStrings () const |
Returns true if there are some named strings in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasString (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains this named string. . | |
Standard_EXPORT const TCollection_ExtendedString & | GetString (const TCollection_ExtendedString &theName) |
Returns the named string. It returns an empty string if there is no such a named string (use HasString()). . | |
Standard_EXPORT void | SetString (const TCollection_ExtendedString &theName, const TCollection_ExtendedString &theString) |
Defines a named string. If the string already exists, it changes its value to <thestring>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringString & | GetStringsContainer () |
Returns the internal container of named strings. . | |
Standard_EXPORT void | ChangeStrings (const TDataStd_DataMapOfStringString &theStrings) |
Replace the container content by new content of the <thestrings>. . | |
Standard_Boolean | HasBytes () const |
Returns true if there are some named bytes in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasByte (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains this named byte. . | |
Standard_EXPORT Standard_Byte | GetByte (const TCollection_ExtendedString &theName) |
Returns the named byte. It returns 0 if there is no such a named byte (use HasByte()). . | |
Standard_EXPORT void | SetByte (const TCollection_ExtendedString &theName, const Standard_Byte theByte) |
Defines a named byte. If the byte already exists, it changes its value to <thebyte>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringByte & | GetBytesContainer () |
Returns the internal container of named bytes. . | |
Standard_EXPORT void | ChangeBytes (const TDataStd_DataMapOfStringByte &theBytes) |
Replace the container content by new content of the <thebytes>. . | |
Standard_Boolean | HasArraysOfIntegers () const |
Returns true if there are some named arrays of integer values in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasArrayOfIntegers (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains this named array of integer values. . | |
Standard_EXPORT const Handle_TColStd_HArray1OfInteger & | GetArrayOfIntegers (const TCollection_ExtendedString &theName) |
Returns the named array of integer values. It returns a NULL Handle if there is no such a named array of integers (use HasArrayOfIntegers()). . | |
Standard_EXPORT void | SetArrayOfIntegers (const TCollection_ExtendedString &theName, const Handle(TColStd_HArray1OfInteger)&theArrayOfIntegers) |
Defines a named array of integer values. If the array already exists, it changes its value to <thearrayofintegers>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfInteger & | GetArraysOfIntegersContainer () |
Returns the internal container of named arrays of integer values. . | |
Standard_EXPORT void | ChangeArraysOfIntegers (const TDataStd_DataMapOfStringHArray1OfInteger &theArraysOfIntegers) |
Replace the container content by new content of the <thearraysofintegers>. . | |
Standard_Boolean | HasArraysOfReals () const |
Returns true if there are some named arrays of real values in the attribute. . | |
Standard_EXPORT Standard_Boolean | HasArrayOfReals (const TCollection_ExtendedString &theName) const |
Returns true if the attribute contains this named array of real values. . | |
Standard_EXPORT const Handle_TColStd_HArray1OfReal & | GetArrayOfReals (const TCollection_ExtendedString &theName) |
Returns the named array of real values. It returns a NULL Handle if there is no such a named array of reals (use HasArrayOfReals()). . | |
Standard_EXPORT void | SetArrayOfReals (const TCollection_ExtendedString &theName, const Handle(TColStd_HArray1OfReal)&theArrayOfReals) |
Defines a named array of real values. If the array already exists, it changes its value to <thearrayofreals>. . | |
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfReal & | GetArraysOfRealsContainer () |
Returns the internal container of named arrays of real values. . | |
Standard_EXPORT void | ChangeArraysOfReals (const TDataStd_DataMapOfStringHArray1OfReal &theArraysOfReals) |
Replace the container content by new content of the <thearraysofreals>. . | |
Standard_EXPORT const Standard_GUID & | ID () const |
Returns the ID of the attribute. . | |
Standard_EXPORT void | Restore (const Handle(TDF_Attribute)&With) |
Restores the backuped contents from <anattribute> into this one. It is used when aborting a transaction. . | |
Standard_EXPORT Handle_TDF_Attribute | NewEmpty () const |
Returns an new empty attribute from the good end type. It is used by the copy algorithm. . | |
Standard_EXPORT 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_EXPORT Standard_OStream & | Dump (Standard_OStream &anOS) const |
Dumps the minimum information about <me> on <astream>. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Static Public Member Functions | |
static Standard_EXPORT const Standard_GUID & | GetID () |
Static methods ============== //! Returns the ID of the named data attribute. . | |
static Standard_EXPORT Handle_TDataStd_NamedData | Set (const TDF_Label &label) |
Finds or creates a named data attribute. . | |
Private Attributes | |
Handle_TDataStd_HDataMapOfStringInteger | myIntegers |
Handle_TDataStd_HDataMapOfStringReal | myReals |
Handle_TDataStd_HDataMapOfStringString | myStrings |
Handle_TDataStd_HDataMapOfStringByte | myBytes |
Handle_TDataStd_HDataMapOfStringHArray1OfInteger | myArraysOfIntegers |
Handle_TDataStd_HDataMapOfStringHArray1OfReal | myArraysOfReals |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements TDF_Attribute. |
|
Implements TDF_Attribute. |
|
Implements TDF_Attribute. |
|
Implements TDF_Attribute. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|