casa
$Rev:20696$
|
A helper class for the enumeration WindowFunction. More...
#include <CWindowFunction.h>
Static Public Member Functions | |
static int | version () |
Return the major version number as an int. | |
static std::string | revision () |
Return the revision as a string. | |
static unsigned int | size () |
Return the number of enumerators declared in WindowFunctionMod::WindowFunction. | |
static std::string | name (const WindowFunctionMod::WindowFunction &e) |
Returns an enumerator as a string. | |
static std::string | toString (const WindowFunctionMod::WindowFunction &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static WindowFunctionMod::WindowFunction | newWindowFunction (const std::string &name) |
Create a WindowFunction enumeration object by specifying its name. | |
static WindowFunctionMod::WindowFunction | literal (const std::string &name) |
static WindowFunctionMod::WindowFunction | from_int (unsigned int i) |
static int | version () |
Return the major version number as an int. | |
static std::string | revision () |
Return the revision as a string. | |
static unsigned int | size () |
Return the number of enumerators declared in WindowFunctionMod::WindowFunction. | |
static std::string | name (const WindowFunctionMod::WindowFunction &e) |
Returns an enumerator as a string. | |
static std::string | toString (const WindowFunctionMod::WindowFunction &f) |
Equivalent to the name method. | |
static const std::vector < std::string > | names () |
Returns vector of all the enumerators as strings. | |
static WindowFunctionMod::WindowFunction | newWindowFunction (const std::string &name) |
Create a WindowFunction enumeration object by specifying its name. | |
static WindowFunctionMod::WindowFunction | literal (const std::string &name) |
static WindowFunctionMod::WindowFunction | from_int (unsigned int i) |
Static Public Attributes | |
static const std::string & | sUNIFORM |
Enumerators as strings. | |
static const std::string & | sHANNING |
static const std::string & | sHAMMING |
static const std::string & | sBARTLETT |
static const std::string & | sBLACKMANN |
static const std::string & | sBLACKMANN_HARRIS |
static const std::string & | sWELCH |
Private Member Functions | |
CWindowFunction () | |
CWindowFunction (const CWindowFunction &) | |
CWindowFunction & | operator= (const CWindowFunction &) |
CWindowFunction () | |
CWindowFunction (const CWindowFunction &) | |
CWindowFunction & | operator= (const CWindowFunction &) |
Static Private Member Functions | |
static std::string | badString (const std::string &name) |
static std::string | badInt (unsigned int i) |
static std::string | badString (const std::string &name) |
static std::string | badInt (unsigned int i) |
A helper class for the enumeration WindowFunction.
Definition at line 93 of file CWindowFunction.h.
CWindowFunction::CWindowFunction | ( | ) | [private] |
CWindowFunction::CWindowFunction | ( | const CWindowFunction & | ) | [private] |
CWindowFunction::CWindowFunction | ( | ) | [private] |
CWindowFunction::CWindowFunction | ( | const CWindowFunction & | ) | [private] |
static std::string CWindowFunction::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CWindowFunction::badInt | ( | unsigned int | i | ) | [static, private] |
static std::string CWindowFunction::badString | ( | const std::string & | name | ) | [static, private] |
static std::string CWindowFunction::badString | ( | const std::string & | name | ) | [static, private] |
static WindowFunctionMod::WindowFunction CWindowFunction::from_int | ( | unsigned int | i | ) | [static] |
Return a WindowFunction's enumerator given an unsigned int.
i | the index of the enumerator in WindowFunctionMod::WindowFunction. |
a | string containing an error message if no enumerator could be found for this integer. |
static WindowFunctionMod::WindowFunction CWindowFunction::from_int | ( | unsigned int | i | ) | [static] |
Return a WindowFunction's enumerator given an unsigned int.
i | the index of the enumerator in WindowFunctionMod::WindowFunction. |
a | string containing an error message if no enumerator could be found for this integer. |
static WindowFunctionMod::WindowFunction CWindowFunction::literal | ( | const std::string & | name | ) | [static] |
Return a WindowFunction's enumerator given a string.
name | the string representation of the enumerator. |
a | string containing an error message if no enumerator could be found for this name. |
static WindowFunctionMod::WindowFunction CWindowFunction::literal | ( | const std::string & | name | ) | [static] |
Return a WindowFunction's enumerator given a string.
name | the string representation of the enumerator. |
a | string containing an error message if no enumerator could be found for this name. |
static std::string CWindowFunction::name | ( | const WindowFunctionMod::WindowFunction & | e | ) | [static] |
Returns an enumerator as a string.
e | an enumerator of WindowFunctionMod::WindowFunction. |
static std::string CWindowFunction::name | ( | const WindowFunctionMod::WindowFunction & | e | ) | [static] |
Returns an enumerator as a string.
e | an enumerator of WindowFunctionMod::WindowFunction. |
static const std::vector<std::string> CWindowFunction::names | ( | ) | [static] |
Returns vector of all the enumerators as strings.
The strings are stored in the vector in the same order than the enumerators are declared in the enumeration.
static const std::vector<std::string> CWindowFunction::names | ( | ) | [static] |
Returns vector of all the enumerators as strings.
The strings are stored in the vector in the same order than the enumerators are declared in the enumeration.
static WindowFunctionMod::WindowFunction CWindowFunction::newWindowFunction | ( | const std::string & | name | ) | [static] |
Create a WindowFunction enumeration object by specifying its name.
static WindowFunctionMod::WindowFunction CWindowFunction::newWindowFunction | ( | const std::string & | name | ) | [static] |
Create a WindowFunction enumeration object by specifying its name.
CWindowFunction& CWindowFunction::operator= | ( | const CWindowFunction & | ) | [private] |
CWindowFunction& CWindowFunction::operator= | ( | const CWindowFunction & | ) | [private] |
static std::string CWindowFunction::revision | ( | ) | [static] |
Return the revision as a string.
static std::string CWindowFunction::revision | ( | ) | [static] |
Return the revision as a string.
static unsigned int CWindowFunction::size | ( | ) | [static] |
Return the number of enumerators declared in WindowFunctionMod::WindowFunction.
static unsigned int CWindowFunction::size | ( | ) | [static] |
Return the number of enumerators declared in WindowFunctionMod::WindowFunction.
static std::string CWindowFunction::toString | ( | const WindowFunctionMod::WindowFunction & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 147 of file CWindowFunction.h.
static std::string CWindowFunction::toString | ( | const WindowFunctionMod::WindowFunction & | f | ) | [inline, static] |
Equivalent to the name method.
Definition at line 147 of file CWindowFunction.h.
static int CWindowFunction::version | ( | ) | [static] |
Return the major version number as an int.
static int CWindowFunction::version | ( | ) | [static] |
Return the major version number as an int.
static const std::string & CWindowFunction::sBARTLETT [static] |
A const string equal to "BARTLETT".
Definition at line 106 of file CWindowFunction.h.
static const std::string & CWindowFunction::sBLACKMANN [static] |
A const string equal to "BLACKMANN".
Definition at line 108 of file CWindowFunction.h.
static const std::string & CWindowFunction::sBLACKMANN_HARRIS [static] |
A const string equal to "BLACKMANN_HARRIS".
Definition at line 110 of file CWindowFunction.h.
static const std::string & CWindowFunction::sHAMMING [static] |
A const string equal to "HAMMING".
Definition at line 104 of file CWindowFunction.h.
static const std::string & CWindowFunction::sHANNING [static] |
A const string equal to "HANNING".
Definition at line 102 of file CWindowFunction.h.
static const std::string & CWindowFunction::sUNIFORM [static] |
Enumerators as strings.
A const string equal to "UNIFORM".
Definition at line 100 of file CWindowFunction.h.
static const std::string & CWindowFunction::sWELCH [static] |
A const string equal to "WELCH".
Definition at line 112 of file CWindowFunction.h.