FST  openfst-1.8.2
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_t Version () const
 
uint32_t GetFlags () const
 
uint64_t Properties () const
 
int64_t Start () const
 
int64_t NumStates () const
 
int64_t NumArcs () const
 
void SetFstType (std::string_view type)
 
void SetArcType (std::string_view type)
 
void SetVersion (int32_t version)
 
void SetFlags (uint32_t flags)
 
void SetProperties (uint64_t properties)
 
void SetStart (int64_t start)
 
void SetNumStates (int64_t numstates)
 
void SetNumArcs (int64_t 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 126 of file fst.h.

Member Enumeration Documentation

Enumerator
HAS_ISYMBOLS 
HAS_OSYMBOLS 
IS_ALIGNED 

Definition at line 128 of file fst.h.

Constructor & Destructor Documentation

fst::FstHeader::FstHeader ( )
inline

Definition at line 134 of file fst.h.

Member Function Documentation

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

Definition at line 144 of file fst.h.

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

Definition at line 92 of file fst.cc.

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

Definition at line 142 of file fst.h.

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

Definition at line 148 of file fst.h.

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

Definition at line 156 of file fst.h.

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

Definition at line 154 of file fst.h.

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

Definition at line 150 of file fst.h.

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

Definition at line 50 of file fst.cc.

void fst::FstHeader::SetArcType ( std::string_view  type)
inline

Definition at line 160 of file fst.h.

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

Definition at line 164 of file fst.h.

void fst::FstHeader::SetFstType ( std::string_view  type)
inline

Definition at line 158 of file fst.h.

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

Definition at line 172 of file fst.h.

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

Definition at line 170 of file fst.h.

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

Definition at line 166 of file fst.h.

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

Definition at line 168 of file fst.h.

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

Definition at line 162 of file fst.h.

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

Definition at line 152 of file fst.h.

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

Definition at line 146 of file fst.h.

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

Definition at line 79 of file fst.cc.


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