All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <MetaData.h>
Public Member Functions | |
| virtual int | compare (int subId, const QString &index, const MetaData *o) const |
| virtual QVariant | data (int subId, const QString &index) const |
| virtual bool | fromString (const QString &, QString string) |
| MetaString () | |
| MetaString (const QString &str) | |
| MetaString (const MetaString &o) | |
| virtual bool | setData (int subId, const QString &index, const QVariant &val) |
| void | setValue (const QString &v) |
| virtual QString | toString (const QString &) const |
| const QString & | value () const |
| GeopsyCore::MetaString::MetaString | ( | ) | [inline] |
{}
| GeopsyCore::MetaString::MetaString | ( | const QString & | str | ) | [inline] |
| GeopsyCore::MetaString::MetaString | ( | const MetaString & | o | ) | [inline] |
: MetaData(o) {}
| int GeopsyCore::MetaString::compare | ( | int | subId, |
| const QString & | index, | ||
| const MetaData * | o | ||
| ) | const [virtual] |
Reimplemented from GeopsyCore::MetaData.
References value().
{
Q_UNUSED(valueIndex);
Q_UNUSED(dataIndex);
const QString& v1=value();
const QString& v2=reinterpret_cast<const MetaString *>(o)->value();
if(v1<v2) return -1;
else if(v1>v2) return 1;
else return 0;
}
| virtual QVariant GeopsyCore::MetaString::data | ( | int | subId, |
| const QString & | index | ||
| ) | const [inline, virtual] |
Reimplemented from GeopsyCore::MetaData.
{Q_UNUSED(subId); Q_UNUSED(index); return _value;}
| virtual bool GeopsyCore::MetaString::fromString | ( | const QString & | , |
| QString | string | ||
| ) | [inline, virtual] |
Reimplemented from GeopsyCore::MetaData.
{setValue(string); return true;}
| bool GeopsyCore::MetaString::setData | ( | int | subId, |
| const QString & | index, | ||
| const QVariant & | val | ||
| ) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
{
Q_UNUSED(valueIndex);
Q_UNUSED(dataIndex);
_value=val.toString();
return true;
}
| void GeopsyCore::MetaString::setValue | ( | const QString & | v | ) | [inline] |
Referenced by MatlabVariableName::MatlabVariableName(), and GeopsyCore::Signal::setComments().
{_value=v;}
| virtual QString GeopsyCore::MetaString::toString | ( | const QString & | ) | const [inline, virtual] |
Reimplemented from GeopsyCore::MetaData.
{return value();}
| const QString& GeopsyCore::MetaString::value | ( | ) | const [inline] |
Referenced by GeopsyCore::Signal::comments(), compare(), and MatFormat::load().
{return _value;}