#include <qcepdatagroup.h>
|
virtual QString | description () const |
|
QcepDataObjectPtr | item (QString nm) |
|
QcepDataObjectPtr | item (int n) |
|
QcepDataGroupPtr | group (QString path) |
|
QcepDataGroupPtr | group (int n) |
|
QcepDataArrayPtr | array (QString path) |
|
QcepDataArrayPtr | array (int n) |
|
QcepDataColumnPtr | column (QString path) |
|
QcepDataColumnPtr | column (int n) |
|
QcepDataColumnScanPtr | columnScan (QString path) |
|
QcepDataColumnScanPtr | columnScan (int n) |
|
QcepDoubleImageDataPtr | image (QString path) |
|
QcepDoubleImageDataPtr | image (int n) |
|
QcepIntegratedDataPtr | integratedData (QString path) |
|
QcepIntegratedDataPtr | integratedData (int n) |
|
int | childCount () const |
|
void | clear () |
|
void | insert (int atRow, QcepDataObjectPtr obj) |
|
void | append (QcepDataObjectPtr obj) |
|
void | append (QString path, QcepDataObjectPtr obj) |
|
void | remove (int n) |
|
void | remove (QcepDataObjectPtr obj) |
|
void | remove (QString path) |
|
QcepDataGroupPtr | createGroup (QString path) |
|
QcepDataGroupPtr | newGroup (QString path) |
|
QcepDataArrayPtr | newArray (QString path, QVector< int > dims) |
|
QcepDataColumnPtr | newColumn (QString path, int nrow) |
|
QcepDataColumnScanPtr | newColumnScan (QString path, int nrow, QStringList cols) |
|
QcepDoubleImageDataPtr | newImage (QString path, int width=0, int height=0) |
|
QcepIntegratedDataPtr | newIntegratedData (QString path, int sz) |
|
static QScriptValue | toGroupScriptValue (QScriptEngine *engine, const QcepDataGroupPtr &data) |
|
static void | fromGroupScriptValue (const QScriptValue &obj, QcepDataGroupPtr &data) |
|
QString | directoryName (QString path) |
|
QString | object (QString path) |
|
QcepDataGroupPtr | containingGroup (QString path) |
|
QcepDataObjectPtr | referencedObject (QString path) |
|
virtual QString | description () const |
|
QString | metaTypeName (int id) const |
|
QString | pathName () const |
|
QcepDataGroupPtr | rootItem () |
|
virtual QcepDataGroupPtr | parentItem () const |
|
virtual void | printLine (QString line) |
|
virtual void | printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime()) const |
|
virtual void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
|
virtual void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
|
virtual QString | settingsScript () |
|
QString | scriptValueLiteral (QVariant v) |
|
|
| QcepDataGroup (QcepSettingsSaverWPtr saver, QString name, QcepObject *parent) |
|
| QcepDataObject (QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent) |
|
virtual | ~QcepDataObject () |
|
QcepSettingsSaverWPtr | saver () |
|
virtual int | childCount () const |
|
virtual QcepDataObjectPtr | item (int n) |
|
virtual QcepDataObjectPtr | item (QString nm) |
|
virtual void | setParentItem (QcepDataGroupWPtr parent) |
|
virtual int | indexInParent () const |
|
virtual int | rowCount () const |
|
virtual int | columnCount () const |
|
virtual QVariant | columnData (int col) const |
|
virtual QString | fileFormatFilterString () |
|
virtual void | saveData (QString &name, QString filter, Overwrite canOverwrite=NoOverwrite) |
|
| QcepObject (QString name, QcepObject *parent) |
|
virtual | ~QcepObject () |
|
virtual void | writeSettings (QSettings *set, QString section) |
|
virtual void | readSettings (QSettings *set, QString section) |
|
QString | get_Name () const |
|
void | set_Name (QString name) |
|
Definition at line 15 of file qcepdatagroup.h.
Definition at line 242 of file qcepdatagroup.cpp.
References containingGroup(), and group().
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QcepDataGroupPtr group(QString path)
QcepDataGroupPtr containingGroup(QString path)
Definition at line 85 of file qcepdatagroup.cpp.
References item().
Referenced by newArray().
89 return qSharedPointerDynamicCast<QcepDataArray>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 92 of file qcepdatagroup.cpp.
References item().
96 return qSharedPointerDynamicCast<QcepDataArray>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
int QcepDataGroup::childCount |
( |
| ) |
const |
|
slot |
void QcepDataGroup::clear |
( |
| ) |
|
|
slot |
Definition at line 99 of file qcepdatagroup.cpp.
References item().
Referenced by newColumn().
103 return qSharedPointerDynamicCast<QcepDataColumn>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 106 of file qcepdatagroup.cpp.
References item().
110 return qSharedPointerDynamicCast<QcepDataColumn>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 113 of file qcepdatagroup.cpp.
References item().
117 return qSharedPointerDynamicCast<QcepDataColumnScan>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 120 of file qcepdatagroup.cpp.
References item().
124 return qSharedPointerDynamicCast<QcepDataColumnScan>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 173 of file qcepdatagroup.cpp.
References item(), QcepDataObject::parentItem(), referencedObject(), and QcepDataObject::rootItem().
Referenced by append().
175 QFileInfo info(path);
177 if (info.isAbsolute()) {
179 return rootItem()->containingGroup(path);
183 return qSharedPointerDynamicCast<QcepDataGroup>(obj);
188 return qSharedPointerDynamicCast<QcepDataGroup>(obj);
QcepDataObjectPtr item(QString nm)
virtual QcepDataGroupPtr parentItem() const
QcepDataObjectPtr referencedObject(QString path)
QcepDataGroupPtr rootItem()
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 280 of file qcepdatagroup.cpp.
References directoryName(), group(), item(), QcepObject::printMessage(), QcepDataGroup(), and QcepDataObject::saver().
Referenced by newArray(), newColumn(), newColumnScan(), newGroup(), newImage(), and newIntegratedData().
290 printMessage(tr(
"Item %1 exists and is not a data group").arg(path));
QcepDataObjectPtr item(QString nm)
QcepDataGroup(QcepSettingsSaverWPtr saver, QString name, QcepObject *parent)
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QcepDataGroupPtr group(QString path)
QString directoryName(QString path)
virtual void printMessage(QString msg, QDateTime dt=QDateTime::currentDateTime()) const
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QcepDataGroupPtr createGroup(QString path)
QcepSettingsSaverWPtr saver()
QString QcepDataGroup::description |
( |
| ) |
const |
|
virtualslot |
QString QcepDataGroup::directoryName |
( |
QString |
path | ) |
|
|
slot |
void QcepDataGroup::fromGroupScriptValue |
( |
const QScriptValue & |
obj, |
|
|
QcepDataGroupPtr & |
data |
|
) |
| |
|
staticslot |
Definition at line 430 of file qcepdatagroup.cpp.
432 QObject *qobj = obj.toQObject();
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 78 of file qcepdatagroup.cpp.
References item().
82 return qSharedPointerDynamicCast<QcepDataGroup>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 127 of file qcepdatagroup.cpp.
References item().
Referenced by newImage().
131 return qSharedPointerDynamicCast<QcepDoubleImageData>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 134 of file qcepdatagroup.cpp.
References item().
138 return qSharedPointerDynamicCast<QcepDoubleImageData>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 141 of file qcepdatagroup.cpp.
References item().
145 return qSharedPointerDynamicCast<QcepIntegratedData>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 148 of file qcepdatagroup.cpp.
References item().
152 return qSharedPointerDynamicCast<QcepIntegratedData>(obj);
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
Definition at line 36 of file qcepdatagroup.cpp.
References m_Objects, and QcepDataObject::rootItem().
Referenced by array(), QcepDataColumnScan::column(), column(), columnScan(), containingGroup(), createGroup(), group(), image(), QcepDataObject::indexInParent(), integratedData(), and referencedObject().
42 }
else if (nm ==
".") {
43 return sharedFromThis();
44 }
else if (info.fileName() == nm) {
46 if (p && (p->get_Name() == nm)) {
51 QDir dir = info.dir();
59 return grp->item(info.fileName());
QcepDataObjectPtr item(QString nm)
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QcepDataGroupPtr rootItem()
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QVector< QcepDataObjectPtr > m_Objects
Definition at line 24 of file qcepdatagroup.cpp.
References QcepDataGroup().
QcepDataGroup(QcepSettingsSaverWPtr saver, QString name, QcepObject *parent)
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QcepSettingsSaverWPtr saver()
Definition at line 387 of file qcepdatagroup.cpp.
References createGroup(), QcepDataObject::dataObjectChanged(), directoryName(), group(), image(), QcepImageData< T >::newImage(), and QcepDataObject::saver().
395 group->append(
image);
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
static QSharedPointer< QcepImageData< T > > newImage(QcepSettingsSaverWPtr saver, QString name, int width, int height, QcepObject *parent)
QcepDataGroupPtr group(QString path)
QString directoryName(QString path)
QcepDoubleImageDataPtr image(QString path)
QcepDataGroupPtr createGroup(QString path)
QcepSettingsSaverWPtr saver()
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr
QString QcepDataGroup::object |
( |
QString |
path | ) |
|
|
slot |
Definition at line 166 of file qcepdatagroup.cpp.
168 QFileInfo info(path);
170 return info.fileName();
void QcepDataGroup::remove |
( |
int |
n | ) |
|
|
slot |
void QcepDataGroup::remove |
( |
QString |
path | ) |
|
|
slot |
Definition at line 267 of file qcepdatagroup.cpp.
References referencedObject().
QSharedPointer< QcepDataGroup > QcepDataGroupPtr
QcepDataObjectPtr referencedObject(QString path)
QSharedPointer< QcepDataObject > QcepDataObjectPtr
QScriptValue QcepDataGroup::toGroupScriptValue |
( |
QScriptEngine * |
engine, |
|
|
const QcepDataGroupPtr & |
data |
|
) |
| |
|
staticslot |
The documentation for this class was generated from the following files: