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

#include <fst.h>

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 108 of file fst.h.

Member Enumeration Documentation

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 std::string& fst::FstHeader::ArcType ( ) const
inline

Definition at line 121 of file fst.h.

std::string fst::FstHeader::DebugString ( ) const

Definition at line 99 of file fst.cc.

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

Definition at line 119 of file fst.h.

uint32 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 std::string &  source,
bool  rewind = false 
)

Definition at line 58 of file fst.cc.

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

Definition at line 137 of file fst.h.

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

Definition at line 141 of file fst.h.

void fst::FstHeader::SetFstType ( const std::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 std::string &  source 
) const

Definition at line 86 of file fst.cc.


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