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

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

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-04-19 11:42:46 +03:00
committed by bugmaster
parent b69e576af0
commit 316ea29318
339 changed files with 1743 additions and 1972 deletions

View File

@@ -41,20 +41,20 @@ class StepData_SelectMember;
//! declared as for a kind (Integer String etc), then declared as
//! a list with its initial size, after this its items are set
//! Also it can be set in once if the HArray is ready
class StepData_Field
class StepData_Field
{
public:
DEFINE_STANDARD_ALLOC
//! Creates a Field, empty ("no value defined")
Standard_EXPORT StepData_Field();
//! Creates a Field from another one. If <copy> is True, Handled
//! data (Select,String,List, not entities) are copied
Standard_EXPORT StepData_Field(const StepData_Field& other, const Standard_Boolean copy = Standard_False);
//! Gets the copy of the values of another field
Standard_EXPORT void CopyFrom (const StepData_Field& other);
@@ -69,122 +69,122 @@ public:
//! Just before SetList, predeclares it as "any"
//! A Kind can be directly set here to declare a type
Standard_EXPORT void Clear (const Standard_Integer kind = 0);
//! Codes a Field as derived (no proper value)
Standard_EXPORT void SetDerived();
//! Directly sets the Integer value, if its Kind matches
//! Integer, Boolean, Logical, or Enum (does not change Kind)
Standard_EXPORT void SetInt (const Standard_Integer val);
//! Sets an Integer value (before SetList* declares it as Integer)
Standard_EXPORT void SetInteger (const Standard_Integer val = 0);
//! Sets a Boolean value (or predeclares a list as boolean)
Standard_EXPORT void SetBoolean (const Standard_Boolean val = Standard_False);
//! Sets a Logical Value (or predeclares a list as logical)
Standard_EXPORT void SetLogical (const StepData_Logical val = StepData_LFalse);
//! Sets a Real Value (or predeclares a list as Real);
Standard_EXPORT void SetReal (const Standard_Real val = 0.0);
//! Sets a String Value (or predeclares a list as String)
//! Does not redefine the Kind if it is alread String or Enum
//! Sets a String Value (or predeclares a list as String)
//! Does not redefine the Kind if it is already String or Enum
Standard_EXPORT void SetString (const Standard_CString val = "");
//! Sets an Enum Value (as its integer counterpart)
//! (or predeclares a list as Enum)
//! If <text> is given , also sets its textual expression
//! <val> negative means unknown (known values begin at 0)
Standard_EXPORT void SetEnum (const Standard_Integer val = -1, const Standard_CString text = "");
//! Sets a SelectMember (for Integer,Boolean,Enum,Real,Logical)
//! Hence, the value of the field is accessed through this member
Standard_EXPORT void SetSelectMember (const Handle(StepData_SelectMember)& val);
//! Sets an Entity Value
Standard_EXPORT void SetEntity (const Handle(Standard_Transient)& val);
//! Predeclares a list as of entity
Standard_EXPORT void SetEntity();
//! Declares a field as a list, with an initial size
//! Initial lower is defaulted as 1, can be defined
//! The list starts empty, typed by the last Set*
//! If no Set* before, sets it as "any" (transient/select)
Standard_EXPORT void SetList (const Standard_Integer size, const Standard_Integer first = 1);
//! Declares a field as an homogeneous square list, with initial
//! sizes, and initial lowers
Standard_EXPORT void SetList2 (const Standard_Integer siz1, const Standard_Integer siz2, const Standard_Integer f1 = 1, const Standard_Integer f2 = 1);
//! Sets an undetermined value : can be String, SelectMember,
//! HArray(1-2) ... else, an Entity
//! In case of an HArray, determines and records its size(s)
Standard_EXPORT void Set (const Handle(Standard_Transient)& val);
//! Declares an item of the list as undefined
//! (ignored if list not defined as String,Entity or Any)
Standard_EXPORT void ClearItem (const Standard_Integer num);
//! Internal access to an Integer Value for a list, plus its kind
Standard_EXPORT void SetInt (const Standard_Integer num, const Standard_Integer val, const Standard_Integer kind);
//! Sets an Integer Value for a list (rank num)
//! (recognizes a SelectMember)
Standard_EXPORT void SetInteger (const Standard_Integer num, const Standard_Integer val);
Standard_EXPORT void SetBoolean (const Standard_Integer num, const Standard_Boolean val);
Standard_EXPORT void SetLogical (const Standard_Integer num, const StepData_Logical val);
//! Sets an Enum Value (Integer counterpart), also its text
//! expression if known (if list has been set as "any")
Standard_EXPORT void SetEnum (const Standard_Integer num, const Standard_Integer val, const Standard_CString text = "");
Standard_EXPORT void SetReal (const Standard_Integer num, const Standard_Real val);
Standard_EXPORT void SetString (const Standard_Integer num, const Standard_CString val);
Standard_EXPORT void SetEntity (const Standard_Integer num, const Handle(Standard_Transient)& val);
Standard_EXPORT Standard_Boolean IsSet (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
//! Returns the kind of an item in a list or double list
//! It is the kind of the list, except if it is "Any", in such a
//! case the true kind is determined and returned
Standard_EXPORT Standard_Integer ItemKind (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
//! Returns the kind of the field
//! <type> True (D) : returns only the type itself
//! else, returns the complete kind
Standard_EXPORT Standard_Integer Kind (const Standard_Boolean type = Standard_True) const;
Standard_EXPORT Standard_Integer Arity() const;
Standard_EXPORT Standard_Integer Length (const Standard_Integer index = 1) const;
Standard_EXPORT Standard_Integer Lower (const Standard_Integer index = 1) const;
Standard_EXPORT Standard_Integer Int() const;
Standard_EXPORT Standard_Integer Integer (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Standard_Boolean Boolean (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT StepData_Logical Logical (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Standard_Real Real (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Standard_CString String (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Standard_Integer Enum (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Standard_CString EnumText (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Handle(Standard_Transient) Entity (const Standard_Integer n1 = 1, const Standard_Integer n2 = 1) const;
Standard_EXPORT Handle(Standard_Transient) Transient() const;

View File

@@ -67,7 +67,7 @@ public:
//! recognized by the resources
Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
//! Calls GlobalCheck for each of its recorded ressources
//! Calls GlobalCheck for each of its recorded resources
Standard_EXPORT virtual Standard_Boolean GlobalCheck (const Interface_Graph& G, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
//! Returns the Schema Name attached to each class of Protocol

View File

@@ -44,7 +44,7 @@ public:
//! Adds a Module bound with a Protocol to the list : does
//! nothing if already in the list, THAT IS, Same Type (exact
//! match) and Same State (that is, IsEqual is not required)
//! Once added, stores its attached Protocol in correspondance
//! Once added, stores its attached Protocol in correspondence
Standard_EXPORT void Add (const Handle(StepData_ReadWriteModule)& amodule, const Handle(StepData_Protocol)& aprotocol);
//! Returns the Module stored in a given GlobalNode

View File

@@ -43,12 +43,11 @@ class StepData_SelectMember;
//! to control an input Argument
//!
//! This class implies to designate each member Type by a Case
//! Number which is a positive Integer value (this allows a faster
//! treatement).
//! Number which is a positive Integer value (this allows a faster treatment).
//!
//! With this class, a specific SelectType can :
//! - recognize an Entity as complying or not with its definition,
//! - storing it, with the garanty that the stored Entity complies
//! - storing it, with the guarantee that the stored Entity complies
//! with the definition of the SelectType
//! - and (if judged useful) give the stored Entity under the good
//! Type rather than simply "Transient".

View File

@@ -35,7 +35,7 @@ class StepData_StepWriter;
//! these features :
//! - same form as for writing a STEP File (because it is clear
//! and compact enough, even if the names of the fields do not
//! appear) : thus, no additionnal resource is required
//! appear) : thus, no additional resource is required
//! - possibility to look for an entity itself (only its Type or
//! with its content), an entity and it shared items (one level)
//! or all the entities its refers to, directly or recursively.
@@ -61,7 +61,7 @@ public:
Standard_EXPORT StepData_StepWriter& StepWriter();
//! Dumps a Entity on an Messenger. Returns True if
//! sucess, False, if the entity to dump has not been recognized
//! success, False, if the entity to dump has not been recognized
//! by the Protocol. <level> can have one of these values :
//! - 0 : prints the TYPE only, as known in STEP Files (StepType)
//! If <ent> has not been regognized by the Protocol, or if its
@@ -72,7 +72,7 @@ public:
//! - 2 : dumps the entity completely, plus the item its refers to
//! at first level (a header message designates the starting
//! entity of the dump) <Lists Shared and Implied>
//! - 3 : dumps the entity and its refered items at any levels
//! - 3 : dumps the entity and its referred items at any levels
//!
//! For levels 1,2,3, the numbers displayed (form #nnn) are the
//! numbers of the corresponding entities in the Model

View File

@@ -57,7 +57,7 @@ public:
//! returns Header entities under the form of an iterator
Standard_EXPORT Interface_EntityIterator Header() const;
//! says if a Header entity has a specifed type
//! says if a Header entity has a specified type
Standard_EXPORT Standard_Boolean HasHeaderEntity (const Handle(Standard_Type)& atype) const;
//! Returns Header entity with specified type, if there is

View File

@@ -1289,7 +1289,7 @@ Standard_Boolean StepData_StepReaderData::ReadEntity(const Standard_Integer num,
if (!sel.Matches(entent))
{
errmess = new String("Parameter n0.%d (%s) : Entity has illegal type");
//fot not suppported STEP entity
//fot not supported STEP entity
if (!entent.IsNull() && entent->IsKind(STANDARD_TYPE(StepData_UndefinedEntity)))
sel.SetValue(entent);
}

View File

@@ -50,9 +50,9 @@ class StepData_StepReaderData;
DEFINE_STANDARD_HANDLE(StepData_StepReaderData, Interface_FileReaderData)
//! Specific FileReaderData for Step
//! Contains litteral description of entities (for each one : type
//! Contains literal description of entities (for each one : type
//! as a string, ident, parameter list)
//! provides references evaluation, plus access to litteral data
//! provides references evaluation, plus access to literal data
//! and specific access methods (Boolean, XY, XYZ)
class StepData_StepReaderData : public Interface_FileReaderData
{
@@ -99,9 +99,9 @@ public:
//! For a SubList or a Scope mark, <types> remains empty
Standard_EXPORT void ComplexType (const Standard_Integer num, TColStd_SequenceOfAsciiString& types) const;
//! Returns the Next "Componant" for a Complex Type Entity, of
//! which <num> is already a Componant (the first one or a next one)
//! Returns 0 for a Simple Type or for the last Componant
//! Returns the Next "Component" for a Complex Type Entity, of
//! which <num> is already a Component (the first one or a next one)
//! Returns 0 for a Simple Type or for the last Component
Standard_EXPORT Standard_Integer NextForComplex (const Standard_Integer num) const;
//! Determines the first component which brings a given name, for
@@ -170,7 +170,7 @@ public:
//! And if reading does not match its own description, the result
//! will be False
//! If <val> is not it not yet created, it will be (SelectNamed)
//! Usefull if a field is defined as a SelectMember, directly
//! useful if a field is defined as a SelectMember, directly
//! (SELECT with no Entity as member)
//! But SelectType also manages SelectMember (for SELECT with
//! some members as Entity, some other not)

View File

@@ -35,7 +35,7 @@ class Interface_InterfaceModel;
//! Specific FileReaderTool for Step; works with FileReaderData
//! provides references evaluation, plus access to litteral data
//! provides references evaluation, plus access to literal data
//! and specific methods defined by FileReaderTool
//! Remarks : works with a ReaderLib to load Entities
class StepData_StepReaderTool : public Interface_FileReaderTool

View File

@@ -12,7 +12,7 @@
// commercial license or contractual agreement.
// List of changes:
//skl 29.01.2003 - deleted one space symbol at the begining
//skl 29.01.2003 - deleted one space symbol at the beginning
// of strings from Header Section
#include <Interface_Check.hxx>

View File

@@ -109,7 +109,7 @@ public:
Standard_EXPORT void SendData();
//! Send an Entity of the Data Section. If it corresponds to a
//! Scope, also Sends the Scope informations and contained Items
//! Scope, also Sends the Scope information and contained Items
Standard_EXPORT void SendEntity (const Standard_Integer nument, const StepData_WriterLib& lib);
//! sets end of section; to be done before passing to next one
@@ -158,21 +158,21 @@ public:
//! sets entity's StepType, opens brakets, starts param no to 0
//! params are separated by comma
//! Remark : for a Multiple Type Entity (see Express ANDOR clause)
//! StartComplex must be called before sending componants, then
//! each "Componant" must be send separately (one call to
//! StartEntity for each one) : the Type which preceeds is then
//! automaticaly closed. Once all the componants have been sent,
//! StartComplex must be called before sending components, then
//! each "Component" must be sent separately (one call to
//! StartEntity for each one) : the Type which precedes is then
//! automatically closed. Once all the components have been sent,
//! EndComplex must be called, then and only then EndEntity
Standard_EXPORT void StartEntity (const TCollection_AsciiString& atype);
//! sends the start of a complex entity, which is a simple open
//! bracket (without increasing braket level)
//! It must be called JUST AFTER SendEntity and BEFORE sending
//! componants, each one begins by StartEntity
//! components, each one begins by StartEntity
Standard_EXPORT void StartComplex();
//! sends the end of a complex entity : a simple closed bracket
//! It must be called AFTER sending all the componants and BEFORE
//! It must be called AFTER sending all the components and BEFORE
//! the final call to EndEntity
Standard_EXPORT void EndComplex();
@@ -200,13 +200,13 @@ public:
//! prepares adding a parameter (that is, adds ',' except for
//! first one); normally for internal use; can be used to send
//! a totally empty parameter (with no litteral value)
//! a totally empty parameter (with no literal value)
Standard_EXPORT void AddParam();
//! sends an integer parameter
Standard_EXPORT void Send (const Standard_Integer val);
//! sends a real parameter (wroks with FloatWriter)
//! sends a real parameter (works with FloatWriter)
Standard_EXPORT void Send (const Standard_Real val);
//! sends a text given as string (it will be set between '...')
@@ -232,20 +232,20 @@ public:
//! sends a string exactly as it is given
Standard_EXPORT void SendString (const Standard_CString val);
//! sends an enum given by String (litteral expression)
//! sends an enum given by String (literal expression)
//! adds '.' around it if not done
//! Remark : val can be computed by class EnumTool from StepData:
//! StepWriter.SendEnum (myenum.Text(enumval));
Standard_EXPORT void SendEnum (const TCollection_AsciiString& val);
//! sends an enum given by String (litteral expression)
//! sends an enum given by String (literal expression)
//! adds '.' around it if not done
Standard_EXPORT void SendEnum (const Standard_CString val);
//! sends an array of real
Standard_EXPORT void SendArrReal (const Handle(TColStd_HArray1OfReal)& anArr);
//! sends an undefined (optionnal absent) parameter (by '$')
//! sends an undefined (optional absent) parameter (by '$')
Standard_EXPORT void SendUndef();
//! sends a "Derived" parameter (by '*'). A Derived Parameter has

View File

@@ -66,7 +66,7 @@ public:
//! Returns True if <me> defines a Multiple Type Entity (see ANDOR)
Standard_EXPORT Standard_Boolean IsComplex() const;
//! For a Multiple Type Entity, returns the Next "Componant"
//! For a Multiple Type Entity, returns the Next "Component"
//! For more than two Types, iterative definition (Next->Next...)
//! Returns a Null Handle for the end of the List
Standard_EXPORT Handle(StepData_UndefinedEntity) Next() const;