2014-10-08 00:52:15 +00:00
|
|
|
#ifndef BINARYIO_H
|
|
|
|
#define BINARYIO_H
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
#include <string>
|
|
|
|
|
2014-10-12 17:12:10 +00:00
|
|
|
class ResType;
|
|
|
|
|
2014-10-08 00:52:15 +00:00
|
|
|
void byte(std::ostream& out, int byte);
|
|
|
|
void word(std::ostream& out, int word);
|
2014-10-12 17:12:10 +00:00
|
|
|
void ostype(std::ostream& out, ResType type);
|
2014-10-08 00:52:15 +00:00
|
|
|
void longword(std::ostream& out, int longword);
|
|
|
|
|
|
|
|
int byte(std::istream& in);
|
|
|
|
int word(std::istream& in);
|
2014-10-12 17:12:10 +00:00
|
|
|
ResType ostype(std::istream& in);
|
2014-10-08 00:52:15 +00:00
|
|
|
int longword(std::istream& in);
|
|
|
|
|
|
|
|
#endif // BINARYIO_H
|