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 97 virtual void seek(
long, Offset =
Set) = 0;
98 virtual streampos
pos() = 0;
113 Float pow(Float base,
signed int exp);
114 Float ldexp(Float x,
signed int exp) {
return x * pow(2, exp); }
127 Int readInt(
unsigned int size);
129 unsigned long readString(
char *str,
unsigned long amount);
130 unsigned long readString(
char *str,
unsigned long maxlen,
const char delim);
131 #if BINIO_ENABLE_STRING 132 std::string readString(
const char delim =
'\0');
135 Int peekInt(
unsigned int size);
139 void ignore(
unsigned long amount = 1);
142 virtual Byte getByte() = 0;
143 virtual void getRaw(
char *c, streamsize n) = 0;
156 void writeInt(
Int val,
unsigned int size);
158 unsigned long writeString(
const char *str,
unsigned long amount = 0);
159 #if BINIO_ENABLE_STRING 160 unsigned long writeString(
const std::string &str);
164 virtual void putByte(
Byte) = 0;
165 virtual void putRaw(
const char *c, streamsize n) = 0;
168 void float2ieee_single(
Float f,
Byte *data);
169 void float2ieee_double(
Float f,
Byte *data);
virtual void seek(long, Offset=Set)=0
The global header file for ARTS.
static const Flags system_flags
virtual streampos pos()=0
static Flags detect_system_flags()
void setFlag(Flag f, bool set=true)