Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: SdaiBinary.h,v 2.1 1998/07/13 16:53:23 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
#ifndef SDAIBINARY_H
|
||||
#define SDAIBINARY_H 1
|
||||
|
||||
/*
|
||||
* NIST STEP Core Class Library
|
||||
* clstepcore/SdaiBinary.h
|
||||
* May 1995
|
||||
* KC Morris
|
||||
|
||||
* Development of this software was funded by the United States Government,
|
||||
* and is not subject to copyright.
|
||||
*/
|
||||
|
||||
/* $Id: SdaiBinary.h,v */
|
||||
|
||||
#ifdef __O3DB__
|
||||
#include <OpenOODB.h>
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#ifdef WIN32
|
||||
# include <Strstrea.h>
|
||||
#else
|
||||
# include <strstream.h>
|
||||
#endif
|
||||
|
||||
class ErrorDescriptor;
|
||||
#include <scl_string.h>
|
||||
#include <errordesc.h>
|
||||
|
||||
#ifndef BINARY_DELIM
|
||||
#define BINARY_DELIM '\"'
|
||||
#endif
|
||||
|
||||
class SdaiBinary : public SCLstring
|
||||
{
|
||||
public:
|
||||
|
||||
//constructor(s) & destructor
|
||||
SdaiBinary (const char * str = 0, int max =0) : SCLstring (str,max) { }
|
||||
|
||||
//Josh L, 3/28/95
|
||||
// SdaiBinary (SCLstring& s) : SCLstring (s) { }
|
||||
// SdaiBinary (SdaiBinary& s) : SCLstring (s) { }
|
||||
SdaiBinary (const SCLstring& s) : SCLstring (s) { }
|
||||
|
||||
|
||||
~SdaiBinary () { }
|
||||
|
||||
// operators
|
||||
SdaiBinary& operator= (const char* s);
|
||||
|
||||
// format for STEP
|
||||
const char * asStr () const { return chars (); }
|
||||
void STEPwrite (ostream& out =G4cout) const;
|
||||
const char * STEPwrite (SCLstring &s) const;
|
||||
|
||||
Severity StrToVal (const char *s, ErrorDescriptor *err);
|
||||
Severity STEPread (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 (istream &in, ErrorDescriptor *err,
|
||||
int optional, char *tokenList,
|
||||
int needDelims = 0, int clearError = 1);
|
||||
|
||||
protected:
|
||||
Severity ReadBinary(istream& in, ErrorDescriptor *err, int AssignVal = 1,
|
||||
int needDelims = 1);
|
||||
};
|
||||
|
||||
inline
|
||||
SdaiBinary&
|
||||
SdaiBinary::operator= (const char* s)
|
||||
{ SCLstring::operator= (s);
|
||||
return *this; }
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user