int useTechCor -> bool useTechCor
This commit is contained in:
parent
88a1229a23
commit
b277759f58
7 changed files with 21 additions and 21 deletions
|
|
@ -830,7 +830,7 @@ STEPfile::ReadWorkingData1( istream & in ) {
|
|||
** in an exchange file
|
||||
******************************************************************/
|
||||
int
|
||||
STEPfile::ReadData2( istream & in, int useTechCor ) {
|
||||
STEPfile::ReadData2( istream & in, bool useTechCor ) {
|
||||
_entsInvalid = 0;
|
||||
_entsIncomplete = 0;
|
||||
_entsWarning = 0;
|
||||
|
|
@ -1133,7 +1133,7 @@ STEPfile::ReadData2( istream & in ) {
|
|||
#endif
|
||||
|
||||
int
|
||||
STEPfile::ReadWorkingData2( istream & in, int useTechCor ) {
|
||||
STEPfile::ReadWorkingData2( istream & in, bool useTechCor ) {
|
||||
return ReadData2( in, useTechCor );
|
||||
#ifdef junk
|
||||
_errorCount = 0; // reset error count
|
||||
|
|
@ -1745,7 +1745,7 @@ void ReadEntityError( char c, int i, istream & in ) {
|
|||
*****************************************************/
|
||||
SDAI_Application_instance *
|
||||
STEPfile::ReadInstance( istream & in, ostream & out, std::string & cmtStr,
|
||||
int useTechCor ) {
|
||||
bool useTechCor ) {
|
||||
Severity sev = SEVERITY_NULL;
|
||||
|
||||
std::string tmpbuf;
|
||||
|
|
@ -2220,7 +2220,7 @@ void STEPfile::WriteValuePairsData( ostream & out, int writeComments, int mixedC
|
|||
}
|
||||
}
|
||||
|
||||
Severity STEPfile::AppendFile( istream * in, int useTechCor ) {
|
||||
Severity STEPfile::AppendFile( istream * in, bool useTechCor ) {
|
||||
Severity rval = SEVERITY_NULL;
|
||||
char errbuf[BUFSIZ];
|
||||
|
||||
|
|
|
|||
|
|
@ -112,13 +112,13 @@ class STEPfile
|
|||
int SetFileType (FileTypeCode ft = VERSION_CURRENT);
|
||||
|
||||
//Reading and Writing
|
||||
Severity ReadExchangeFile (const std::string filename = "", int useTechCor =1);
|
||||
Severity AppendExchangeFile (const std::string filename = "", int useTechCor =1);
|
||||
Severity ReadExchangeFile (const std::string filename = "", bool useTechCor = true );
|
||||
Severity AppendExchangeFile (const std::string filename = "", bool useTechCor = true );
|
||||
|
||||
Severity ReadWorkingFile (const std::string filename = "", int useTechCor =1);
|
||||
Severity AppendWorkingFile (const std::string filename = "", int useTechCor =1);
|
||||
Severity ReadWorkingFile (const std::string filename = "", bool useTechCor = true );
|
||||
Severity AppendWorkingFile (const std::string filename = "", bool useTechCor = true );
|
||||
|
||||
Severity AppendFile (istream* in, int useTechCor =1) ;
|
||||
Severity AppendFile (istream* in, bool useTechCor = true ) ;
|
||||
|
||||
Severity WriteExchangeFile (ostream& out, int validate =1,
|
||||
int clearError = 1, int writeComments = 1);
|
||||
|
|
@ -157,12 +157,12 @@ class STEPfile
|
|||
int HeaderId (const std::string name);
|
||||
|
||||
int ReadData1 (istream& in); // first pass to create instances
|
||||
// second pass to read instances
|
||||
int ReadData2 (istream& in, int useTechCor =1);
|
||||
// second pass to read instances
|
||||
int ReadData2 (istream& in, bool useTechCor = true );
|
||||
|
||||
// obsolete
|
||||
int ReadWorkingData1 (istream& in);
|
||||
int ReadWorkingData2 (istream& in, int useTechCor =1);
|
||||
int ReadWorkingData2 (istream& in, bool useTechCor = true );
|
||||
|
||||
void ReadRestOfFile(istream& in);
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ class STEPfile
|
|||
|
||||
// read the instance - used by ReadData2()
|
||||
SDAI_Application_instance * ReadInstance(istream& in, ostream& out,
|
||||
std::string &cmtStr, int useTechCor =1);
|
||||
std::string &cmtStr, bool useTechCor = true );
|
||||
|
||||
// reading scopes are still incomplete
|
||||
// these functions are stubs
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ const std::string STEPfile::TruncFileName( const std::string filename ) const {
|
|||
|
||||
|
||||
/******************************************************/
|
||||
Severity STEPfile::ReadExchangeFile( const std::string filename, int useTechCor ) {
|
||||
Severity STEPfile::ReadExchangeFile( const std::string filename, bool useTechCor ) {
|
||||
_error.ClearErrorMsg();
|
||||
_errorCount = 0;
|
||||
istream * in = OpenInputFile( filename );
|
||||
|
|
@ -121,7 +121,7 @@ Severity STEPfile::ReadExchangeFile( const std::string filename, int useTechCor
|
|||
return rval;
|
||||
}
|
||||
|
||||
Severity STEPfile::AppendExchangeFile( const std::string filename, int useTechCor ) {
|
||||
Severity STEPfile::AppendExchangeFile( const std::string filename, bool useTechCor ) {
|
||||
_error.ClearErrorMsg();
|
||||
_errorCount = 0;
|
||||
istream * in = OpenInputFile( filename );
|
||||
|
|
@ -135,7 +135,7 @@ Severity STEPfile::AppendExchangeFile( const std::string filename, int useTechCo
|
|||
}
|
||||
|
||||
/******************************************************/
|
||||
Severity STEPfile::ReadWorkingFile( const std::string filename, int useTechCor ) {
|
||||
Severity STEPfile::ReadWorkingFile( const std::string filename, bool useTechCor ) {
|
||||
_error.ClearErrorMsg();
|
||||
_errorCount = 0;
|
||||
istream * in = OpenInputFile( filename );
|
||||
|
|
@ -155,7 +155,7 @@ Severity STEPfile::ReadWorkingFile( const std::string filename, int useTechCor )
|
|||
}
|
||||
|
||||
|
||||
Severity STEPfile::AppendWorkingFile( const std::string filename, int useTechCor ) {
|
||||
Severity STEPfile::AppendWorkingFile( const std::string filename, bool useTechCor ) {
|
||||
_error.ClearErrorMsg();
|
||||
_errorCount = 0;
|
||||
istream * in = OpenInputFile( filename );
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ void STEPcomplex::AppendEntity( STEPcomplex * stepc ) {
|
|||
|
||||
// READ
|
||||
Severity STEPcomplex::STEPread( int id, int addFileId, class InstMgr * instance_set,
|
||||
istream & in, const char * currSch, int useTechCor ) {
|
||||
istream & in, const char * currSch, bool useTechCor ) {
|
||||
char c;
|
||||
std::string typeNm;
|
||||
STEPcomplex * stepc = 0;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class STEPcomplex : public SDAI_Application_instance {
|
|||
virtual Severity STEPread(int id, int addFileId,
|
||||
class InstMgr * instance_set,
|
||||
istream& in =cin, const char *currSch =NULL,
|
||||
int useTechCor =1);
|
||||
bool useTechCor = true );
|
||||
|
||||
virtual void STEPread_error(char c, int index, istream& in);
|
||||
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ void SDAI_Application_instance::STEPread_error( char c, int i, istream & in ) {
|
|||
******************************************************************/
|
||||
Severity SDAI_Application_instance::STEPread( int id, int idIncr,
|
||||
InstMgr * instance_set, istream & in,
|
||||
const char * currSch, int useTechCor ) {
|
||||
const char * currSch, bool useTechCor ) {
|
||||
STEPfile_id = id;
|
||||
char c = '\0';
|
||||
char errStr[BUFSIZ];
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class SDAI_Application_instance : public SDAI_DAObject_SDAI
|
|||
virtual Severity STEPread(int id, int addFileId,
|
||||
class InstMgr * instance_set,
|
||||
istream& in =cin, const char * currSch = NULL,
|
||||
int useTechCor =1);
|
||||
bool useTechCor = true );
|
||||
virtual void STEPread_error(char c, int index, istream& in);
|
||||
|
||||
// WRITE
|
||||
|
|
|
|||
Loading…
Reference in a new issue