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

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

Fix various typos

Fixed via `codespell v2.1.dev
This commit is contained in:
luz paz
2020-12-16 11:58:16 +03:00
committed by bugmaster
parent 7fb9d6d573
commit 0177fe2617
196 changed files with 476 additions and 1351 deletions

View File

@@ -96,9 +96,9 @@ static Handle(IGESData_DefaultSpecific) speci;
Interface_Static::Init ("XSTEP","read.iges.resource.name",'t',"IGES");
Interface_Static::Init ("XSTEP","write.iges.sequence",'t',"ToIGES");
Interface_Static::Init ("XSTEP","read.iges.sequence",'t',"FromIGES");
// sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transfering
// invisiable sub entities which logicaly depend on the grouping entities
// sln 11.06.2002 OCC448 : Initialize "read.onlyvisible" parameter to control transferring
// invisible sub entities which logically depend on the grouping entities
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'e',"");
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"ematch 0");
Interface_Static::Init ("XSTEP","read.iges.onlyvisible",'&',"eval Off");

View File

@@ -24,10 +24,9 @@
#include <Standard_Integer.hxx>
#include <IGESData_DefType.hxx>
//! description of a directory component which can be either
//! undefined (let Void), defined as a Reference to an entity,
//! or as a Rank, integer value adressing a builtin table
//! or as a Rank, integer value addressing a builtin table
//! The entity reference is not included here, only reference
//! status is kept (because entity type must be adapted)
class IGESData_DefSwitch
@@ -36,7 +35,6 @@ public:
DEFINE_STANDARD_ALLOC
//! creates a DefSwitch as Void
Standard_EXPORT IGESData_DefSwitch();
@@ -55,28 +53,10 @@ public:
//! returns Value as Integer (sensefull for a Rank)
Standard_EXPORT Standard_Integer Value() const;
protected:
private:
Standard_Integer theval;
};
#endif // _IGESData_DefSwitch_HeaderFile

View File

@@ -26,22 +26,19 @@
#include <Standard_CString.hxx>
class IGESData_IGESType;
//! literal/numeric description of an entity's directory section,
//! taken from file
//! literal/numeric description of an entity's directory section, taken from file
class IGESData_DirPart
{
public:
DEFINE_STANDARD_ALLOC
//! creates an empty DirPart, ready to be filled by Init
Standard_EXPORT IGESData_DirPart();
//! fills DirPart with consistant data read from file
//! fills DirPart with consistent data read from file
Standard_EXPORT void Init (const Standard_Integer i1, const Standard_Integer i2, const Standard_Integer i3, const Standard_Integer i4, const Standard_Integer i5, const Standard_Integer i6, const Standard_Integer i7, const Standard_Integer i8, const Standard_Integer i9, const Standard_Integer i19, const Standard_Integer i11, const Standard_Integer i12, const Standard_Integer i13, const Standard_Integer i14, const Standard_Integer i15, const Standard_Integer i16, const Standard_Integer i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript);
//! returns values recorded in DirPart
//! (content of cstrings are modified)
Standard_EXPORT void Values (Standard_Integer& i1, Standard_Integer& i2, Standard_Integer& i3, Standard_Integer& i4, Standard_Integer& i5, Standard_Integer& i6, Standard_Integer& i7, Standard_Integer& i8, Standard_Integer& i9, Standard_Integer& i19, Standard_Integer& i11, Standard_Integer& i12, Standard_Integer& i13, Standard_Integer& i14, Standard_Integer& i15, Standard_Integer& i16, Standard_Integer& i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subscript) const;
@@ -49,32 +46,14 @@ public:
//! returns "type" and "form" info, used to recognize the entity
Standard_EXPORT IGESData_IGESType Type() const;
protected:
private:
Standard_Integer thevals[17];
Standard_Character theres1[10];
Standard_Character theres2[10];
Standard_Character thelabl[10];
Standard_Character thesubs[10];
};
#endif // _IGESData_DirPart_HeaderFile

View File

@@ -25,7 +25,7 @@
// ###############################################################
// Macros to help Dumping Parts of IGES Entities
// (for usefull and repetitive cases but which apply to different classes
// (for useful and repetitive cases but which apply to different classes
// but with similar signatures, such as Arrays)
// Remember that the class IGESDumper processes itself individual dump of
// IGESEntity

View File

@@ -25,21 +25,18 @@
class IGESData_Protocol;
class Interface_Protocol;
class IGESData_FileProtocol;
DEFINE_STANDARD_HANDLE(IGESData_FileProtocol, IGESData_Protocol)
//! This class allows to define complex protocols, in order to
//! treat various sub-sets (or the complete set) of the IGES Norm,
//! such as Solid + Draw (which are normally independant), etc...
//! While it inherits Protocol from IGESData, it admits
//! UndefinedEntity too
//! such as Solid + Draw (which are normally independent), etc...
//! While it inherits Protocol from IGESData, it admits UndefinedEntity too
class IGESData_FileProtocol : public IGESData_Protocol
{
public:
//! Returns an empty FileProtocol
Standard_EXPORT IGESData_FileProtocol();
@@ -52,29 +49,13 @@ public:
//! Returns a Resource, given a rank (rank of call to Add)
Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESData_FileProtocol,IGESData_Protocol)
protected:
private:
Handle(IGESData_Protocol) theresource;
Handle(IGESData_FileProtocol) thenext;
};
#endif // _IGESData_FileProtocol_HeaderFile

View File

@@ -27,26 +27,23 @@ class IGESData_IGESEntity;
class IGESData_SpecificLib;
class IGESData_NodeOfSpecificLib;
class IGESData_GlobalNodeOfSpecificLib;
DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfSpecificLib, Standard_Transient)
class IGESData_GlobalNodeOfSpecificLib : public Standard_Transient
{
public:
//! Creates an empty GlobalNode, with no Next
Standard_EXPORT IGESData_GlobalNodeOfSpecificLib();
//! 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(IGESData_SpecificModule)& amodule, const Handle(IGESData_Protocol)& aprotocol);
//! Returns the Module stored in a given GlobalNode
Standard_EXPORT const Handle(IGESData_SpecificModule)& Module() const;
@@ -57,30 +54,14 @@ public:
//! value is a Null Handle
Standard_EXPORT const Handle(IGESData_GlobalNodeOfSpecificLib)& Next() const;
DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfSpecificLib,Standard_Transient)
protected:
private:
Handle(IGESData_SpecificModule) themod;
Handle(IGESData_Protocol) theprot;
Handle(IGESData_GlobalNodeOfSpecificLib) thenext;
};
#endif // _IGESData_GlobalNodeOfSpecificLib_HeaderFile

View File

@@ -27,26 +27,23 @@ class IGESData_IGESEntity;
class IGESData_WriterLib;
class IGESData_NodeOfWriterLib;
class IGESData_GlobalNodeOfWriterLib;
DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfWriterLib, Standard_Transient)
class IGESData_GlobalNodeOfWriterLib : public Standard_Transient
{
public:
//! Creates an empty GlobalNode, with no Next
Standard_EXPORT IGESData_GlobalNodeOfWriterLib();
//! 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
//! 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 correspondence
Standard_EXPORT void Add (const Handle(IGESData_ReadWriteModule)& amodule, const Handle(IGESData_Protocol)& aprotocol);
//! Returns the Module stored in a given GlobalNode
Standard_EXPORT const Handle(IGESData_ReadWriteModule)& Module() const;
@@ -57,30 +54,14 @@ public:
//! value is a Null Handle
Standard_EXPORT const Handle(IGESData_GlobalNodeOfWriterLib)& Next() const;
DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfWriterLib,Standard_Transient)
protected:
private:
Handle(IGESData_ReadWriteModule) themod;
Handle(IGESData_Protocol) theprot;
Handle(IGESData_GlobalNodeOfWriterLib) thenext;
};
#endif // _IGESData_GlobalNodeOfWriterLib_HeaderFile

View File

@@ -30,7 +30,6 @@ class Interface_ParamSet;
class Interface_Check;
class gp_XYZ;
//! Description of a global section (corresponds to file header)
//! used as well in IGESModel, IGESReader and IGESWriter
//! Warning : From IGES-5.1, a parameter is added : LastChangeDate (concerns
@@ -52,12 +51,12 @@ public:
//! undefined parameters do not change default values when defined
//! Fills Check about Corrections or Fails
Standard_EXPORT void Init (const Handle(Interface_ParamSet)& params, Handle(Interface_Check)& ach);
//! Copies data referenced by Handle (that is, Strings)
//! usefull to "isolate" a GlobalSection after copy by "="
//! useful to "isolate" a GlobalSection after copy by "="
//! (from a Model to another Model for instance)
Standard_EXPORT void CopyRefs();
//! Returns all contained data in the form of a ParamSet
//! Remark : Strings are given under Hollerith form
Standard_EXPORT Handle(Interface_ParamSet) Params() const;

View File

@@ -32,7 +32,7 @@ class IGESData_IGESEntity;
//! (distinct from normalized output). It works with tools
//! attached to Entities, as for normalized Reade and Write
//!
//! For each Entity, displaying data is splitted in own data
//! For each Entity, displaying data is split in own data
//! (specific to each type) and other attached data, which are
//! defined for all IGES Types (either from "Directory Entry" or
//! from Lists of Associativities and Properties)
@@ -43,11 +43,11 @@ public:
DEFINE_STANDARD_ALLOC
//! Returns an IGESDumper ready to work. The IGESModel provides
//! the numbering of Entities : as for any InterfaceModel, it
//! gives each Entity a number; but for IGESEntities, the "Number
//! of Directory Entry" according to the definition of IGES Files,
//! is also usefull
//! Returns an IGESDumper ready to work.
//! The IGESModel provides the numbering of Entities:
//! as for any InterfaceModel, it gives each Entity a number;
//! but for IGESEntities, the "Number of Directory Entry"
//! according to the definition of IGES Files, is also useful.
Standard_EXPORT IGESData_IGESDumper(const Handle(IGESData_IGESModel)& model, const Handle(IGESData_Protocol)& protocol);
//! Prints onto an output, the "Number of Directory Entry" which
@@ -66,29 +66,11 @@ public:
//! <own> is the parameter <own> from Dump
Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
protected:
private:
Handle(IGESData_IGESModel) themodel;
IGESData_SpecificLib thelib;
};
#endif // _IGESData_IGESDumper_HeaderFile

View File

@@ -53,7 +53,7 @@ class IGESData_IGESEntity;
DEFINE_STANDARD_HANDLE(IGESData_IGESEntity, Standard_Transient)
//! defines root of IGES Entity definition, including Directory
//! Part, lists of (optionnal) Properties and Associativities
//! Part, lists of (optional) Properties and Associativities
class IGESData_IGESEntity : public Standard_Transient
{
@@ -335,7 +335,7 @@ friend class IGESData_DirChecker;
protected:
//! prepares lists of optionnal data, set values to defaults
//! prepares lists of optional data, set values to defaults
Standard_EXPORT IGESData_IGESEntity();
//! Initializes Type and Form Numbers to new values. Reserved for

View File

@@ -44,7 +44,7 @@ DEFINE_STANDARD_HANDLE(IGESData_IGESReaderData, Interface_FileReaderData)
//! contains header as GlobalSection, and for each Entity, its
//! directory part as DirPart, list of Parameters as ParamSet
//! Each Item has a DirPart, plus classically a ParamSet and the
//! correspondant recognized Entity (inherited from FileReaderData)
//! correspondent recognized Entity (inherited from FileReaderData)
//! Parameters are accessed through specific objects, ParamReaders
class IGESData_IGESReaderData : public Interface_FileReaderData
{

View File

@@ -51,7 +51,7 @@ Standard_Boolean operator == (const IGESData_IGESType& another) const
return IsEqual(another);
}
//! resets fields (usefull when an IGESType is stored as mask)
//! resets fields (useful when an IGESType is stored as mask)
Standard_EXPORT void Nullify();

View File

@@ -75,7 +75,7 @@ public:
//! 0 (D) : Normal IGES, 10 : FNES
Standard_EXPORT Standard_Integer& WriteMode();
//! Sends an additionnal Starting Line : this is the way used to
//! Sends an additional Starting Line : this is the way used to
//! send comments in an IGES File (at beginning of the file).
//! If the line is more than 72 char.s long, it is splited into
//! as many lines as required to send it completely
@@ -174,7 +174,7 @@ public:
//! Writes result on an output defined as an OStream
//! resolves stored infos at this time; in particular, numbers of
//! lines used to adress P-section from D-section and final totals
//! lines used to address P-section from D-section and final totals
//! Takes WriteMode into account
Standard_EXPORT Standard_Boolean Print (Standard_OStream& S) const;

View File

@@ -77,7 +77,7 @@ public:
//! (that is, skip "item size" - "term size")
//!
//! In addition, Offset from beginning of Item is managed :
//! After being created, and for the frist call to SetTerm, the
//! After being created, and for the first call to SetTerm, the
//! part of Item to be read begins exactly as the Item begins
//! But after a SetTerm, the next read will add an offset which is
//! the size of former term.

View File

@@ -80,7 +80,7 @@ public:
//! parameter : it can be ended by two lists (Associativities and
//! Properties), which can be empty, or even absent. Hence, it is
//! necessary to know, at the end of specific reading, how many
//! parameters have been read : the optionnal lists follow
//! parameters have been read : the optional lists follow
Standard_EXPORT Standard_Integer CurrentNumber() const;
//! sets current parameter number to a new value
@@ -302,7 +302,7 @@ public:
//! If "ord" is given True (default), entities will be added to
//! the list in their original order
//! Remark : Negative or Null Pointers are ignored
//! Else ("ord" False), order is not garanteed (faster mode)
//! Else ("ord" False), order is not guaranteed (faster mode)
//! If all params cannot be read as Entities, same as above
//! Warning Give "ord" to False ONLY if order is not significant
Standard_EXPORT Standard_Boolean ReadEntList (const Handle(IGESData_IGESReaderData)& IR, const IGESData_ParamCursor& PC, const Standard_CString mess, Interface_EntityList& val, const Standard_Boolean ord = Standard_True);

View File

@@ -33,7 +33,7 @@ class IGESData_Protocol;
DEFINE_STANDARD_HANDLE(IGESData_Protocol, Interface_Protocol)
//! Description of basic Protocol for IGES
//! This comprises treatement of IGESModel and Recognition of
//! This comprises treatment of IGESModel and Recognition of
//! Undefined-FreeFormat-Entity
class IGESData_Protocol : public Interface_Protocol
{

View File

@@ -141,7 +141,7 @@ public:
//! Calls ConvertLocation (see below)
Standard_EXPORT Standard_Boolean AnalyseLocation (const gp_GTrsf& loc, gp_Trsf& result) const;
//! Convertion of a Location, from GTrsf form to Trsf form
//! Conversion of a Location, from GTrsf form to Trsf form
//! Works with a precision given as argument.
//! Returns True if the Conversion is possible, (hence, <result>
//! contains the converted location), False else