Files
geant4/source/geometry/solids/STEP/include/read_func.h
T
2016-06-08 15:09:25 +02:00

105 lines
2.5 KiB
C

//
//
// $Id: read_func.h,v 1.2 1999/05/21 20:20:42 japost Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef READ_FUNC_H
#define READ_FUNC_H
#include <sdai.h>
#define MAX_COMMENT_LENGTH 512
// Print Error information for debugging purposes
extern void PrintErrorState(ErrorDescriptor &err);
// Print istream error information for debugging purposes
extern void IStreamState(istream &in);
extern int
ReadInteger(SdaiInteger &val, istream &in, ErrorDescriptor *err,
char *tokenList);
extern int
ReadInteger(SdaiInteger &val, const char *s, ErrorDescriptor *err,
char *tokenList);
extern Severity
IntValidLevel (const char *attrValue, ErrorDescriptor *err,
int clearError, int optional, char *tokenList);
extern int
ReadReal(SdaiReal &val, istream &in, ErrorDescriptor *err,
char *tokenList);
extern int
ReadReal(SdaiReal &val, const char *s, ErrorDescriptor *err,
char *tokenList);
extern Severity
RealValidLevel (const char *attrValue, ErrorDescriptor *err,
int clearError, int optional, char *tokenList);
extern int
ReadNumber(SdaiReal &val, istream &in, ErrorDescriptor *err,
char *tokenList);
extern int
ReadNumber(SdaiReal &val, const char *s, ErrorDescriptor *err,
char *tokenList);
extern Severity
NumberValidLevel (const char *attrValue, ErrorDescriptor *err,
int clearError, int optional, char *tokenList);
////////////////////
extern int QuoteInString(istream& in);
extern void
PushPastString (istream& in, SCLstring &s, ErrorDescriptor *err);
extern void
PushPastImbedAggr (istream& in, SCLstring &s, ErrorDescriptor *err);
extern void
PushPastAggr1Dim(istream& in, SCLstring &s, ErrorDescriptor *err);
////////////////////
extern Severity
FindStartOfInstance(istream& in, SCLstring& inst);
// used for instances that aren\'t valid - reads to next \';\'
extern Severity
SkipInstance (istream& in, SCLstring & inst);
extern const char *
SkipSimpleRecord(istream &in, SCLstring &buf, ErrorDescriptor *err);
// this includes entity names
extern const char *
ReadStdKeyword(istream& in, SCLstring &buf, int skipInitWS = 1);
extern const char*
GetKeyword(istream& in, const char* delims, ErrorDescriptor &err);
extern int
FoundEndSecKywd(istream& in, ErrorDescriptor &err);
extern const char *ReadComment(SCLstring &ss, const char *s);
extern const char *ReadComment(istream& in, SCLstring &s);
extern Severity ReadPcd(istream& in); //Print control directive
extern void ReadTokenSeparator(istream& in, SCLstring *comments = 0);
#endif