---
name: "sc_StateInBin"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_StateInBin"
---

# sc\_StateInBin(3)

Read objects written with StateOutBin.

## NAME

sc::StateInBin - Read objects written with **StateOutBin**.

## SYNOPSIS

`#include <state_bin.h>`

Inherits **sc::StateInFile**.

### Public Member Functions

**StateInBin** (const **Ref**\< **KeyVal** \> &)\
 **StateInBin** (std::istream &)\
 **StateInBin** (const char \*)\
 int **open** (const char \*name)\
 State information will be obtained from name.  int **use\_directory** ()\
 Returns true of this object uses a directory.  int **tell** ()\
 Return the current position in the file.  void **seek** (int loc)\
 Set the current position in the file.  int **seekable** ()\
 Return non-zero if seek does anything sensible.

### Additional Inherited Members

## Detailed Description

Read objects written with **StateOutBin**.

## Member Function Documentation

### int sc::StateInBin::open (const char \* name)` [virtual]`

State information will be obtained from name.

Reimplemented from **sc::StateInFile**.

### void sc::StateInBin::seek (int)` [virtual]`

Set the current position in the file. The default implementation does nothing.

Reimplemented from **sc::StateIn**.

### int sc::StateInBin::seekable ()` [virtual]`

Return non-zero if seek does anything sensible. The default implementation returns 0.

Reimplemented from **sc::StateIn**.

### int sc::StateInBin::tell ()` [virtual]`

Return the current position in the file.

Reimplemented from **sc::StateIn**.

### int sc::StateInBin::use\_directory ()` [virtual]`

Returns true of this object uses a directory.

Reimplemented from **sc::StateIn**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
