Data Structures | Variables
gfsmIndexedIO.h File Reference

Librarian routines for indexed automata. More...

#include <gfsmAutomatonIO.h>
#include <gfsmIndexed.h>
Include dependency graph for gfsmIndexedIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gfsmIndexedAutomatonHeader
 Header info for binary files. More...

Functions

Indexed Automaton Methods: Binary I/O
gboolean gfsm_indexed_automaton_load_header (gfsmIndexedAutomatonHeader *hdr, gfsmIOHandle *ioh, gfsmError **errp)
gboolean gfsm_indexed_automaton_load_bin_handle (gfsmIndexedAutomaton *fsm, gfsmIOHandle *ioh, gfsmError **errp)
gboolean gfsm_indexed_automaton_load_bin_file (gfsmIndexedAutomaton *fsm, FILE *f, gfsmError **errp)
gboolean gfsm_indexed_automaton_load_bin_filename (gfsmIndexedAutomaton *fsm, const gchar *filename, gfsmError **errp)
gboolean gfsm_indexed_automaton_load_bin_gstring (gfsmIndexedAutomaton *fsm, GString *gs, gfsmError **errp)
gboolean gfsm_indexed_automaton_save_bin_handle (gfsmIndexedAutomaton *fsm, gfsmIOHandle *ioh, gfsmError **errp)
gboolean gfsm_indexed_automaton_save_bin_file (gfsmIndexedAutomaton *fsm, FILE *f, gfsmError **errp)
gboolean gfsm_indexed_automaton_save_bin_filename_nc (gfsmIndexedAutomaton *fsm, const gchar *filename, gfsmError **errp)
gboolean gfsm_indexed_automaton_save_bin_filename (gfsmIndexedAutomaton *fsm, const gchar *filename, int zlevel, gfsmError **errp)
gboolean gfsm_indexed_automaton_save_bin_gstring (gfsmIndexedAutomaton *fsm, GString *gs, gfsmError **errp)

Variables

const gchar gfsm_indexed_header_magic [16]
const gfsmVersionInfo gfsm_indexed_version_bincompat_min_store
const gfsmVersionInfo gfsm_indexed_version_bincompat_min_check

Automaton Methods: Text I/O (output only)

#define gfsm_indexed_automaton_print_file(fsm, f, errp)   gfsm_indexed_automaton_print_file_full(fsm,f,NULL,NULL,NULL,0,errp)
#define gfsm_indexed_automaton_print_filename(fsm, f, errp)   gfsm_indexed_automaton_print_filename_full(fsm,f,NULL,NULL,NULL,0,errp)
gboolean gfsm_indexed_automaton_print_handle (gfsmIndexedAutomaton *fsm, gfsmIOHandle *ioh, gfsmAlphabet *lo_alphabet, gfsmAlphabet *hi_alphabet, gfsmAlphabet *state_alphabet, gfsmError **errp)
gboolean gfsm_indexed_automaton_print_file_full (gfsmIndexedAutomaton *fsm, FILE *f, gfsmAlphabet *lo_alphabet, gfsmAlphabet *hi_alphabet, gfsmAlphabet *state_alphabet, int zlevel, gfsmError **errp)
gboolean gfsm_indexed_automaton_print_filename_full (gfsmIndexedAutomaton *fsm, const gchar *filename, gfsmAlphabet *lo_alphabet, gfsmAlphabet *hi_alphabet, gfsmAlphabet *state_alphabet, int zlevel, gfsmError **errp)
gboolean gfsm_indexed_automaton_print_gstring_full (gfsmIndexedAutomaton *fsm, GString *gs, gfsmAlphabet *lo_alphabet, gfsmAlphabet *hi_alphabet, gfsmAlphabet *state_alphabet, gfsmError **errp)

Detailed Description

Macro Definition Documentation

#define gfsm_indexed_automaton_print_file (   fsm,
  f,
  errp 
)    gfsm_indexed_automaton_print_file_full(fsm,f,NULL,NULL,NULL,0,errp)

Convenience macro for printing to uncompresed all-numeric-id text streams

#define gfsm_indexed_automaton_print_filename (   fsm,
  f,
  errp 
)    gfsm_indexed_automaton_print_filename_full(fsm,f,NULL,NULL,NULL,0,errp)

Convenience macro for printing to uncompressed all-numeric-id named text files

Function Documentation

