2 #ifndef CWindowFunction_H
3 #define CWindowFunction_H
40 #error This is a C++ include file and cannot be used from plain C
50 #include <almaEnumerations_IFC.h>
54 namespace WindowFunctionMod
59 const char *
const revision =
"-1";
60 const int version = 1;
79 typedef WindowFunction &WindowFunction_out;
83 namespace WindowFunctionMod {
111 static const std::string&
sWELCH;
133 static unsigned int size() ;
141 static std::string
name(
const WindowFunctionMod::WindowFunction&
e);
146 static std::string
toString(
const WindowFunctionMod::WindowFunction& f) {
return name(f); }
153 static const std::vector<std::string>
names();
164 static WindowFunctionMod::WindowFunction
literal(
const std::string&
name);
171 static WindowFunctionMod::WindowFunction
from_int(
unsigned int i);
181 static std::string
badInt(
unsigned int i) ;
static std::string name(const WindowFunctionMod::WindowFunction &e)
Returns an enumerator as a string.
static const std::string & sUNIFORM
Enumerators as strings.
static std::string toString(const WindowFunctionMod::WindowFunction &f)
Equivalent to the name method.
std::istream & operator>>(std::istream &in, WindowFunction &value)
static WindowFunctionMod::WindowFunction newWindowFunction(const std::string &name)
Create a WindowFunction enumeration object by specifying its name.
static const std::vector< std::string > names()
Returns vector of all the enumerators as strings.
CWindowFunction & operator=(const CWindowFunction &)
static const std::string & sBLACKMANN_HARRIS
static std::string badString(const std::string &name)
static WindowFunctionMod::WindowFunction from_int(unsigned int i)
A helper class for the enumeration WindowFunction.
static std::string badInt(unsigned int i)
static unsigned int size()
Return the number of enumerators declared in WindowFunctionMod::WindowFunction.
std::ostream & operator<<(std::ostream &out, const WindowFunction &value)
static const std::string & sWELCH
static WindowFunctionMod::WindowFunction literal(const std::string &name)
static const std::string & sBLACKMANN
static const std::string & sHAMMING
static int version()
Return the major version number as an int.
const Double e
e and functions thereof:
static const std::string & sHANNING
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static std::string revision()
Return the revision as a string.
static const std::string & sBARTLETT