return m_Signalprocessingfunctions;
}
-Signalprocessingfunctions::Signalprocessingfunctions(const std::wstring& callerName)
+Signalprocessingfunctions::Signalprocessingfunctions(const std::string& callerName)
{
- m_wstrCaller = callerName;
+ m_strCaller = callerName;
m_pCallDgetx = NULL;
m_pCallDgety = NULL;
m_pStringDgetyStatic = NULL;
// init static functions
- if (callerName == L"corr")
+ if (callerName == "corr")
{
- m_staticFunctionMap[L"corexx"] = (void*)C2F(corexx);
- m_staticFunctionMap[L"corexy"] = (void*)C2F(corexy);
+ m_staticFunctionMap["corexx"] = (void*)C2F(corexx);
+ m_staticFunctionMap["corexy"] = (void*)C2F(corexy);
}
}
if (out.size() != iRetCount)
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgety->getName().c_str());
+ const char* pstrName = m_pCallDgety->getName().c_str();
sprintf(errorMsg, _("%s: Wrong number of input argument(s): %d expected.\n"), pstrName, iRetCount);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
if (out[0]->isDouble() == false)
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgety->getName().c_str());
+ const char* pstrName = m_pCallDgety->getName().c_str();
sprintf(errorMsg, _("%s: Wrong type for output argument #%d: Real matrix expected.\n"), pstrName, 1);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
types::Double* pDblOut = out[0]->getAs<types::Double>();
if (pDblOut->isComplex())
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgety->getName().c_str());
+ const char* pstrName = m_pCallDgety->getName().c_str();
sprintf(errorMsg, _("%s: Wrong type for output argument #%d: Real matrix expected.\n"), pstrName, 1);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
if (out.size() != iRetCount)
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgetx->getName().c_str());
+ const char* pstrName = m_pCallDgetx->getName().c_str();
sprintf(errorMsg, _("%s: Wrong number of input argument(s): %d expected.\n"), pstrName, iRetCount);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
if (out[0]->isDouble() == false)
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgetx->getName().c_str());
+ const char* pstrName = m_pCallDgetx->getName().c_str();
sprintf(errorMsg, _("%s: Wrong type for output argument #%d: Real matrix expected.\n"), pstrName, 1);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
types::Double* pDblOut = out[0]->getAs<types::Double>();
if (pDblOut->isComplex())
{
- char* pstrName = wide_string_to_UTF8(m_pCallDgetx->getName().c_str());
+ const char* pstrName = m_pCallDgetx->getName().c_str();
sprintf(errorMsg, _("%s: Wrong type for output argument #%d: Real matrix expected.\n"), pstrName, 1);
- FREE(pstrName);
throw ast::InternalError(errorMsg);
}
{
public :
- Signalprocessingfunctions(const std::wstring& callerName);
+ Signalprocessingfunctions(const std::string& callerName);
~Signalprocessingfunctions();
void setDgetx(types::Callable*);
private :
std::vector<types::InternalType*> m_FArgs;
- std::map<std::wstring, void*> m_staticFunctionMap;
- std::wstring m_wstrCaller;
+ std::map<std::string, void*> m_staticFunctionMap;
+ std::string m_strCaller;
types::Callable* m_pCallDgetx;
types::Callable* m_pCallDgety;