1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031939: Coding - correction of spelling errors in comments [part 12]

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-05-04 16:03:06 +03:00
committed by kgv
parent 2641792e45
commit 03ca365a6c
105 changed files with 259 additions and 277 deletions

View File

@@ -64,7 +64,7 @@ TDF_Label TDataStd_Current::Get (const TDF_Label& access)
// TDF_Label current;
Handle(TDataStd_Current) A;
if (!access.Data()->Root().FindAttribute (TDataStd_Current::GetID(), A)) {
throw Standard_DomainError("TDataStd_Current::Get : not setted");
throw Standard_DomainError("TDataStd_Current::Get : not set");
}
return A->GetLabel();
}

View File

@@ -27,7 +27,7 @@ class TDF_RelocationTable;
class TDataStd_GenericEmpty;
DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute)
//! An ancestor attibute for all attributes which have no fields.
//! An ancestor attribute for all attributes which have no fields.
//! If an attribute inherits this one it should not have drivers for persistence.
class TDataStd_GenericEmpty : public TDF_Attribute
{

View File

@@ -25,7 +25,7 @@ class TDF_RelocationTable;
class TDataStd_GenericExtString;
DEFINE_STANDARD_HANDLE(TDataStd_GenericExtString, TDF_Attribute)
//! An ancestor attibute for all attributes which have TCollection_ExtendedString field.
//! An ancestor attribute for all attributes which have TCollection_ExtendedString field.
//! If an attribute inherits this one it should not have drivers for persistence.
//! Also this attribute provides functionality to have on the same label same attributes with different IDs.
class TDataStd_GenericExtString : public TDF_Attribute

View File

@@ -44,7 +44,7 @@ public:
//! Returns the ID of the named data attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates a named data attribute.
Standard_EXPORT static Handle(TDataStd_NamedData) Set (const TDF_Label& label);
@@ -52,26 +52,26 @@ public:
//! Empty constructor.
Standard_EXPORT TDataStd_NamedData();
//! Returns true if at least one named integer value is kept in the attribute.
Standard_Boolean HasIntegers() const { return !myIntegers.IsNull(); }
//! Returns true if the attribute contains specified by Name
//! integer value.
Standard_EXPORT Standard_Boolean HasInteger (const TCollection_ExtendedString& theName) const;
//! 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 Standard_Integer GetInteger (const TCollection_ExtendedString& theName);
//! Defines a named integer.
//! If the integer already exists, it changes its value to <theInteger>.
Standard_EXPORT void SetInteger (const TCollection_ExtendedString& theName, const Standard_Integer theInteger);
//! Returns the internal container of named integers.
Standard_EXPORT const TColStd_DataMapOfStringInteger& GetIntegersContainer();
//! Replace the container content by new content of the <theIntegers>.
Standard_EXPORT void ChangeIntegers (const TColStd_DataMapOfStringInteger& theIntegers);
@@ -80,70 +80,70 @@ public:
//! Returns true if the attribute contains a real specified by Name.
Standard_EXPORT Standard_Boolean HasReal (const TCollection_ExtendedString& theName) const;
//! Returns the named real.
//! It returns 0.0 if there is no such a named real
//! (use HasReal()).
Standard_EXPORT Standard_Real GetReal (const TCollection_ExtendedString& theName);
//! Defines a named real.
//! If the real already exists, it changes its value to <theReal>.
Standard_EXPORT void SetReal (const TCollection_ExtendedString& theName, const Standard_Real theReal);
//! Returns the internal container of named reals.
Standard_EXPORT const TDataStd_DataMapOfStringReal& GetRealsContainer();
//! Replace the container content by new content of the <theReals>.
Standard_EXPORT void ChangeReals (const TDataStd_DataMapOfStringReal& theReals);
//! Returns true if there are some named strings in the attribute.
Standard_Boolean HasStrings() const { return !myStrings.IsNull(); }
//! Returns true if the attribute contains this named string.
Standard_EXPORT Standard_Boolean HasString (const TCollection_ExtendedString& theName) const;
//! Returns the named string.
//! It returns an empty string if there is no such a named string
//! (use HasString()).
Standard_EXPORT const TCollection_ExtendedString& GetString (const TCollection_ExtendedString& theName);
//! Defines a named string.
//! If the string already exists, it changes its value to <theString>.
Standard_EXPORT void SetString (const TCollection_ExtendedString& theName, const TCollection_ExtendedString& theString);
//! Returns the internal container of named strings.
Standard_EXPORT const TDataStd_DataMapOfStringString& GetStringsContainer();
//! Replace the container content by new content of the <theStrings>.
Standard_EXPORT void ChangeStrings (const TDataStd_DataMapOfStringString& theStrings);
//! Returns true if there are some named bytes in the attribute.
Standard_Boolean HasBytes() const { return !myBytes.IsNull(); }
//! Returns true if the attribute contains this named byte.
Standard_EXPORT Standard_Boolean HasByte (const TCollection_ExtendedString& theName) const;
//! Returns the named byte.
//! It returns 0 if there is no such a named byte
//! (use HasByte()).
Standard_EXPORT Standard_Byte GetByte (const TCollection_ExtendedString& theName);
//! Defines a named byte.
//! If the byte already exists, it changes its value to <theByte>.
Standard_EXPORT void SetByte (const TCollection_ExtendedString& theName, const Standard_Byte theByte);
//! Returns the internal container of named bytes.
Standard_EXPORT const TDataStd_DataMapOfStringByte& GetBytesContainer();
//! Replace the container content by new content of the <theBytes>.
Standard_EXPORT void ChangeBytes (const TDataStd_DataMapOfStringByte& theBytes);
//! Returns true if there are some named arrays of integer values in the attribute.
Standard_Boolean HasArraysOfIntegers() const { return !myArraysOfIntegers.IsNull(); }
//! Returns true if the attribute contains this named array of integer values.
Standard_EXPORT Standard_Boolean HasArrayOfIntegers (const TCollection_ExtendedString& theName) const;
//! Returns the named array of integer values.
//! It returns a NULL Handle if there is no such a named array of integers
//! (use HasArrayOfIntegers()).
@@ -161,16 +161,16 @@ public:
//! Returns the internal container of named arrays of integer values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfInteger& GetArraysOfIntegersContainer();
//! Replace the container content by new content of the <theArraysOfIntegers>.
Standard_EXPORT void ChangeArraysOfIntegers (const TDataStd_DataMapOfStringHArray1OfInteger& theArraysOfIntegers);
//! Returns true if there are some named arrays of real values in the attribute.
Standard_Boolean HasArraysOfReals() const { return !myArraysOfReals.IsNull(); }
//! Returns true if the attribute contains this named array of real values.
Standard_EXPORT Standard_Boolean HasArrayOfReals (const TCollection_ExtendedString& theName) const;
//! Returns the named array of real values.
//! It returns a NULL Handle if there is no such a named array of reals
//! (use HasArrayOfReals()).
@@ -188,7 +188,7 @@ public:
//! Returns the internal container of named arrays of real values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfReal& GetArraysOfRealsContainer();
//! Replace the container content by new content of the <theArraysOfReals>.
Standard_EXPORT void ChangeArraysOfReals (const TDataStd_DataMapOfStringHArray1OfReal& theArraysOfReals);
@@ -213,7 +213,7 @@ public: //! @name late-load deferred data interface
//!
//! Usage scenarios:
//! - Application displays model in read-only way.
//! Late-load elements are loaded temporarily on demand and immediatly unloaded.
//! Late-load elements are loaded temporarily on demand and immediately unloaded.
//! theNamedData->LoadDeferredData (true);
//! TCollection_AsciiString aValue = theNamedData->GetString (theKey);
//! theNamedData->UnloadDeferredData();
@@ -227,7 +227,7 @@ public: //! @name late-load deferred data interface
virtual Standard_Boolean HasDeferredData() const { return false; }
//! Load data from deferred storage, without calling Backup().
//! As result, the content of the object will be overidden by data from deferred storage (which is normally read-only).
//! As result, the content of the object will be overridden by data from deferred storage (which is normally read-only).
//! @param theToKeepDeferred [in] when TRUE, the link to deferred storage will be preserved
//! so that it will be possible calling UnloadDeferredData() afterwards for releasing memory
//! @return FALSE if deferred storage is unavailable or deferred data has been already loaded
@@ -283,7 +283,7 @@ public: //! @name TDF_Attribute interface
Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
//! Dumps the content of me into the stream
Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;

View File

@@ -545,7 +545,7 @@ void TDataStd_TreeNode::AfterAddition() {
//=======================================================================
//TreeNode : BeforeForget
//purpose : Disconnect the TreeNode from the tree.
// Backuped attribute is normaly not concerned by such an operation
// Backuped attribute is normally not concerned by such an operation
//=======================================================================
void TDataStd_TreeNode::BeforeForget() {

View File

@@ -200,8 +200,7 @@ public:
//! ===================================
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
//! Returns the tree ID (default or explicit one depending
//! onthe Set method used).
//! Returns the tree ID (default or explicit one depending on the Set method used).
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;