Edinburgh Speech Tools  2.1-release
EST_TNamedEnum< ENUM > Class Template Reference

#include <include/EST_TNamedEnum.h>

Inheritance diagram for EST_TNamedEnum< ENUM >:
Collaboration diagram for EST_TNamedEnum< ENUM >:

Public Member Functions

 EST_TNamedEnum (ENUM undef_e, const char *undef_n=NULL)
 
 EST_TNamedEnum (EST_TValuedEnumDefinition< ENUM, const char *, NO_INFO > defs[])
 
 EST_TNamedEnum (EST_TValuedEnumDefinition< const char *, const char *, NO_INFO > defs[], ENUM(*conv)(const char *))
 
EST_read_status load (EST_String name)
 
EST_read_status load (EST_String name, EST_TNamedEnum &definitive)
 
EST_write_status save (EST_String name, char quote='"') const
 
EST_write_status save (EST_String name, EST_TNamedEnum &definitive, char quote='"') const
 
- Public Member Functions inherited from EST_TNamedEnumI< ENUM, NO_INFO >
 EST_TNamedEnumI (EST_TValuedEnumDefinition< ENUM, const char *, NO_INFO > defs[])
 
 EST_TNamedEnumI (EST_TValuedEnumDefinition< const char *, const char *, NO_INFO > defs[], ENUM(*conv)(const char *))
 
const char * name (ENUM tok, int n=0) const
 
- Public Member Functions inherited from EST_TValuedEnumI< ENUM, const char *, NO_INFO >
 EST_TValuedEnumI (EST_TValuedEnumDefinition< ENUM, const char *, NO_INFO > defs[])
 
 EST_TValuedEnumI (EST_TValuedEnumDefinition< const char *, const char *, NO_INFO > defs[], ENUM(*conv)(const char *))
 
virtual ~EST_TValuedEnumI (void)
 
int n (void) const
 
ENUM token (const char *value) const
 
ENUM token (int n) const
 
ENUM nth_token (int n) const
 
const char * value (ENUM token, int n=0) const
 
NO_INFOinfo (ENUM token) const
 
ENUM unknown_enum (void) const
 
const char * unknown_value (void) const
 
int valid (ENUM token) const
 

Additional Inherited Members

- Protected Member Functions inherited from EST_TNamedEnumI< ENUM, NO_INFO >
 EST_TNamedEnumI (void)
 
int eq_vals (const char *v1, const char *v2) const
 
- Protected Member Functions inherited from EST_TValuedEnumI< ENUM, const char *, NO_INFO >
void initialise (const void *defs)
 
void initialise (const void *defs, ENUM(*conv)(const char *))
 
void initialise (void)
 
void initialise (ENUM unknown_e, const char *unknown_v)
 
 EST_TValuedEnumI (void)
 
- Protected Attributes inherited from EST_TValuedEnumI< ENUM, const char *, NO_INFO >
int ndefinitions
 
ENUM p_unknown_enum
 
const char * p_unknown_value
 
EST_TValuedEnumDefinition< ENUM, const char *, NO_INFO > * definitions
 

Detailed Description

template<class ENUM>
class EST_TNamedEnum< ENUM >

Definition at line 148 of file EST_TNamedEnum.h.

Constructor & Destructor Documentation

template<class ENUM>
EST_TNamedEnum< ENUM >::EST_TNamedEnum ( ENUM  undef_e,
const char *  undef_n = NULL 
)
inline

Definition at line 153 of file EST_TNamedEnum.h.

template<class ENUM>
EST_TNamedEnum< ENUM >::EST_TNamedEnum ( EST_TValuedEnumDefinition< ENUM, const char *, NO_INFO defs[])
inline

Definition at line 155 of file EST_TNamedEnum.h.

template<class ENUM>
EST_TNamedEnum< ENUM >::EST_TNamedEnum ( EST_TValuedEnumDefinition< const char *, const char *, NO_INFO defs[],
ENUM(*)(const char *)  conv 
)
inline

Definition at line 157 of file EST_TNamedEnum.h.

Member Function Documentation

template<class ENUM>
EST_read_status EST_TNamedEnum< ENUM >::load ( EST_String  name)
inline

Definition at line 160 of file EST_TNamedEnum.h.

template<class ENUM>
EST_read_status EST_TNamedEnum< ENUM >::load ( EST_String  name,
EST_TNamedEnum< ENUM > &  definitive 
)
inline

Definition at line 161 of file EST_TNamedEnum.h.

template<class ENUM>
EST_write_status EST_TNamedEnum< ENUM >::save ( EST_String  name,
char  quote = '"' 
) const
inline

Definition at line 162 of file EST_TNamedEnum.h.

template<class ENUM>
EST_write_status EST_TNamedEnum< ENUM >::save ( EST_String  name,
EST_TNamedEnum< ENUM > &  definitive,
char  quote = '"' 
) const
inline

Definition at line 163 of file EST_TNamedEnum.h.


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