casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions
CWindowFunction Class Reference

A helper class for the enumeration WindowFunction. More...

#include <CWindowFunction.h>

List of all members.

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 &)
CWindowFunctionoperator= (const CWindowFunction &)
 CWindowFunction ()
 CWindowFunction (const CWindowFunction &)
CWindowFunctionoperator= (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)

Detailed Description

A helper class for the enumeration WindowFunction.

Definition at line 93 of file CWindowFunction.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Parameters:
ithe index of the enumerator in WindowFunctionMod::WindowFunction.
Returns:
a WindowFunctionMod::WindowFunction's enumerator.
Exceptions:
astring 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.

Parameters:
ithe index of the enumerator in WindowFunctionMod::WindowFunction.
Returns:
a WindowFunctionMod::WindowFunction's enumerator.
Exceptions:
astring 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.

Parameters:
namethe string representation of the enumerator.
Returns:
a WindowFunctionMod::WindowFunction's enumerator.
Exceptions:
astring 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.

Parameters:
namethe string representation of the enumerator.
Returns:
a WindowFunctionMod::WindowFunction's enumerator.
Exceptions:
astring 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.

Parameters:
ean enumerator of WindowFunctionMod::WindowFunction.
Returns:
a string.
static std::string CWindowFunction::name ( const WindowFunctionMod::WindowFunction &  e) [static]

Returns an enumerator as a string.

Parameters:
ean enumerator of WindowFunctionMod::WindowFunction.
Returns:
a string.
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.

Returns:
a vector of string.
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.

Returns:
a vector of string.
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.

Returns:
a string
static std::string CWindowFunction::revision ( ) [static]

Return the revision as a string.

Returns:
a string
static unsigned int CWindowFunction::size ( ) [static]

Return the number of enumerators declared in WindowFunctionMod::WindowFunction.

Returns:
an unsigned int.
static unsigned int CWindowFunction::size ( ) [static]

Return the number of enumerators declared in WindowFunctionMod::WindowFunction.

Returns:
an unsigned int.
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.

Returns:
an int.
static int CWindowFunction::version ( ) [static]

Return the major version number as an int.

Returns:
an int.

Member Data Documentation

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.


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