FST  openfst-1.7.1
OpenFst Library
Public Member Functions | Static Public Member Functions | List of all members
FlagRegister< T > Class Template Reference

#include <flags.h>

Public Member Functions

const FlagDescription< T > & GetFlagDescription (const string &name) const
 
void SetDescription (const string &name, const FlagDescription< T > &desc)
 
bool SetFlag (const string &val, bool *address) const
 
bool SetFlag (const string &val, string *address) const
 
bool SetFlag (const string &val, int32 *address) const
 
bool SetFlag (const string &val, int64 *address) const
 
bool SetFlag (const string &val, double *address) const
 
bool SetFlag (const string &arg, const string &val) const
 
void GetUsage (std::set< std::pair< string, string >> *usage_set) const
 

Static Public Member Functions

static FlagRegister< T > * GetRegister ()
 

Detailed Description

template<typename T>
class FlagRegister< T >

Definition at line 75 of file flags.h.

Member Function Documentation

template<typename T >
const FlagDescription<T>& FlagRegister< T >::GetFlagDescription ( const string &  name) const
inline

Definition at line 82 of file flags.h.

template<typename T >
static FlagRegister<T>* FlagRegister< T >::GetRegister ( )
inlinestatic

Definition at line 77 of file flags.h.

template<typename T >
void FlagRegister< T >::GetUsage ( std::set< std::pair< string, string >> *  usage_set) const
inline

Definition at line 143 of file flags.h.

template<typename T >
void FlagRegister< T >::SetDescription ( const string &  name,
const FlagDescription< T > &  desc 
)
inline

Definition at line 88 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  val,
bool *  address 
) const
inline

Definition at line 94 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  val,
string *  address 
) const
inline

Definition at line 107 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  val,
int32 address 
) const
inline

Definition at line 112 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  val,
int64 address 
) const
inline

Definition at line 118 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  val,
double *  address 
) const
inline

Definition at line 124 of file flags.h.

template<typename T >
bool FlagRegister< T >::SetFlag ( const string &  arg,
const string &  val 
) const
inline

Definition at line 130 of file flags.h.


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