31 #define BINIO_ENABLE_STRING 1 37 #define BINIO_ENABLE_IOSTREAM 1 43 #define BINIO_ISO_STDLIB 1 53 #define BINIO_WITH_MATH 1 59 #pragma warning(disable : 4250) 62 #if BINIO_ENABLE_STRING 93 virtual void seek(
long, Offset =
Set) = 0;
94 virtual streampos
pos() = 0;
99 typedef unsigned char Byte;
109 Float
pow(Float base,
signed int exp);
110 Float ldexp(Float x,
signed int exp) {
return x *
pow(2, exp); }
122 Int readInt(
unsigned int size);
124 unsigned long readString(
char *str,
unsigned long amount);
125 unsigned long readString(
char *str,
unsigned long maxlen,
const char delim);
126 #if BINIO_ENABLE_STRING 127 std::string readString(
const char delim =
'\0');
130 Int peekInt(
unsigned int size);
134 void ignore(
unsigned long amount = 1);
137 virtual Byte getByte() = 0;
138 virtual void getRaw(
char *c, streamsize
n) = 0;
150 void writeInt(
Int val,
unsigned int size);
152 unsigned long writeString(
const char *str,
unsigned long amount = 0);
153 #if BINIO_ENABLE_STRING 154 unsigned long writeString(
const std::string &str);
158 virtual void putByte(
Byte) = 0;
159 virtual void putRaw(
const char *c, streamsize
n) = 0;
163 void float2ieee_double(
Float f,
Byte *data);
virtual void seek(long, Offset=Set)=0
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
The global header file for ARTS.
static const Flags system_flags
Numeric pow(const Rational base, Numeric exp)
Power of.
virtual streampos pos()=0
static Flags detect_system_flags()
void setFlag(Flag f, bool set=true)