qasm/util.cpp

39 lines
450 B
C++
Raw Normal View History

2023-02-07 06:27:19 +00:00
#define UTIL_CPP
#include <app.h>
2023-02-07 06:27:19 +00:00
#undef CLASS
#define CLASS QUtils
CLASS::CLASS() : appInstance(Poco::Util::Application::instance())
{
}
bool CLASS::isMerlin32(void)
{
return(false);
}
2023-02-07 06:27:19 +00:00
bool CLASS::isMerlin816(void)
{
return(true);
}
2023-02-07 06:27:19 +00:00
string CLASS::getAppPath()
{
char buff[PATH_MAX+1];
char *x;
string res="";
res=appInstance.commandPath();
x=realpath(res.c_str(),buff);
if (x!=NULL)
{
res=buff;
}
else
res="";
return(res);
}