28#ifndef _util_state_state_bin_h
29#define _util_state_state_bin_h
35#include <util/state/state_file.h>
41class StateOutBin:
public StateOutFile {
45 StateOutBin(
const StateOutBin&);
46 void operator=(
const StateOutBin&);
50 int put_array_void(
const void*,
int);
53 StateOutBin(std::ostream&);
54 StateOutBin(
const char *);
57 int open(
const char *name);
69class StateInBin:
public StateInFile {
73 StateInBin(
const StateInBin&);
74 void operator=(
const StateInBin&);
78 int get_array_void(
void*,
int);
82 StateInBin(std::istream&);
83 StateInBin(
const char *);
86 int open(
const char *name);
A template class that maintains references counts.
Definition ref.h:332
int seekable()
Return non-zero if seek does anything sensible.
void seek(int loc)
Set the current position in the file.
int open(const char *name)
State information will be obtained from name.
int tell()
Return the current position in the file.
int use_directory()
Returns true of this object uses a directory.
int seekable()
Return non-zero if tell and seek do anything sensible.
int tell()
Returns the current position in the file.
int open(const char *name)
State information will be written to name.
void close()
Close the output stream.
int use_directory()
Returns true if this object uses a directory.
void seek(int loc)
Set the current position in the file.