Import Geant4 5.2.0 source tree
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: ExpDict.h,v 1.3 2000/01/21 13:42:30 gcosmo Exp $ */
|
||||
/* $Id: ExpDict.h,v 1.4 2003/06/06 17:07:28 gcosmo Exp $ */
|
||||
|
||||
#ifdef __OSTORE__
|
||||
#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -691,16 +691,16 @@ class Schema : public Dictionary_instance {
|
||||
{ return _typeList.AddNode(td); }
|
||||
|
||||
// the whole schema
|
||||
void GenerateExpress(G4std::ostream& out) const;
|
||||
void GenerateExpress(std::ostream& out) const;
|
||||
|
||||
// USE, REFERENCE definitions
|
||||
void GenerateUseRefExpress(G4std::ostream& out) const;
|
||||
void GenerateUseRefExpress(std::ostream& out) const;
|
||||
|
||||
// TYPE definitions
|
||||
void GenerateTypesExpress(G4std::ostream& out) const;
|
||||
void GenerateTypesExpress(std::ostream& out) const;
|
||||
|
||||
// Entity definitions
|
||||
void GenerateEntitiesExpress(G4std::ostream& out) const;
|
||||
void GenerateEntitiesExpress(std::ostream& out) const;
|
||||
};
|
||||
|
||||
typedef Schema SchemaDescriptor;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: STEPaggregate.h,v 1.4 2000/01/21 13:42:31 gcosmo Exp $ */
|
||||
/* $Id: STEPaggregate.h,v 1.5 2003/06/06 17:07:28 gcosmo Exp $ */
|
||||
|
||||
#ifdef __OSTORE__
|
||||
#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -64,7 +64,7 @@ class STEPaggregate : public SingleLinkList
|
||||
|
||||
protected:
|
||||
|
||||
virtual Severity ReadValue(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity ReadValue(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId =0,
|
||||
int assignVal =1, int ExchangeFileFormat =1,
|
||||
@@ -78,7 +78,7 @@ class STEPaggregate : public SingleLinkList
|
||||
int optional, char *tokenList, int addFileId =0,
|
||||
int clearError =0);
|
||||
|
||||
virtual Severity AggrValidLevel(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity AggrValidLevel(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type, InstMgr *insts,
|
||||
int optional, char *tokenList, int addFileId =0,
|
||||
int clearError =0);
|
||||
@@ -87,13 +87,13 @@ class STEPaggregate : public SingleLinkList
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err =0,
|
||||
const TypeDescriptor *elem_type =0,
|
||||
InstMgr *insts =0, int addFileId = 0);
|
||||
virtual Severity STEPread (G4std::istream& in, ErrorDescriptor *err,
|
||||
virtual Severity STEPread (std::istream& in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type =0,
|
||||
InstMgr *insts =0, int addFileId =0,
|
||||
const char *currSch =0);
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s) const;
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout, const char * =0) const;
|
||||
virtual void STEPwrite (std::ostream& out =G4cout, const char * =0) const;
|
||||
|
||||
// SingleLinkNode * GetHead () const
|
||||
// { return (STEPnode *) SingleLinkList::GetHead(); }
|
||||
@@ -144,7 +144,7 @@ typedef GenericAggregate_ptr GenericAggregate_var;
|
||||
class EntityAggregate : public STEPaggregate
|
||||
{
|
||||
public:
|
||||
virtual Severity ReadValue(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity ReadValue(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId =0,
|
||||
int assignVal =1, int ExchangeFileFormat =1,
|
||||
@@ -172,7 +172,7 @@ typedef EntityAggregate_ptr EntityAggregate_var;
|
||||
class SelectAggregate : public STEPaggregate
|
||||
{
|
||||
public:
|
||||
virtual Severity ReadValue(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity ReadValue(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId =0,
|
||||
int assignVal =1, int ExchangeFileFormat =1,
|
||||
@@ -352,15 +352,15 @@ class STEPnode : public SingleLinkNode {
|
||||
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite(SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
#ifdef __OSTORE__
|
||||
static os_typespec* get_os_typespec();
|
||||
#endif
|
||||
@@ -380,15 +380,15 @@ class GenericAggrNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite(SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
GenericAggrNode (const char *str);
|
||||
@@ -414,20 +414,20 @@ class EntityNode : public STEPnode {
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
EntityNode (SCLP23(Application_instance) * e);
|
||||
@@ -443,7 +443,7 @@ class EntityNode : public STEPnode {
|
||||
<< "\n" << _POC_ "\n";
|
||||
return StrToVal(s, err, 0, 0, 0);
|
||||
}
|
||||
Severity StrToVal(G4std::istream &in, ErrorDescriptor *err)
|
||||
Severity StrToVal(std::istream &in, ErrorDescriptor *err)
|
||||
{
|
||||
G4cerr << "Internal error: " << __FILE__ << __LINE__
|
||||
<< "\n" << _POC_ "\n";
|
||||
@@ -456,7 +456,7 @@ class EntityNode : public STEPnode {
|
||||
<< "\n" << _POC_ "\n";
|
||||
return STEPread(s, err, 0, 0, 0);
|
||||
}
|
||||
Severity STEPread(G4std::istream &in, ErrorDescriptor *err)
|
||||
Severity STEPread(std::istream &in, ErrorDescriptor *err)
|
||||
{
|
||||
G4cerr << "Internal error: " << __FILE__ << __LINE__
|
||||
<< "\n" << _POC_ "\n";
|
||||
@@ -486,7 +486,7 @@ class SelectNode : public STEPnode {
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0,
|
||||
const char *currSch =0);
|
||||
@@ -494,14 +494,14 @@ class SelectNode : public STEPnode {
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err,
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err,
|
||||
const TypeDescriptor *elem_type,
|
||||
InstMgr *insts, int addFileId = 0,
|
||||
const char *currSch =0);
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
SelectNode(SCLP23(Select) * s);
|
||||
@@ -517,7 +517,7 @@ class SelectNode : public STEPnode {
|
||||
<< "\n" << _POC_ "\n";
|
||||
return StrToVal(s, err, 0, 0, 0);
|
||||
}
|
||||
Severity StrToVal(G4std::istream &in, ErrorDescriptor *err)
|
||||
Severity StrToVal(std::istream &in, ErrorDescriptor *err)
|
||||
{
|
||||
G4cerr << "Internal error: " << __FILE__ << __LINE__
|
||||
<< "\n" << _POC_ "\n";
|
||||
@@ -530,7 +530,7 @@ class SelectNode : public STEPnode {
|
||||
<< "\n" << _POC_ "\n";
|
||||
return STEPread(s, err, 0, 0, 0);
|
||||
}
|
||||
Severity STEPread(G4std::istream &in, ErrorDescriptor *err)
|
||||
Severity STEPread(std::istream &in, ErrorDescriptor *err)
|
||||
{
|
||||
G4cerr << "Internal error: " << __FILE__ << __LINE__
|
||||
<< "\n" << _POC_ "\n";
|
||||
@@ -557,15 +557,15 @@ class StringNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
StringNode(StringNode& sn);
|
||||
@@ -595,15 +595,15 @@ class BinaryNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
BinaryNode(BinaryNode& bn);
|
||||
@@ -632,15 +632,15 @@ class EnumNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
EnumNode(SCLP23(Enum) * e);
|
||||
@@ -661,15 +661,15 @@ class RealNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
RealNode();
|
||||
@@ -689,15 +689,15 @@ class IntNode : public STEPnode {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring & s);
|
||||
virtual const char *STEPwrite (SCLstring &s, const char * =0);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
// CONSTRUCTORS
|
||||
IntNode();
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: STEPattribute.h,v 1.5 2000/11/20 18:14:54 gcosmo Exp $ */
|
||||
/* $Id: STEPattribute.h,v 1.6 2003/06/06 17:07:28 gcosmo Exp $ */
|
||||
|
||||
#include <sclprefixes.h>
|
||||
|
||||
@@ -34,8 +34,10 @@
|
||||
// in STEPaggregate.cc and STEPattribute.cc
|
||||
#define REAL_NUM_PRECISION 15
|
||||
|
||||
// Commented out following declarations, since not used and
|
||||
// causing clashes with system headers on some compilers.... - GC
|
||||
//typedef unsigned short BOOLEAN;
|
||||
typedef double real;
|
||||
//typedef double real;
|
||||
|
||||
class InstMgr;
|
||||
// Commented out following declaration, since meaningless - GC
|
||||
@@ -51,7 +53,7 @@ class TypeDescriptor;
|
||||
class AttrDescriptor;
|
||||
class EntityDescriptor;
|
||||
|
||||
#include "g4std/strstream"
|
||||
#include <strstream>
|
||||
//#include <ExpDict.h>
|
||||
|
||||
//#define s_String char *
|
||||
@@ -61,12 +63,12 @@ extern int SetErrOnNull(const char *attrValue, ErrorDescriptor *error);
|
||||
////////////////////
|
||||
|
||||
extern Severity
|
||||
CheckRemainingInput(G4std::istream &in, ErrorDescriptor *err,
|
||||
CheckRemainingInput(std::istream &in, ErrorDescriptor *err,
|
||||
const char *typeName, // used in error message
|
||||
const char *tokenList); // e.g. ",)"
|
||||
|
||||
extern SCLP23(Application_instance) *
|
||||
ReadEntityRef(G4std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
ReadEntityRef(std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
InstMgr * instances, int addFileId);
|
||||
|
||||
extern SCLP23(Application_instance) *
|
||||
@@ -95,18 +97,18 @@ extern SCLP23(Application_instance) *STEPread_reference (const char * s, ErrorDe
|
||||
InstMgr * instances, int addFileId);
|
||||
////////////////////
|
||||
|
||||
extern int QuoteInString(G4std::istream& in);
|
||||
extern int QuoteInString(std::istream& in);
|
||||
|
||||
extern void AppendChar(char c, int& index, char *&s, int& sSize);
|
||||
|
||||
extern void
|
||||
PushPastString (G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastString (std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
extern void
|
||||
PushPastImbedAggr (G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastImbedAggr (std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
extern void
|
||||
PushPastAggr1Dim(G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastAggr1Dim(std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
//extern Severity ValidateEntityType(SCLP23(Application_instance) *se,
|
||||
// const AttrDescriptor *ad,
|
||||
@@ -114,7 +116,7 @@ PushPastAggr1Dim(G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
class STEPattribute {
|
||||
|
||||
friend G4std::ostream &operator<< ( G4std::ostream&, STEPattribute& );
|
||||
friend std::ostream &operator<< ( std::ostream&, STEPattribute& );
|
||||
|
||||
// The CenterLine compiler couldn't handle this friend declaration.
|
||||
// Here is the error
|
||||
@@ -154,7 +156,7 @@ class STEPattribute {
|
||||
} ptr;
|
||||
|
||||
protected:
|
||||
char SkipBadAttr(G4std::istream& in, char *StopChars);
|
||||
char SkipBadAttr(std::istream& in, char *StopChars);
|
||||
void AddErrorInfo();
|
||||
|
||||
public:
|
||||
@@ -163,12 +165,12 @@ class STEPattribute {
|
||||
|
||||
Severity StrToVal(const char *s, InstMgr *instances =0,
|
||||
int addFileId =0);
|
||||
Severity STEPread(G4std::istream& in = G4cin, InstMgr *instances =0,
|
||||
Severity STEPread(std::istream& in = G4cin, InstMgr *instances =0,
|
||||
int addFileId =0, const char * =NULL);
|
||||
|
||||
const char * asStr(SCLstring &, const char * =0) const;
|
||||
// return the attr value as a string
|
||||
void STEPwrite(G4std::ostream& out = G4cout, const char * =0);
|
||||
void STEPwrite(std::ostream& out = G4cout, const char * =0);
|
||||
|
||||
int ShallowCopy(STEPattribute *sa);
|
||||
|
||||
|
||||
@@ -40,19 +40,19 @@ class STEPcomplex : public SCLP23(Application_instance) {
|
||||
// READ
|
||||
virtual Severity STEPread(int id, int addFileId,
|
||||
class InstMgr * instance_set,
|
||||
G4std::istream& in =G4cin, const char *currSch =NULL,
|
||||
std::istream& in =G4cin, const char *currSch =NULL,
|
||||
int useTechCor =1);
|
||||
|
||||
virtual void STEPread_error(char c, int index, G4std::istream& in);
|
||||
virtual void STEPread_error(char c, int index, std::istream& in);
|
||||
|
||||
// WRITE
|
||||
virtual void STEPwrite(G4std::ostream& out =G4cout, const char *currSch =NULL,
|
||||
virtual void STEPwrite(std::ostream& out =G4cout, const char *currSch =NULL,
|
||||
int writeComment = 1);
|
||||
virtual const char * STEPwrite(SCLstring &buf, const char *currSch =NULL);
|
||||
|
||||
SCLP23(Application_instance) *Replicate();
|
||||
|
||||
virtual void WriteExtMapEntities(G4std::ostream& out =G4cout,
|
||||
virtual void WriteExtMapEntities(std::ostream& out =G4cout,
|
||||
const char *currSch =NULL);
|
||||
virtual const char * WriteExtMapEntities(SCLstring &buf,
|
||||
const char *currSch =NULL);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: STEPfile.h,v 1.5 2000/02/14 13:44:02 gcosmo Exp $ */
|
||||
/* $Id: STEPfile.h,v 1.6 2003/06/06 17:07:28 gcosmo Exp $ */
|
||||
|
||||
#ifdef __OSTORE__
|
||||
#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -26,7 +26,7 @@
|
||||
/*#include <math.h>*/
|
||||
#include <instmgr.h>
|
||||
#include <Registry.h>
|
||||
#include "g4std/fstream"
|
||||
#include <fstream>
|
||||
#include <dirobj.h>
|
||||
#include <errordesc.h>
|
||||
#include <time.h>
|
||||
@@ -147,17 +147,17 @@ class STEPfile
|
||||
Severity ReadWorkingFile (const char* filename =0, int useTechCor =1);
|
||||
Severity AppendWorkingFile (const char* filename =0, int useTechCor =1);
|
||||
|
||||
Severity AppendFile (G4std::istream* in, int useTechCor =1) ;
|
||||
Severity AppendFile (std::istream* in, int useTechCor =1) ;
|
||||
|
||||
Severity WriteExchangeFile (G4std::ostream& out, int validate =1,
|
||||
Severity WriteExchangeFile (std::ostream& out, int validate =1,
|
||||
int clearError = 1, int writeComments = 1);
|
||||
Severity WriteExchangeFile (const char* filename =0, int validate =1,
|
||||
int clearError = 1, int writeComments = 1);
|
||||
Severity WriteValuePairsFile(G4std::ostream& out, int validate =1,
|
||||
Severity WriteValuePairsFile(std::ostream& out, int validate =1,
|
||||
int clearError =1,
|
||||
int writeComments = 1, int mixedCase = 1);
|
||||
|
||||
Severity WriteWorkingFile (G4std::ostream& out, int clearError = 1,
|
||||
Severity WriteWorkingFile (std::ostream& out, int clearError = 1,
|
||||
int writeComments = 1);
|
||||
Severity WriteWorkingFile (const char* filename =0, int clearError = 1,
|
||||
int writeComments = 1);
|
||||
@@ -175,10 +175,10 @@ class STEPfile
|
||||
char *schemaName( char * ); // returns and copies out schema name from
|
||||
// header instances
|
||||
//called by ReadExchangeFile
|
||||
G4std::istream* OpenInputFile (const char* filename = "");
|
||||
void CloseInputFile(G4std::istream* in);
|
||||
std::istream* OpenInputFile (const char* filename = "");
|
||||
void CloseInputFile(std::istream* in);
|
||||
|
||||
Severity ReadHeader(G4std::istream& in);
|
||||
Severity ReadHeader(std::istream& in);
|
||||
|
||||
InstMgr* HeaderConvertToNew(InstMgr& oldinst);
|
||||
Severity HeaderVerifyInstances(InstMgr* im);
|
||||
@@ -190,50 +190,50 @@ class STEPfile
|
||||
int HeaderId (const char* nm ="\0");
|
||||
int HeaderIdOld (const char* nm ="\0");
|
||||
|
||||
int ReadData1 (G4std::istream& in); // first pass to create instances
|
||||
int ReadData1 (std::istream& in); // first pass to create instances
|
||||
// second pass to read instances
|
||||
int ReadData2 (G4std::istream& in, int useTechCor =1);
|
||||
int ReadData2 (std::istream& in, int useTechCor =1);
|
||||
|
||||
// obsolete
|
||||
int ReadWorkingData1 (G4std::istream& in);
|
||||
int ReadWorkingData2 (G4std::istream& in, int useTechCor =1);
|
||||
int ReadWorkingData1 (std::istream& in);
|
||||
int ReadWorkingData2 (std::istream& in, int useTechCor =1);
|
||||
|
||||
void ReadRestOfFile(G4std::istream& in);
|
||||
void ReadRestOfFile(std::istream& in);
|
||||
|
||||
// create instance - used by ReadData1()
|
||||
SCLP23(Application_instance) * CreateInstance(G4std::istream& in, G4std::ostream& out);
|
||||
SCLP23(Application_instance) * CreateInstance(std::istream& in, std::ostream& out);
|
||||
// create complex instance - used by CreateInstance()
|
||||
SCLP23(Application_instance) * CreateSubSuperInstance(G4std::istream& in, int fileid,
|
||||
SCLP23(Application_instance) * CreateSubSuperInstance(std::istream& in, int fileid,
|
||||
ErrorDescriptor &);
|
||||
|
||||
// read the instance - used by ReadData2()
|
||||
SCLP23(Application_instance) * ReadInstance(G4std::istream& in, G4std::ostream& out,
|
||||
SCLP23(Application_instance) * ReadInstance(std::istream& in, std::ostream& out,
|
||||
SCLstring &cmtStr, int useTechCor =1);
|
||||
|
||||
// reading scopes are still incomplete
|
||||
// these functions are stubs
|
||||
Severity CreateScopeInstances(G4std::istream& in, SCLP23(Application_instance_ptr) ** scopelist);
|
||||
Severity ReadScopeInstances(G4std::istream& in);
|
||||
// Severity ReadSubSuperInstance(G4std::istream& in);
|
||||
Severity CreateScopeInstances(std::istream& in, SCLP23(Application_instance_ptr) ** scopelist);
|
||||
Severity ReadScopeInstances(std::istream& in);
|
||||
// Severity ReadSubSuperInstance(std::istream& in);
|
||||
|
||||
int FindDataSection (G4std::istream& in);
|
||||
int FindHeaderSection (G4std::istream& in);
|
||||
int FindDataSection (std::istream& in);
|
||||
int FindHeaderSection (std::istream& in);
|
||||
|
||||
// writing working session files
|
||||
void WriteWorkingData(G4std::ostream& out, int writeComments = 1);
|
||||
void WriteWorkingData(std::ostream& out, int writeComments = 1);
|
||||
|
||||
//called by WriteExchangeFile
|
||||
G4std::ofstream* OpenOutputFile(const char* filename =0);
|
||||
void CloseOutputFile(G4std::ostream* out);
|
||||
std::ofstream* OpenOutputFile(const char* filename =0);
|
||||
void CloseOutputFile(std::ostream* out);
|
||||
|
||||
void WriteHeader (G4std::ostream& out);
|
||||
void WriteHeaderInstance (SCLP23(Application_instance) *obj, G4std::ostream& out);
|
||||
void WriteHeaderInstanceFileName (G4std::ostream& out);
|
||||
void WriteHeaderInstanceFileDescription (G4std::ostream& out);
|
||||
void WriteHeaderInstanceFileSchema (G4std::ostream& out);
|
||||
void WriteHeader (std::ostream& out);
|
||||
void WriteHeaderInstance (SCLP23(Application_instance) *obj, std::ostream& out);
|
||||
void WriteHeaderInstanceFileName (std::ostream& out);
|
||||
void WriteHeaderInstanceFileDescription (std::ostream& out);
|
||||
void WriteHeaderInstanceFileSchema (std::ostream& out);
|
||||
|
||||
void WriteData (G4std::ostream& out, int writeComments = 1);
|
||||
void WriteValuePairsData(G4std::ostream& out, int writeComments = 1,
|
||||
void WriteData (std::ostream& out, int writeComments = 1);
|
||||
void WriteValuePairsData(std::ostream& out, int writeComments = 1,
|
||||
int mixedCase = 1);
|
||||
|
||||
int IncrementFileId (int fileid);
|
||||
@@ -241,7 +241,7 @@ class STEPfile
|
||||
void SetFileIdIncrement ();
|
||||
void MakeBackupFile();
|
||||
|
||||
// void ReadWhiteSpace(G4std::istream& in);
|
||||
// void ReadWhiteSpace(std::istream& in);
|
||||
};
|
||||
|
||||
//inline functions
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: STEPundefined.h,v 1.4 2000/01/21 13:42:33 gcosmo Exp $ */
|
||||
/* $Id: STEPundefined.h,v 1.5 2003/06/06 17:07:28 gcosmo Exp $ */
|
||||
|
||||
#ifdef __O3DB__
|
||||
#include <OpenOODB.h>
|
||||
@@ -29,15 +29,15 @@ class SCLundefined {
|
||||
public:
|
||||
// INPUT
|
||||
virtual Severity StrToVal(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity StrToVal(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
virtual Severity STEPread(const char *s, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(G4std::istream &in, ErrorDescriptor *err);
|
||||
virtual Severity STEPread(std::istream &in, ErrorDescriptor *err);
|
||||
|
||||
// OUTPUT
|
||||
virtual const char *asStr(SCLstring &s) const;
|
||||
virtual const char *STEPwrite(SCLstring &s);
|
||||
virtual void STEPwrite (G4std::ostream& out =G4cout);
|
||||
virtual void STEPwrite (std::ostream& out =G4cout);
|
||||
|
||||
int set_null ();
|
||||
int is_null ();
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "g4std/strstream"
|
||||
#include <strstream>
|
||||
|
||||
class ErrorDescriptor;
|
||||
#include <scl_string.h>
|
||||
@@ -57,17 +57,17 @@ class SCLP23_NAME(Binary) : public SCLstring
|
||||
|
||||
// format for STEP
|
||||
const char * asStr () const { return chars (); }
|
||||
void STEPwrite (G4std::ostream& out =G4cout) const;
|
||||
void STEPwrite (std::ostream& out =G4cout) const;
|
||||
const char * STEPwrite (SCLstring &s) const;
|
||||
|
||||
Severity StrToVal (const char *s, ErrorDescriptor *err);
|
||||
Severity STEPread (G4std::istream& in, ErrorDescriptor *err);
|
||||
Severity STEPread (std::istream& in, ErrorDescriptor *err);
|
||||
Severity STEPread (const char *s, ErrorDescriptor *err);
|
||||
|
||||
Severity BinaryValidLevel (const char *value, ErrorDescriptor *err,
|
||||
int optional, char *tokenList,
|
||||
int needDelims = 0, int clearError = 1);
|
||||
Severity BinaryValidLevel (G4std::istream &in, ErrorDescriptor *err,
|
||||
Severity BinaryValidLevel (std::istream &in, ErrorDescriptor *err,
|
||||
int optional, char *tokenList,
|
||||
int needDelims = 0, int clearError = 1);
|
||||
|
||||
@@ -76,7 +76,7 @@ class SCLP23_NAME(Binary) : public SCLstring
|
||||
#endif
|
||||
|
||||
protected:
|
||||
Severity ReadBinary(G4std::istream& in, ErrorDescriptor *err, int AssignVal = 1,
|
||||
Severity ReadBinary(std::istream& in, ErrorDescriptor *err, int AssignVal = 1,
|
||||
int needDelims = 1);
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// This file was generated by fedex_plus. You probably don't want to edit
|
||||
// it since your modifications will be lost if fedex_plus is used to
|
||||
// regenerate it.
|
||||
/* $Id: SdaiCONFIG_CONTROL_DESIGN.h,v 1.6 2000/06/09 13:55:20 gcosmo Exp $ */
|
||||
/* $Id: SdaiCONFIG_CONTROL_DESIGN.h,v 1.7 2003/06/06 17:07:29 gcosmo Exp $ */
|
||||
|
||||
#ifdef __OSTORE__
|
||||
#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -1019,11 +1019,11 @@ class SdaiCharacterized_product_definition : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1157,11 +1157,11 @@ class SdaiShape_definition : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1300,11 +1300,11 @@ class SdaiCharacterized_definition : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1415,11 +1415,11 @@ class SdaiChange_request_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1539,11 +1539,11 @@ class SdaiReversible_topology_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1699,11 +1699,11 @@ class SdaiAxis2_placement : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1827,11 +1827,11 @@ class SdaiSpecified_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -1975,11 +1975,11 @@ class SdaiMeasure_value : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2101,11 +2101,11 @@ class SdaiPerson_organization_select : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2218,11 +2218,11 @@ class SdaiPcurve_or_surface : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2343,11 +2343,11 @@ class SdaiClassified_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2480,11 +2480,11 @@ class SdaiVector_or_direction : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2608,11 +2608,11 @@ class SdaiWireframe_model : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2734,11 +2734,11 @@ class SdaiGeometric_set_select : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2857,11 +2857,11 @@ class SdaiStart_request_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -2985,11 +2985,11 @@ class SdaiPerson_organization_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3187,11 +3187,11 @@ class SdaiDate_time_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3382,11 +3382,11 @@ class SdaiShell : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3520,11 +3520,11 @@ class SdaiTransformation : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3647,11 +3647,11 @@ class SdaiBoolean_operand : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3760,11 +3760,11 @@ class SdaiCertified_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -3885,11 +3885,11 @@ class SdaiDate_time_select : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4003,11 +4003,11 @@ class SdaiCurve_on_surface : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4149,11 +4149,11 @@ class SdaiTrimming_select : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4270,11 +4270,11 @@ class SdaiContracted_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4389,11 +4389,11 @@ class SdaiUnit : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4505,11 +4505,11 @@ class SdaiReversible_topology : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4622,11 +4622,11 @@ class SdaiWork_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4743,11 +4743,11 @@ class SdaiSupported_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -4897,11 +4897,11 @@ class SdaiApproved_item : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
@@ -5102,11 +5102,11 @@ class SdaiSurface_model : public SCLP23(Select) {
|
||||
|
||||
|
||||
// STEP Part 21
|
||||
virtual void STEPwrite_content (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_content (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout,
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout,
|
||||
const char *currSch =0) const;
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0, const char *utype =0,
|
||||
int addFileId =0, const char *currSch =0);
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: Str.h,v 1.4 2000/01/21 13:42:37 gcosmo Exp $ */
|
||||
/* $Id: Str.h,v 1.5 2003/06/06 17:07:29 gcosmo Exp $ */
|
||||
|
||||
#ifdef __O3DB__
|
||||
#include <OpenOODB.h>
|
||||
@@ -43,7 +43,7 @@ int StrCmpIns (const char *, const char *);
|
||||
char * EntityClassName ( char * oldname);
|
||||
|
||||
extern Severity CheckRemainingInput
|
||||
(G4std::istream &in, ErrorDescriptor *err,
|
||||
(std::istream &in, ErrorDescriptor *err,
|
||||
const char *typeName, // used in error message
|
||||
const char *tokenList); // e.g. ",)"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
//
|
||||
// $Id: classes.h,v 1.3 2000/01/21 13:42:37 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-05-01 $
|
||||
// GEANT4 tag $Name: geant4-05-02 $
|
||||
//
|
||||
/*
|
||||
** Fed-x parser output module for generating C++ class definitions
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* Date: 5/9/97 *
|
||||
*****************************************************************************/
|
||||
|
||||
#include "g4std/iostream"
|
||||
#include "g4std/fstream"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
/*
|
||||
extern "C"
|
||||
{
|
||||
@@ -125,8 +125,8 @@ class EntList {
|
||||
friend class OrList;
|
||||
friend class ComplexList;
|
||||
friend class ComplexCollect;
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, EntList & );
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, MultList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, EntList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, MultList & );
|
||||
|
||||
public:
|
||||
// Changed order of member initialisations to match correct order - GC
|
||||
@@ -171,7 +171,7 @@ class EntList {
|
||||
|
||||
class SimpleList : public EntList {
|
||||
friend class ComplexList;
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, SimpleList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, SimpleList & );
|
||||
|
||||
public:
|
||||
// Changed order of member initialisations to match correct order - GC
|
||||
@@ -201,7 +201,7 @@ class MultList : public EntList {
|
||||
|
||||
friend class ComplexList;
|
||||
friend class ComplexCollect;
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, MultList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, MultList & );
|
||||
|
||||
public:
|
||||
MultList( JoinType j ) : EntList(j), supertype(0), numchildren(0),
|
||||
@@ -255,7 +255,7 @@ class AndOrList : public JoinList {
|
||||
|
||||
class AndList : public JoinList {
|
||||
friend class ComplexList;
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, ComplexList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, ComplexList & );
|
||||
|
||||
public:
|
||||
AndList() : JoinList( AND ) {}
|
||||
@@ -289,7 +289,7 @@ class ComplexList {
|
||||
|
||||
friend class MultList;
|
||||
friend class ComplexCollect;
|
||||
friend G4std::ostream & operator<< ( G4std::ostream &, ComplexList & );
|
||||
friend std::ostream & operator<< ( std::ostream &, ComplexList & );
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: errordesc.h,v 1.4 2000/01/21 13:42:39 gcosmo Exp $ */
|
||||
/* $Id: errordesc.h,v 1.5 2003/06/06 17:07:31 gcosmo Exp $ */
|
||||
|
||||
#ifdef __OSTORE__
|
||||
#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -24,7 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include <scl_string.h>
|
||||
#include "g4std/iostream"
|
||||
#include <iostream>
|
||||
|
||||
typedef enum Severity {
|
||||
SEVERITY_MAX = -5,
|
||||
@@ -63,7 +63,7 @@ enum DebugLevel {
|
||||
** Description:
|
||||
** the error is a detailed error message + a severity level
|
||||
** also keeps a user message separately
|
||||
** detailed message gets sent to G4std::ostream
|
||||
** detailed message gets sent to std::ostream
|
||||
** uses SCLstring class to keep the user messages
|
||||
** keeps severity of error
|
||||
** created with or without error
|
||||
@@ -71,13 +71,13 @@ enum DebugLevel {
|
||||
******************************************************************/
|
||||
|
||||
class ErrorDescriptor {
|
||||
// friend G4std::istream &operator<< ( G4std::istream&, ErrorDescriptor& );
|
||||
// friend std::istream &operator<< ( std::istream&, ErrorDescriptor& );
|
||||
protected:
|
||||
|
||||
Severity _severity;
|
||||
|
||||
static DebugLevel _debug_level;
|
||||
static G4std::ostream* _out; // note this will not be persistent
|
||||
static std::ostream* _out; // note this will not be persistent
|
||||
|
||||
SCLstring *_userMsg;
|
||||
SCLstring *_detailMsg;
|
||||
@@ -87,7 +87,7 @@ class ErrorDescriptor {
|
||||
DebugLevel d = DEBUG_OFF);
|
||||
~ErrorDescriptor () { delete _userMsg; delete _detailMsg; }
|
||||
|
||||
void PrintContents(G4std::ostream &out = G4cout) const;
|
||||
void PrintContents(std::ostream &out = G4cout) const;
|
||||
|
||||
void ClearErrorMsg() {
|
||||
_severity = SEVERITY_NULL;
|
||||
@@ -126,7 +126,7 @@ class ErrorDescriptor {
|
||||
|
||||
DebugLevel debug_level() const { return _debug_level; }
|
||||
void debug_level(DebugLevel d) { _debug_level = d; }
|
||||
void SetOutput(G4std::ostream *o) { _out = o; }
|
||||
void SetOutput(std::ostream *o) { _out = o; }
|
||||
|
||||
#ifdef __OSTORE__
|
||||
static os_typespec* get_os_typespec();
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
// print Error information for debugging purposes
|
||||
extern void PrintErrorState(ErrorDescriptor &err);
|
||||
|
||||
// print G4std::istream error information for debugging purposes
|
||||
extern void IStreamState(G4std::istream &in);
|
||||
// print std::istream error information for debugging purposes
|
||||
extern void IStreamState(std::istream &in);
|
||||
|
||||
extern int
|
||||
ReadInteger(SCLP23(Integer) &val, G4std::istream &in, ErrorDescriptor *err,
|
||||
ReadInteger(SCLP23(Integer) &val, std::istream &in, ErrorDescriptor *err,
|
||||
char *tokenList);
|
||||
|
||||
extern int
|
||||
@@ -27,10 +27,10 @@ extern char *
|
||||
WriteReal(SCLP23(Real) val, SCLstring &s);
|
||||
|
||||
extern void
|
||||
WriteReal(SCLP23(Real) val, G4std::ostream &out);
|
||||
WriteReal(SCLP23(Real) val, std::ostream &out);
|
||||
|
||||
extern int
|
||||
ReadReal(SCLP23(Real) &val, G4std::istream &in, ErrorDescriptor *err,
|
||||
ReadReal(SCLP23(Real) &val, std::istream &in, ErrorDescriptor *err,
|
||||
char *tokenList);
|
||||
|
||||
extern int
|
||||
@@ -42,7 +42,7 @@ RealValidLevel (const char *attrValue, ErrorDescriptor *err,
|
||||
int clearError, int optional, char *tokenList);
|
||||
|
||||
extern int
|
||||
ReadNumber(SCLP23(Real) &val, G4std::istream &in, ErrorDescriptor *err,
|
||||
ReadNumber(SCLP23(Real) &val, std::istream &in, ErrorDescriptor *err,
|
||||
char *tokenList);
|
||||
|
||||
extern int
|
||||
@@ -56,45 +56,45 @@ NumberValidLevel (const char *attrValue, ErrorDescriptor *err,
|
||||
|
||||
////////////////////
|
||||
|
||||
extern int QuoteInString(G4std::istream& in);
|
||||
extern int QuoteInString(std::istream& in);
|
||||
|
||||
extern void
|
||||
PushPastString (G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastString (std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
extern void
|
||||
PushPastImbedAggr (G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastImbedAggr (std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
extern void
|
||||
PushPastAggr1Dim(G4std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
PushPastAggr1Dim(std::istream& in, SCLstring &s, ErrorDescriptor *err);
|
||||
|
||||
////////////////////
|
||||
|
||||
extern Severity
|
||||
FindStartOfInstance(G4std::istream& in, SCLstring& inst);
|
||||
FindStartOfInstance(std::istream& in, SCLstring& inst);
|
||||
|
||||
// used for instances that aren\'t valid - reads to next \';\'
|
||||
extern Severity
|
||||
SkipInstance (G4std::istream& in, SCLstring & inst);
|
||||
SkipInstance (std::istream& in, SCLstring & inst);
|
||||
|
||||
extern const char *
|
||||
SkipSimpleRecord(G4std::istream &in, SCLstring &buf, ErrorDescriptor *err);
|
||||
SkipSimpleRecord(std::istream &in, SCLstring &buf, ErrorDescriptor *err);
|
||||
|
||||
// this includes entity names
|
||||
extern const char *
|
||||
ReadStdKeyword(G4std::istream& in, SCLstring &buf, int skipInitWS = 1);
|
||||
ReadStdKeyword(std::istream& in, SCLstring &buf, int skipInitWS = 1);
|
||||
|
||||
extern const char*
|
||||
GetKeyword(G4std::istream& in, const char* delims, ErrorDescriptor &err);
|
||||
GetKeyword(std::istream& in, const char* delims, ErrorDescriptor &err);
|
||||
|
||||
extern int
|
||||
FoundEndSecKywd(G4std::istream& in, ErrorDescriptor &err);
|
||||
FoundEndSecKywd(std::istream& in, ErrorDescriptor &err);
|
||||
|
||||
extern const char *ReadComment(SCLstring &ss, const char *s);
|
||||
|
||||
extern const char *ReadComment(G4std::istream& in, SCLstring &s);
|
||||
extern const char *ReadComment(std::istream& in, SCLstring &s);
|
||||
|
||||
extern Severity ReadPcd(G4std::istream& in); //print control directive
|
||||
extern Severity ReadPcd(std::istream& in); //print control directive
|
||||
|
||||
extern void ReadTokenSeparator(G4std::istream& in, SCLstring *comments = 0);
|
||||
extern void ReadTokenSeparator(std::istream& in, SCLstring *comments = 0);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: scl_string.h,v 1.4 2000/01/21 13:42:42 gcosmo Exp $ */
|
||||
/* $Id: scl_string.h,v 1.5 2003/06/06 17:07:31 gcosmo Exp $ */
|
||||
|
||||
#ifdef __O3DB__
|
||||
#include <OpenOODB.h>
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
int newBufSize (int len) const;
|
||||
|
||||
public:
|
||||
void PrintContents(G4std::ostream &out = G4cout) const;
|
||||
void PrintContents(std::ostream &out = G4cout) const;
|
||||
// returns 1 if _strBuf is a null ptr or if it is an empty string ("")
|
||||
int is_null() const;
|
||||
// returns 1 if _strBuf is a null ptr, and 0 otherwise
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* values for the EXPRESS base types.
|
||||
*/
|
||||
|
||||
/* $Id: sdai.h,v 1.4 2000/02/14 13:44:03 gcosmo Exp $ */
|
||||
/* $Id: sdai.h,v 1.5 2003/06/06 17:07:31 gcosmo Exp $ */
|
||||
|
||||
extern const char *SCLversion;
|
||||
|
||||
@@ -370,7 +370,7 @@ typedef SCLP23(Application_instance)* STEPentityPtr;
|
||||
typedef SCLP23(Application_instance)* STEPentityH;
|
||||
|
||||
extern SCLP23(Application_instance) *
|
||||
ReadEntityRef(G4std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
ReadEntityRef(std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
InstMgr * instances, int addFileId);
|
||||
|
||||
#define SdaiInteger SCLP23(Integer)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: sdaiApplication_instance.h,v 1.1 2000/01/21 13:42:43 gcosmo Exp $ */
|
||||
/* $Id: sdaiApplication_instance.h,v 1.2 2003/06/06 17:07:31 gcosmo Exp $ */
|
||||
|
||||
//#ifdef __OSTORE__
|
||||
//#include <ostore/ostore.hh> // Required to access ObjectStore Class Library
|
||||
@@ -148,23 +148,23 @@ class SCLP23_NAME(Application_instance) : public SCLP23_NAME(DAObject_SDAI)
|
||||
// READ
|
||||
virtual Severity STEPread(int id, int addFileId,
|
||||
class InstMgr * instance_set,
|
||||
G4std::istream& in =G4cin, const char *currSch =NULL,
|
||||
std::istream& in =G4cin, const char *currSch =NULL,
|
||||
int useTechCor =1);
|
||||
virtual void STEPread_error(char c, int index, G4std::istream& in);
|
||||
virtual void STEPread_error(char c, int index, std::istream& in);
|
||||
|
||||
// WRITE
|
||||
virtual void STEPwrite(G4std::ostream& out =G4cout, const char *currSch =NULL,
|
||||
virtual void STEPwrite(std::ostream& out =G4cout, const char *currSch =NULL,
|
||||
int writeComments = 1);
|
||||
virtual const char * STEPwrite(SCLstring &buf, const char *currSch =NULL);
|
||||
|
||||
void WriteValuePairs(G4std::ostream& out, const char *currSch =NULL,
|
||||
void WriteValuePairs(std::ostream& out, const char *currSch =NULL,
|
||||
int writeComments = 1, int mixedCase = 1);
|
||||
|
||||
void STEPwrite_reference (G4std::ostream& out =G4cout);
|
||||
void STEPwrite_reference (std::ostream& out =G4cout);
|
||||
const char * STEPwrite_reference (SCLstring &buf);
|
||||
|
||||
void beginSTEPwrite(G4std::ostream& out =G4cout); // writes out the SCOPE section
|
||||
void endSTEPwrite(G4std::ostream& out =G4cout);
|
||||
void beginSTEPwrite(std::ostream& out =G4cout); // writes out the SCOPE section
|
||||
void endSTEPwrite(std::ostream& out =G4cout);
|
||||
|
||||
// MULTIPLE INHERITANCE
|
||||
int MultipleInheritance() { return !(headMiEntity == 0); }
|
||||
@@ -224,7 +224,7 @@ typedef SCLP23_NAME(Application_instance_ptr) SCLP23_NAME(Application_instance_v
|
||||
//typedef SCLP23_NAME(Application_instance)* STEPentityH;
|
||||
|
||||
//extern SCLP23_NAME(Application_instance) *
|
||||
//ReadEntityRef(G4std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
//ReadEntityRef(std::istream &in, ErrorDescriptor *err, char *tokenList,
|
||||
// InstMgr * instances, int addFileId);
|
||||
|
||||
//typedef SCLP23_NAME(Application_instance) * (* Creator) () const;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: sdaiEnum.h,v 1.1 2000/01/21 13:42:44 gcosmo Exp $ */
|
||||
/* $Id: sdaiEnum.h,v 1.2 2003/06/06 17:07:32 gcosmo Exp $ */
|
||||
#if 0
|
||||
|
||||
#ifdef PART26
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
//class STEPenumeration {
|
||||
class SCLP23_NAME(Enum) {
|
||||
friend G4std::ostream &operator<< ( G4std::ostream&, const SCLP23_NAME(Enum)& );
|
||||
friend std::ostream &operator<< ( std::ostream&, const SCLP23_NAME(Enum)& );
|
||||
protected:
|
||||
int v; // integer value of enumeration instance
|
||||
// mapped to a symbolic value in the elements
|
||||
@@ -53,7 +53,7 @@ class SCLP23_NAME(Enum) {
|
||||
|
||||
public:
|
||||
|
||||
void PrintContents(G4std::ostream &out = G4cout) const
|
||||
void PrintContents(std::ostream &out = G4cout) const
|
||||
{ DebugDisplay(out); }
|
||||
|
||||
virtual int no_elements () const =0;
|
||||
@@ -65,18 +65,18 @@ class SCLP23_NAME(Enum) {
|
||||
int optional, char *tokenList,
|
||||
int needDelims = 0, int clearError = 1);
|
||||
|
||||
Severity EnumValidLevel(G4std::istream &in, ErrorDescriptor *err,
|
||||
Severity EnumValidLevel(std::istream &in, ErrorDescriptor *err,
|
||||
int optional, char *tokenList,
|
||||
int needDelims = 0, int clearError = 1);
|
||||
|
||||
const int asInt () const { return v; }
|
||||
|
||||
const char * asStr (SCLstring &s) const;
|
||||
void STEPwrite (G4std::ostream& out = G4cout) const;
|
||||
void STEPwrite (std::ostream& out = G4cout) const;
|
||||
const char * STEPwrite (SCLstring &s) const;
|
||||
|
||||
Severity StrToVal (const char * s, ErrorDescriptor *err, int optional = 1);
|
||||
Severity STEPread(G4std::istream& in, ErrorDescriptor *err, int optional = 1);
|
||||
Severity STEPread(std::istream& in, ErrorDescriptor *err, int optional = 1);
|
||||
Severity STEPread(const char *s, ErrorDescriptor *err, int optional = 1);
|
||||
|
||||
virtual int put (int val);
|
||||
@@ -92,7 +92,7 @@ class SCLP23_NAME(Enum) {
|
||||
virtual int exists() const; // return 0 if unset otherwise return 1
|
||||
virtual void nullify(); // change the receiver to an unset status
|
||||
// unset is generated to be 1 greater than last element
|
||||
void DebugDisplay (G4std::ostream& out =G4cout) const;
|
||||
void DebugDisplay (std::ostream& out =G4cout) const;
|
||||
|
||||
#ifdef __OSTORE__
|
||||
static os_typespec* get_os_typespec();
|
||||
@@ -102,7 +102,7 @@ class SCLP23_NAME(Enum) {
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual Severity ReadEnum(G4std::istream& in, ErrorDescriptor *err,
|
||||
virtual Severity ReadEnum(std::istream& in, ErrorDescriptor *err,
|
||||
int AssignVal = 1, int needDelims = 1);
|
||||
};
|
||||
|
||||
@@ -183,7 +183,7 @@ public SCLP23_NAME(Enum) {
|
||||
protected:
|
||||
virtual int set_value (const int n);
|
||||
virtual int set_value (const char * n);
|
||||
virtual Severity ReadEnum(G4std::istream& in, ErrorDescriptor *err,
|
||||
virtual Severity ReadEnum(std::istream& in, ErrorDescriptor *err,
|
||||
int AssignVal = 1, int needDelims = 1);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: sdaiSelect.h,v 1.1 2000/01/21 13:42:45 gcosmo Exp $ */
|
||||
/* $Id: sdaiSelect.h,v 1.2 2003/06/06 17:07:32 gcosmo Exp $ */
|
||||
|
||||
/*
|
||||
|
||||
@@ -95,13 +95,13 @@ class SCLP23_NAME(Select) {
|
||||
|
||||
// reading and writing
|
||||
const char * STEPwrite (SCLstring& s, const char *currSch =0) const;
|
||||
void STEPwrite (G4std::ostream& out =G4cout, const char *currSch =0) const;
|
||||
void STEPwrite (std::ostream& out =G4cout, const char *currSch =0) const;
|
||||
|
||||
// IMS 8/2/95: added as part of new select implementation
|
||||
virtual void STEPwrite_verbose (G4std::ostream& out =G4cout, const char * =0)
|
||||
virtual void STEPwrite_verbose (std::ostream& out =G4cout, const char * =0)
|
||||
const;
|
||||
|
||||
virtual void STEPwrite_content (G4std::ostream& out, const char * =0) const =0;
|
||||
virtual void STEPwrite_content (std::ostream& out, const char * =0) const =0;
|
||||
// char * asStr() const;
|
||||
|
||||
|
||||
@@ -110,12 +110,12 @@ class SCLP23_NAME(Select) {
|
||||
virtual Severity StrToVal_content (const char *,
|
||||
InstMgr * instances =0) =0;
|
||||
|
||||
Severity STEPread(G4std::istream& in, ErrorDescriptor *err,
|
||||
Severity STEPread(std::istream& in, ErrorDescriptor *err,
|
||||
InstMgr * instances =0, const char* utype =0,
|
||||
int addFileId =0, const char * =NULL);
|
||||
|
||||
// abstract function
|
||||
virtual Severity STEPread_content (G4std::istream& in =G4cin,
|
||||
virtual Severity STEPread_content (std::istream& in =G4cin,
|
||||
InstMgr * instances =0,
|
||||
const char *utype =0,
|
||||
int addFileId =0,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: sdaiString.h,v 1.1 2000/01/21 13:42:46 gcosmo Exp $ */
|
||||
/* $Id: sdaiString.h,v 1.2 2003/06/06 17:07:32 gcosmo Exp $ */
|
||||
|
||||
/*
|
||||
#ifdef __OSTORE__
|
||||
@@ -46,11 +46,11 @@ public:
|
||||
|
||||
// format for STEP
|
||||
const char * asStr (SCLstring & s) const { return s = chars (); }
|
||||
void STEPwrite (G4std::ostream& out =G4cout) const;
|
||||
void STEPwrite (std::ostream& out =G4cout) const;
|
||||
void STEPwrite (SCLstring &s) const;
|
||||
|
||||
Severity StrToVal (const char *s);
|
||||
Severity STEPread (G4std::istream& in, ErrorDescriptor *err);
|
||||
Severity STEPread (std::istream& in, ErrorDescriptor *err);
|
||||
Severity STEPread (const char *s, ErrorDescriptor *err);
|
||||
|
||||
#ifdef __OSTORE__
|
||||
|
||||
Reference in New Issue
Block a user