FST  openfst-1.7.1
OpenFst Library
Public Types | Public Member Functions | Public Attributes | List of all members
fst::FstHeader Class Reference

#include <fst.h>

Public Types

enum  { HAS_ISYMBOLS = 0x1, HAS_OSYMBOLS = 0x2, IS_ALIGNED = 0x4 }
 

Public Member Functions

 FstHeader ()
 
const string & FstType () const
 
const string & ArcType () const
 
int32 Version () const
 
int32 GetFlags () const
 
uint64 Properties () const
 
int64 Start () const
 
int64 NumStates () const
 
int64 NumArcs () const
 
void SetFstType (const string &type)
 
void SetArcType (const string &type)
 
void SetVersion (int32 version)
 
void SetFlags (int32 flags)
 
void SetProperties (uint64 properties)
 
void SetStart (int64 start)
 
void SetNumStates (int64 numstates)
 
void SetNumArcs (int64 numarcs)
 
bool Read (std::istream &strm, const string &source, bool rewind=false)
 
bool Write (std::ostream &strm, const string &source) const
 
string DebugString () const
 

Public Attributes

enum fst::FstHeader:: { ... }  Flags
 

Detailed Description

Definition at line 108 of file fst.h.

Member Enumeration Documentation

anonymous enum
Enumerator
HAS_ISYMBOLS 
HAS_OSYMBOLS 
IS_ALIGNED 

Definition at line 110 of file fst.h.

Constructor & Destructor Documentation

fst::FstHeader::FstHeader ( )
inline

Definition at line 116 of file fst.h.

Member Function Documentation

const string& fst::FstHeader::ArcType ( ) const
inline

Definition at line 121 of file fst.h.

string fst::FstHeader::DebugString ( ) const

Definition at line 98 of file fst.cc.

const string& fst::FstHeader::FstType ( ) const
inline

Definition at line 119 of file fst.h.

int32 fst::FstHeader::GetFlags ( ) const
inline

Definition at line 125 of file fst.h.

int64 fst::FstHeader::NumArcs ( ) const
inline

Definition at line 133 of file fst.h.

int64 fst::FstHeader::NumStates ( ) const
inline

Definition at line 131 of file fst.h.

uint64 fst::FstHeader::Properties ( ) const
inline

Definition at line 127 of file fst.h.

bool fst::FstHeader::Read ( std::istream &  strm,
const string &  source,
bool  rewind = false 
)

Definition at line 58 of file fst.cc.

void fst::FstHeader::SetArcType ( const string &  type)
inline

Definition at line 137 of file fst.h.

void fst::FstHeader::SetFlags ( int32  flags)
inline

Definition at line 141 of file fst.h.

void fst::FstHeader::SetFstType ( const string &  type)
inline

Definition at line 135 of file fst.h.

void fst::FstHeader::SetNumArcs ( int64  numarcs)
inline

Definition at line 149 of file fst.h.

void fst::FstHeader::SetNumStates ( int64  numstates)
inline

Definition at line 147 of file fst.h.

void fst::FstHeader::SetProperties ( uint64  properties)
inline

Definition at line 143 of file fst.h.

void fst::FstHeader::SetStart ( int64  start)
inline

Definition at line 145 of file fst.h.

void fst::FstHeader::SetVersion ( int32  version)
inline

Definition at line 139 of file fst.h.

int64 fst::FstHeader::Start ( ) const
inline

Definition at line 129 of file fst.h.

int32 fst::FstHeader::Version ( ) const
inline

Definition at line 123 of file fst.h.

bool fst::FstHeader::Write ( std::ostream &  strm,
const string &  source 
) const

Definition at line 85 of file fst.cc.

Member Data Documentation

enum { ... } fst::FstHeader::Flags

The documentation for this class was generated from the following files: