3 #include <QMetaProperty>
89 printf(
"MESSAGE: %s %s\n",
90 qPrintable(dt.toString(
"hh:mm:ss")), qPrintable(msg));
99 printf(
"MESSAGE: %s %s\n",
100 qPrintable(dt.toString(
"hh:mm:ss")), qPrintable(msg));
109 printf(
"MESSAGE: %s %s\n",
110 qPrintable(dt.toString(
"hh:mm:ss")), qPrintable(msg));
128 for(
int i=0;i<str.length();i++) {
132 }
else if(str[i] ==
'\'') {
135 }
else if(str[i] ==
'\"') {
138 }
else if(str[i] ==
'\\') {
142 newStr.append(str[i]);
151 if (v.type() == QMetaType::QString) {
152 return "\"" +
addSlashes(v.toString()) +
"\"";
161 const QMetaObject* metaObject = this->metaObject();
163 for (
int i=1; i < metaObject->propertyCount(); i++) {
164 QMetaProperty prop = metaObject->property(i);
166 if (prop.isStored()) {
167 res += tr(
"%1.%2 = %3;\n").arg(this->
get_Name())
static QAtomicInt s_ObjectDeleteCount(0)
void set_Name(QString name)
static void readSettings(QObject *object, QSettings *settings, QString section)
virtual void readSettings(QSettings *set, QString section)
QcepObjectNamer m_ObjectNamer
static QAtomicInt s_ObjectAllocateCount(0)
virtual QString settingsScript()
static QSet< QcepObject * > s_Allocated
static int deletedObjects()
static void writeSettings(QObject *object, QSettings *settings, QString section)
QString scriptValueLiteral(QVariant v)
virtual void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QcepObject(QString name, QcepObject *parent)
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime()) const
virtual void writeSettings(QSettings *set, QString section)
static QSet< QcepObject * > allocatedObjectsSet()
virtual void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
static int allocatedObjects()
virtual void printLine(QString line)
static QString addSlashes(QString str)