FST  openfst-1.7.5
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 109 of file fst.h.

Member Enumeration Documentation

Enumerator
HAS_ISYMBOLS 
HAS_OSYMBOLS 
IS_ALIGNED 

Definition at line 111 of file fst.h.

Constructor & Destructor Documentation

fst::FstHeader::FstHeader ( )
inline

Definition at line 117 of file fst.h.

Member Function Documentation

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

Definition at line 122 of file fst.h.

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

Definition at line 100 of file fst.cc.

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

Definition at line 120 of file fst.h.

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

Definition at line 126 of file fst.h.

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

Definition at line 134 of file fst.h.

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

Definition at line 132 of file fst.h.

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

Definition at line 128 of file fst.h.

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

Definition at line 59 of file fst.cc.

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

Definition at line 138 of file fst.h.

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

Definition at line 142 of file fst.h.

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

Definition at line 136 of file fst.h.

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

Definition at line 150 of file fst.h.

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

Definition at line 148 of file fst.h.

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

Definition at line 144 of file fst.h.

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

Definition at line 146 of file fst.h.

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

Definition at line 140 of file fst.h.

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

Definition at line 130 of file fst.h.

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

Definition at line 124 of file fst.h.

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

Definition at line 87 of file fst.cc.


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