home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftptest.leeds.ac.uk
/
2015.02.ftptest.leeds.ac.uk.tar
/
ftptest.leeds.ac.uk
/
bionet
/
CAE-GROUP
/
SCL-WIN3x
/
SCL.EXE
/
BINARY.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-06
|
2KB
|
72 lines
#ifndef BINARY_H
#define BINARY_H 1
/*
* NIST STEP Core Class Library
* clstepcore/SdaiBinary.h
* February, 1994
* KC Morris
* Development of this software was funded by the United States Government,
* and is not subject to copyright.
*/
/* $Id: SdaiBinary.h,v */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <strstream.h>
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) { }
SdaiBinary (SCLstring& s) : SCLstring (s) { }
SdaiBinary (SdaiBinary& s) : SCLstring (s) { }
~SdaiBinary () { }
// operators
SdaiBinary& operator= (const char* s);
// format for STEP
const char * asStr () const { return chars (); }
void STEPwrite (ostream& out =cout) 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