gboolean gfsm_indexed_automaton_load_header ( gfsmIndexedAutomatonHeader hdr,
gfsmIOHandle ioh,
gfsmError **  errp 
)

Load an automaton header from a stored binary file. Returns TRUE iff the header looks valid.

gboolean gfsm_indexed_automaton_load_bin_handle ( gfsmIndexedAutomaton fsm,
gfsmIOHandle ioh,
gfsmError **  errp 
)

Load an automaton from a named binary file (implicitly clear()s fsm)

gboolean gfsm_indexed_automaton_load_bin_file ( gfsmIndexedAutomaton fsm,
FILE *  f,
gfsmError **  errp 
)

Load an automaton from a stored binary file (implicitly clear()s fsm)

gboolean gfsm_indexed_automaton_load_bin_filename ( gfsmIndexedAutomaton fsm,
const gchar *  filename,
gfsmError **  errp 
)

Load an automaton from a named binary file (implicitly clear()s fsm)

gboolean gfsm_indexed_automaton_load_bin_gstring ( gfsmIndexedAutomaton fsm,
GString *  gs,
gfsmError **  errp 
)

Load an automaton from an in-memory buffer

gboolean gfsm_indexed_automaton_save_bin_handle ( gfsmIndexedAutomaton fsm,
gfsmIOHandle ioh,
gfsmError **  errp 
)

Store an automaton in binary form to a gfsmIOHandle*

gboolean gfsm_indexed_automaton_save_bin_file ( gfsmIndexedAutomaton fsm,
FILE *  f,
gfsmError **  errp 
)

Store an automaton in binary form to a file

gboolean gfsm_indexed_automaton_save_bin_filename_nc ( gfsmIndexedAutomaton fsm,
const gchar *  filename,
gfsmError **  errp 
)

Store an automaton to a named binary file (no compression)

gboolean gfsm_indexed_automaton_save_bin_filename ( gfsmIndexedAutomaton fsm,
const gchar *  filename,
int  zlevel,
gfsmError **  errp 
)

Store an automaton to a named binary file, possibly compressing. Set zlevel=-1 for default compression, and set zlevel=0 for no compression, otherwise should be as for zlib (1 <= zlevel <= 9)

gboolean gfsm_indexed_automaton_save_bin_gstring ( gfsmIndexedAutomaton fsm,
GString *  gs,
gfsmError **  errp 
)

Append an uncompressed binary automaton to an in-memory buffer

gboolean gfsm_indexed_automaton_print_handle ( gfsmIndexedAutomaton fsm,
gfsmIOHandle ioh,
gfsmAlphabet lo_alphabet,
gfsmAlphabet hi_alphabet,
gfsmAlphabet state_alphabet,
gfsmError **  errp 
)

Print a gfsmIndexedAutomaton in Ma-Bell-compatible text-format to a gfsmIOHandle*

gboolean gfsm_indexed_automaton_print_file_full ( gfsmIndexedAutomaton fsm,
FILE *  f,
gfsmAlphabet lo_alphabet,
gfsmAlphabet hi_alphabet,
gfsmAlphabet state_alphabet,
int  zlevel,
gfsmError **  errp 
)

Print an automaton in Ma-Bell-compatible text-format to a FILE*

gboolean gfsm_indexed_automaton_print_filename_full ( gfsmIndexedAutomaton fsm,
const gchar *  filename,
gfsmAlphabet lo_alphabet,
gfsmAlphabet hi_alphabet,
gfsmAlphabet state_alphabet,
int  zlevel,
gfsmError **  errp 
)

Print an automaton in Ma-Bell-compatible text-format to a named file

gboolean gfsm_indexed_automaton_print_gstring_full ( gfsmIndexedAutomaton fsm,
GString *  gs,
gfsmAlphabet lo_alphabet,
gfsmAlphabet hi_alphabet,
gfsmAlphabet state_alphabet,
gfsmError **  errp 
)

Print an automaton in Ma-Bell-compatible text-format to an in-memory buffer

Variable Documentation

const gchar gfsm_indexed_header_magic[16]

Magic header string for stored gfsmIndexedAutomaton files

const gfsmVersionInfo gfsm_indexed_version_bincompat_min_store

Minimum libgfsm version required for loading files stored by this version of libgfsm

const gfsmVersionInfo gfsm_indexed_version_bincompat_min_check

Minimum libgfsm version whose binary files this version of libgfsm can read