00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _util_state_state_bin_h
00029 #define _util_state_state_bin_h
00030
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034
00035 #include <util/state/state_file.h>
00036
00037 namespace sc {
00038
00041 class StateOutBin: public StateOutFile {
00042 private:
00043 int file_position_;
00044
00045 StateOutBin(const StateOutBin&);
00046 void operator=(const StateOutBin&);
00050 int put_array_void(const void*,int);
00051 public:
00052 StateOutBin();
00053 StateOutBin(std::ostream&);
00054 StateOutBin(const char *);
00055 ~StateOutBin();
00056
00057 int open(const char *name);
00058 void close();
00059
00060 int use_directory();
00061
00062 int tell();
00063 void seek(int loc);
00064 int seekable();
00065 };
00066
00069 class StateInBin: public StateInFile {
00070 private:
00071 int file_position_;
00072
00073 StateInBin(const StateInBin&);
00074 void operator=(const StateInBin&);
00078 int get_array_void(void*,int);
00079 public:
00080 StateInBin();
00081 StateInBin(const Ref<KeyVal> &);
00082 StateInBin(std::istream&);
00083 StateInBin(const char *);
00084 ~StateInBin();
00085
00086 int open(const char *name);
00087
00088 int use_directory();
00089
00090 int tell();
00091 void seek(int loc);
00092 int seekable();
00093 };
00094
00095 }
00096
00097 #endif
00098
00099
00100
00101
00102