mirror of
https://github.com/marketideas/qasm.git
synced 2025-01-14 11:29:46 +00:00
39 lines
450 B
C++
39 lines
450 B
C++
#define UTIL_CPP
|
|
#include <app.h>
|
|
|
|
#undef CLASS
|
|
#define CLASS QUtils
|
|
|
|
CLASS::CLASS() : appInstance(Poco::Util::Application::instance())
|
|
{
|
|
}
|
|
|
|
bool CLASS::isMerlin32(void)
|
|
{
|
|
return(false);
|
|
}
|
|
|
|
bool CLASS::isMerlin816(void)
|
|
{
|
|
return(true);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
|