All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions
QGpCoreTools::XMLClass Class Reference

XMLClass is a parser for a simplified XML syntax. More...

#include <XMLClass.h>

Inheritance diagram for QGpCoreTools::XMLClass:
ControlPanel DinverCore::AbstractCondition DinverCore::Parameter DinverCore::ParamSpaceScript DinverCore::RealSpace DinverCore::XMLDinver DinverDCCore::Param3DGroundModel DinverDCCore::ParamGroundModel DinverDCCore::ParamLayer DinverDCCore::ParamProfile DinverDCCore::Target DinverDCCore::TargetList DinverDCCore::TargetList2D ExtTarget GeopsyCore::AbstractFileFormat GeopsyCore::AsciiSignalFormatComponent GeopsyCore::AsciiSignalFormatRule GeopsyCore::CustomFileFormats GeopsyCore::MetaData GeopsyCore::MiniSeedSequence GeopsyCore::SharedMetaData GeopsyCore::Signal GeopsyCore::SignalDB GeopsyCore::SignalFile GeopsyCore::TimeRangeParameters GeopsyCore::XMLSignal GeopsyCore::XMLSubSignalPool GeopsyGui::PickFormat GeopsyGui::TimeWindow GeopsyGui::TimeWindowList GeopsySLink::SeedLinkServer GeopsySLink::SeedLinkStation GeopsySLink::SeedLinkStream InversionThread MapProject MatlabTarget ModelSlider QGpCompatibility::CompatDataPoint QGpCompatibility::CompatDataPointVector QGpCompatibility::CompatModalCurves QGpCompatibility::CompatModalFrequency QGpCompatibility::CompatVDataPointVector QGpCoreTools::ColumnTextDescription QGpCoreTools::ColumnTextParser QGpCoreTools::ExpressionAction QGpCoreTools::GoogleEarthKML QGpCoreTools::GoogleEarthKML::Document QGpCoreTools::GoogleEarthKML::Placemark QGpCoreTools::GoogleEarthKML::Point QGpCoreTools::Grid2D< ValueType > QGpCoreTools::Grid3D< ValueType > QGpCoreTools::IrregularGrid2D QGpCoreTools::Rect QGpCoreTools::StatisticalValue< numberType > QGpCoreTools::TreeItem QGpCoreTools::XMLHeader QGpCoreTools::XMLMap< Key, T > QGpCoreWave::AutocorrCurves QGpCoreWave::AutocorrRing QGpCoreWave::MagnetoTelluricCurve QGpCoreWave::ModalCurve QGpCoreWave::Mode QGpCoreWave::RefractionCurve QGpGuiTools::ColorPalette SciFigs::AbstractLine SciFigs::Axis SciFigs::Brush SciFigs::GraphContent SciFigs::GraphContentLayer SciFigs::GraphicObject SciFigs::GraphicSheet SciFigs::ImageLayer::ReferencePoint SciFigs::Legend SciFigs::LegendItem SciFigs::ParallelBand SciFigs::Pen SciFigs::Symbol SciFigs::XMLSciFigs QGpCoreTools::StatisticalValue< Complex > QGpCoreTools::StatisticalValue< double >

List of all members.

Public Types

enum  Error {
  NoError, ErrorFileNotOpen, ErrorWritingFile, ErrorNoDocType,
  ErrorNoVersion, ErrorUnmatchedAmpSemiColon, ErrorUnknowSpecialCharacter, ErrorEmptyTag,
  ErrorUnmatchedTag, ErrorUnmatchedTopLevelTag, ErrorEmptyContextStack, ErrorParsingContent,
  ErrorParsingAttributes, ErrorSettingAttributes, ErrorSettingBinaryData, ErrorWrongBinaryOffset,
  ErrorWrongBinaryTag, ErrorBinaryFileNotFound, ErrorEndTruncatedTag, ErrorEndTruncatedString,
  ErrorEndTruncatedContext, ErrorEndStillInside, ErrorEndTagNotFound
}
enum  FileType { TarFile, XmlFile }

Public Member Functions

XMLClass::Error restore (const QChar *&ptr, int &line, XMLStream *s, XMLContext *context)
void writeBinaryData (XMLStream &s, XMLContext *context) const
virtual void xml_attributes (XML_ATTRIBUTES_ARGS) const
virtual bool xml_inherits (const QString &tagName) const
virtual XMLMember xml_member (XML_MEMBER_ARGS)
virtual void xml_polish (XML_POLISH_ARGS)
virtual void xml_polishChild (XML_POLISHCHILD_ARGS)
virtual bool xml_polished (XML_POLISHED_ARGS)
void xml_save (XMLStream &s, XMLContext *context, const XMLSaveAttributes &attributes=nullSaveAttributes) const
virtual bool xml_setAttributes (XML_SETATTRIBUTES_ARGS)
virtual bool xml_setBinaryData (XML_SETBINARYDATA_ARGS)
virtual bool xml_setBinaryData200411 (XML_SETBINARYDATA_ARGS)
virtual bool xml_setProperty (XML_SETPROPERTY_ARGS)
virtual const QString & xml_tagName () const =0
virtual void xml_writeBinaryData (XML_WRITEBINARYDATA_ARGS) const
virtual void xml_writeChildren (XML_WRITECHILDREN_ARGS) const
virtual void xml_writeProperties (XML_WRITEPROPERTIES_ARGS) const
 XMLClass ()
virtual ~XMLClass ()

Static Public Member Functions

static QString message (Error err, const QString &file=QString::null, int line=0)
static QString saveSpecChar (QString content)
static void skipBlanks (const QChar *&ptr, int &line)
static void writeChildren (XMLStream &s, QString name, QString children)
static void writeChildren (XMLStream &s, QString name, const XMLSaveAttributes &attributes, QString children)
static void writeProperty (XMLStream &s, QString name, const XMLSaveAttributes &attributes)

Static Public Attributes

static const QString binData200510Tag = "binDataOffset"
static const QString binDataTag = "binDataFile"
static const QString closeBeginTagStr = "</"
static const QString closeEndTagStr = "/>"
static const QString endTagStr = ">"
static const QString falseStr = "false"
static const QString openBeginTagStr = "<"
static const QString trueStr = "true"

Static Protected Member Functions

static XMLMember qobject_member (QObject *o, XML_MEMBER_ARGS)
static bool qobject_setProperty (QObject *o, XML_SETPROPERTY_ARGS)
static void qobject_writeProperties (const QObject *o, const XMLClass *xmlo, XML_WRITEPROPERTIES_ARGS)

Detailed Description

XMLClass is a parser for a simplified XML syntax.


Member Enumeration Documentation

Enumerator:
NoError 
ErrorFileNotOpen 
ErrorWritingFile 
ErrorNoDocType 
ErrorNoVersion 
ErrorUnmatchedAmpSemiColon 
ErrorUnknowSpecialCharacter 
ErrorEmptyTag 
ErrorUnmatchedTag 
ErrorUnmatchedTopLevelTag 
ErrorEmptyContextStack 
ErrorParsingContent 
ErrorParsingAttributes 
ErrorSettingAttributes 
ErrorSettingBinaryData 
ErrorWrongBinaryOffset 
ErrorWrongBinaryTag 
ErrorBinaryFileNotFound 
ErrorEndTruncatedTag 
ErrorEndTruncatedString 
ErrorEndTruncatedContext 
ErrorEndStillInside 
ErrorEndTagNotFound 
Enumerator:
TarFile 
XmlFile 

Reimplemented in SciFigs::XMLSciFigs.


Constructor & Destructor Documentation

{}
virtual QGpCoreTools::XMLClass::~XMLClass ( ) [inline, virtual]
{}

Member Function Documentation

QString QGpCoreTools::XMLClass::message ( Error  err,
const QString &  file = QString::null,
int  line = 0 
) [static]

Reports errors to user.

References ErrorBinaryFileNotFound, ErrorEmptyContextStack, ErrorEmptyTag, ErrorEndStillInside, ErrorEndTagNotFound, ErrorEndTruncatedContext, ErrorEndTruncatedString, ErrorEndTruncatedTag, ErrorFileNotOpen, ErrorNoDocType, ErrorNoVersion, ErrorParsingAttributes, ErrorParsingContent, ErrorSettingAttributes, ErrorSettingBinaryData, ErrorUnknowSpecialCharacter, ErrorUnmatchedAmpSemiColon, ErrorUnmatchedTag, ErrorUnmatchedTopLevelTag, ErrorWritingFile, ErrorWrongBinaryOffset, ErrorWrongBinaryTag, NoError, QGpCoreTools::tr(), and TRACE.

Referenced by QGpCoreTools::XMLErrorReport::exec().

{
  TRACE;
  QString msg;
  switch (err) {
  case NoError:
    return QString::null;
  case ErrorFileNotOpen:
    msg=tr("Cannot open file. Check file permissions");
    break;
  case ErrorWritingFile:
    msg=tr("Cannot write to file. Check disk space");
    break;
  case ErrorNoDocType:
    msg=tr("No doc type found at the beginning of the XML");
    break;
  case ErrorNoVersion:
    msg=tr("No version found at the beginning of the XML");
    break;
  case ErrorUnmatchedAmpSemiColon:
    msg=tr("Unmatched ampersand and semi colon for XML special characters");
    break;
  case ErrorUnknowSpecialCharacter:
    msg=tr("Unknwown XML special character");
    break;
  case ErrorEmptyTag:
    msg=tr("Empty XML tag");
    break;
  case ErrorUnmatchedTag:
    msg=tr("Unmatched XML tag");
    break;
  case ErrorUnmatchedTopLevelTag:
    msg=tr("Unmatched top level XML tag");
    break;
  case ErrorEmptyContextStack:
    msg=tr("Empty context stack");
    break;
  case ErrorParsingContent:
    msg=tr("Error parsing tag content");
    break;
  case ErrorParsingAttributes:
    msg=tr("Error parsing tag attributes");
    break;
  case ErrorSettingAttributes:
    msg=tr("Error setting tag attributes");
    break;
  case ErrorSettingBinaryData:
    msg=tr("Error setting binary data");
    break;
  case ErrorWrongBinaryOffset:
    msg=tr("Wrong offset in binary file");
    break;
  case ErrorWrongBinaryTag:
    msg=tr("Wrong binary tag");
    break;
  case ErrorBinaryFileNotFound:
    msg=tr("Binary file not found");
    break;
  case ErrorEndTruncatedTag:
    msg=tr("Truncated tag at the end of XML");
    break;
  case ErrorEndTruncatedString:
    msg=tr("Truncated string at the end of XML");
    break;
  case ErrorEndTruncatedContext:
    msg=tr("Truncated context at the end of XML");
    break;
  case ErrorEndStillInside:
    msg=tr("Object not completely restored at the end of XML");
    break;
  case ErrorEndTagNotFound:
    msg=tr("Object not found in XML");
    break;
  }
  if(!file.isEmpty()) {
    if(line>0) {
      msg+=tr(" (%1 at line %2).").arg(file).arg(line);
    } else {
      msg+=tr(" (%1).").arg(file);
    }
  } else if(line>0) {
    msg+=tr(" (at line %1).").arg(line);
  } else {
    msg+=".";
  }
  return msg;
}
XMLMember QGpCoreTools::XMLClass::qobject_member ( QObject *  o,
XML_MEMBER_ARGS   
) [static, protected]

This function is designed to restore from XML properties to QObject properties.

References TRACE, and QGpCoreTools::XMLMember::Unknown.

Referenced by MapProject::xml_member(), SciFigs::GraphContentLayer::xml_member(), SciFigs::ImageLayer::xml_member(), SciFigs::GraphicSheet::xml_member(), and SciFigs::GraphContent::xml_member().

{
  TRACE;
  Q_UNUSED(attributes);
  Q_UNUSED(context);
  const QMetaObject * meta=o->metaObject();
  int id=meta->indexOfProperty(tag.toString().toAscii().data());
  if(id==-1) {
    return XMLMember(XMLMember::Unknown);
  } else return XMLMember(id);
}
bool QGpCoreTools::XMLClass::qobject_setProperty ( QObject *  o,
XML_SETPROPERTY_ARGS   
) [static, protected]

This function is designed to restore from XML properties to QObject properties.

References QGpCoreTools::endl(), QGpCoreTools::App::stream(), QGpCoreTools::tr(), and TRACE.

Referenced by MapProject::xml_setProperty().

{
  TRACE;
  Q_UNUSED(tag);
  Q_UNUSED(attributes);
  Q_UNUSED(context);
  const QMetaObject * meta=o->metaObject();
  QMetaProperty p=meta->property(memberID);
  if( !p.isValid()) {
    return false;
  }
  if( !p.isWritable()) {
    App::stream() << tr("read-only property : %1" ).arg(p.name()) << endl;
    return false;
  }
  if(p.type()==QVariant::Bool) {
    QVariant v(content=="true" );
    return p.write(o, v);
  } else {
    QVariant v(content.toString());
    return p.write(o, v);
  }
}
void QGpCoreTools::XMLClass::qobject_writeProperties ( const QObject *  o,
const XMLClass xmlo,
XML_WRITEPROPERTIES_ARGS   
) [static, protected]

This function is designed to save as XML properties all QObject properties.

References TRACE, and writeProperty().

Referenced by MapProject::xml_writeProperties(), SciFigs::GraphContentLayer::xml_writeProperties(), SciFigs::ImageLayer::xml_writeProperties(), and SciFigs::GraphContent::xml_writeProperties().

{
  TRACE;
  Q_UNUSED(context);
  const QMetaObject * meta=o->metaObject();
  // Ignore property with index 0 (objectName from QObject, replaced by objectName of the first base class from  library)
  int n=meta ->propertyCount();
  for(int i=meta ->indexOfProperty("objectName");i < n; i++ ) {
    QMetaProperty prop=meta ->property(i);
    if(prop.isStored()) {
      QVariant val=prop.read(o);
      if(val.type()==QVariant::String)
        xmlo->writeProperty(s, prop.name(), val.toString());
      else xmlo->writeProperty(s, prop.name(), val.toString());
    }
  }
}
XMLClass::Error QGpCoreTools::XMLClass::restore ( const QChar *&  ptr,
int &  line,
XMLStream s,
XMLContext context 
)
QString QGpCoreTools::XMLClass::saveSpecChar ( QString  content) [static]

This function is called when special characters are suspected. The following special characters are replaced by XML sequences (see http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references for a list XML predefined entities):

Replace:

  • '&' by '&amp;'
  • '<' by '&lt;'
  • '>' by '&gt;'
  • '"' by '&quot;'
  • ''' by '&apos;'

Replacements are inlined due the small number of special characters to replace and to avoid time losses.

References QGpCoreTools::StringSection::appendTo(), QGpCoreTools::StringSection::data(), QGpCoreTools::StringSection::set(), QGpCoreTools::StringSection::setEnd(), and TRACE.

Referenced by QGpCoreTools::XMLSaveAttributes::toEncodedString().

{
  TRACE;
  QString dest;
  const QChar * ptr=content.data();
  StringSection cur (ptr, 0);
  while(true) {
    switch (ptr->unicode()) {
    case 0x0000:
      if(cur.data()==content.data()) { // no special character found
        return content;
      } else {
        cur.setEnd(ptr);
        cur.appendTo(dest);
        //App::stream() << "Content before replacements ---" << content << "---" << endl;
        //App::stream() << "Content after replacements ---" << dest << "---" << endl;
        return dest;
      }
    case 0x0026:    // '&'
      cur.setEnd(ptr);
      cur.appendTo(dest);
      dest += "&amp;";
      cur.set(ptr + 1, 0);
      break;
    case 0x003C:    // '<'
      cur.setEnd(ptr);
      cur.appendTo(dest);
      dest += "&lt;";
      cur.set(ptr + 1, 0);
      break;
    case 0x003E:    // '>'
      cur.setEnd(ptr);
      cur.appendTo(dest);
      dest += "&gt;";
      cur.set(ptr + 1, 0);
      break;
    case 0x0027:    // '''
      cur.setEnd(ptr);
      cur.appendTo(dest);
      dest += "&apos;";
      cur.set(ptr + 1, 0);
      break;
    case 0x0022:    // '"'
      cur.setEnd(ptr);
      cur.appendTo(dest);
      dest += "&quot;";
      cur.set(ptr + 1, 0);
      break;
    default:
      break;
    }
    ptr++;
  }
}
void QGpCoreTools::XMLClass::skipBlanks ( const QChar *&  ptr,
int &  line 
) [static]

References TRACE.

{
  TRACE;
  while( *ptr!=0) {
    switch (ptr->unicode()) {
    case 0x000A:    // '\n'
      line++;
    case 0x0020:    // ' '
    case 0x0009:    // '\t'
    case 0x000D:    // '\r'
      break;
    default:
      return ;
    }
    ptr++;
  }
}
void QGpCoreTools::XMLClass::writeBinaryData ( XMLStream s,
XMLContext context 
) const
static void QGpCoreTools::XMLClass::writeChildren ( XMLStream s,
QString  name,
QString  children 
) [inline, static]

Referenced by QGpCoreTools::CoreApplicationPrivate::reportBugNow().

                                                                          {
    writeChildren(s, name, nullSaveAttributes, children);
  }
void QGpCoreTools::XMLClass::writeChildren ( XMLStream s,
QString  name,
const XMLSaveAttributes attributes,
QString  children 
) [static]

Convenient function to "manually" write some XML content

References closeBeginTagStr, endTagStr, QGpCoreTools::XMLStream::indent(), openBeginTagStr, QGpCoreTools::XMLSaveAttributes::toEncodedString(), and TRACE.

{
  TRACE;
  QString tmp=s.indent();
  tmp+=openBeginTagStr;
  tmp+=name;
  tmp+=attributes.toEncodedString();
  tmp+=endTagStr;
  tmp+="\n";
  tmp+=children;
  tmp+=s.indent() + closeBeginTagStr;
  tmp+=name;
  tmp+=endTagStr;
  tmp+="\n";
  s << tmp;
}
void QGpCoreTools::XMLClass::writeProperty ( XMLStream s,
QString  name,
const XMLSaveAttributes attributes 
) [static]

References TRACE.

Referenced by QGpCoreTools::CoreApplicationPrivate::appInfo(), QGpCoreTools::CoreApplicationPrivate::bugInfo(), qobject_writeProperties(), writeBinaryData(), GeopsyCore::MetaData::writeProperties(), GeopsyCore::TimePick::writeProperties(), GeopsyCore::MiniSeedRecords::xml_writeChildren(), GeopsyCore::MetaData::xml_writeLink(), DinverCore::XMLVirtualPlugin::xml_writeProperties(), DinverCore::XMLDinver::xml_writeProperties(), QGpCoreTools::GoogleEarthKML::Point::xml_writeProperties(), ExtTarget::xml_writeProperties(), GeopsyCore::XMLSignal::xml_writeProperties(), DinverCore::ParamSpaceScript::xml_writeProperties(), GeopsyCore::AsciiSignalFormatComponent::xml_writeProperties(), DinverDCCore::Target::xml_writeProperties(), DinverCore::SimpleCondition::xml_writeProperties(), GeopsyGui::PickFormat::xml_writeProperties(), QGpCoreWave::AutocorrRing::xml_writeProperties(), SciFigs::Brush::xml_writeProperties(), DinverCore::AbstractCondition::xml_writeProperties(), MatlabTarget::xml_writeProperties(), ModelSlider::xml_writeProperties(), QGpCompatibility::CompatDataPoint::xml_writeProperties(), SciFigs::XMLSciFigs::xml_writeProperties(), SciFigs::LegendItem::xml_writeProperties(), GeopsyGui::TimeWindowList::xml_writeProperties(), QGpCoreTools::StatisticalPoint< numberType >::xml_writeProperties(), SciFigs::ParallelBand::xml_writeProperties(), QGpCoreTools::ColumnTextDescription::xml_writeProperties(), GeopsyCore::SignalGroup::xml_writeProperties(), GeopsyGui::TimeWindowLayer::xml_writeProperties(), QGpCoreWave::MagnetoTelluricCurve::xml_writeProperties(), SciFigs::AbstractNameLine::xml_writeProperties(), QGpCompatibility::CompatModalEllipticity::xml_writeProperties(), QGpCoreTools::XMLGenericItem::xml_writeProperties(), QGpCoreWave::RefractionCurve::xml_writeProperties(), GeopsyCore::AsciiSignalFormatRule::xml_writeProperties(), GeopsyCore::AbstractFileFormat::xml_writeProperties(), QGpCoreTools::GoogleEarthKML::Placemark::xml_writeProperties(), QGpCoreWave::Mode::xml_writeProperties(), QGpCompatibility::CompatModalFrequency::xml_writeProperties(), QGpGuiTools::ColorPalette::xml_writeProperties(), DinverDCCore::ParamGroundModel::xml_writeProperties(), SciFigs::Symbol::xml_writeProperties(), QGpCoreWave::ModalCurve::xml_writeProperties(), NAModelsPlot::xml_writeProperties(), SciFigs::Pen::xml_writeProperties(), GeopsyCore::SignalFile::xml_writeProperties(), SciFigs::AbstractLine::xml_writeProperties(), GeopsyCore::AbstractSignalGroup::xml_writeProperties(), GeopsyCore::AsciiSignalFormat::xml_writeProperties(), QGpCoreTools::Rect::xml_writeProperties(), GeopsyCore::SignalDB::xml_writeProperties(), QGpCoreTools::GoogleEarthKML::Folder::xml_writeProperties(), DinverCore::Parameter::xml_writeProperties(), QGpCoreTools::ExpressionVariable::xml_writeProperties(), InversionThread::xml_writeProperties(), DinverDCCore::TargetList::xml_writeProperties(), SciFigs::ImageLayer::ReferencePoint::xml_writeProperties(), QGpCoreTools::ExpressionValue::xml_writeProperties(), QGpCoreTools::GoogleEarthKML::Document::xml_writeProperties(), DinverDCCore::ParamProfile::xml_writeProperties(), QGpCoreTools::ColumnTextParser::xml_writeProperties(), QGpCoreTools::IrregularGrid2D::xml_writeProperties(), DinverDCCore::ParamLayer::xml_writeProperties(), QGpCoreTools::ExpressionBracket::xml_writeProperties(), GeopsyGui::SignalLayer::xml_writeProperties(), QGpCoreTools::ExpressionOperator::xml_writeProperties(), QGpCoreTools::ExpressionFunction::xml_writeProperties(), and GeopsyCore::Signal::xml_writeProperties().

{
  TRACE;
  QString tmp=s.indent();
  tmp+=openBeginTagStr;
  tmp+=name;
  tmp+=attributes.toEncodedString();
  tmp+=closeEndTagStr;
  tmp+="\n";
  s << tmp;
}
void QGpCoreTools::XMLClass::xml_attributes ( XML_ATTRIBUTES_ARGS  ) const [inline, virtual]
bool QGpCoreTools::XMLClass::xml_inherits ( const QString &  tagName) const [virtual]

May be useful for classes that do not inherit QObject. Must be re-implemented in sub-classes

Reimplemented in GeopsyCore::SignalGroup, GeopsyCore::DefaultSignalGroup, GeopsyCore::MasterSignalGroup, and GeopsyCore::StationGroup.

Referenced by GeopsyGui::SignalGroupItem::data(), MonoStation::CategoryGroupItem::flags(), and GeopsyCore::StationGroup::xml_inherits().

{
  return tagName=="XMLClass";
}

Re-implement this function to offer XML restore (children and properties) support to your class.

From tag and map (with contains the attibute value) return a unique identifier under the format of a XMLMember. XMLMember is initialized with 3 types of contructors:

  • An integer: id number of a property
  • A XMLClass * : a child of this object identified by tag
  • Default constructor: error, unknow child or property

Map of attributes can be inspected in this way (can be achived also in xml_setProperty()):

    static const QString tmp("childrenName");
    XMLRestoreAttributeIterator it=map.find(tmp);
    if(it!=map.end()) {
      // found attribute "childrenName"
    }

If the map of attributes is not used:

    Q_UNUSED(attributes);
    if(tag=="x1") return XMLMember(0);
    else if(tag=="y1") return XMLMember(1);
    else if(tag=="x2") return XMLMember(2);
    else if(tag=="y2") return XMLMember(3);
    else return XMLMember(XMLMember::Unknown);

Arithmetic operations + and - apply to XMLMember to avoid confusion of property id numbers between inherited objects. Offset 3 corresponds to the number of properties defined in this object.

    if(tag=="anInteger") return XMLMember(0);
    else if(tag=="aString") return XMLMember(1);
    else if(tag=="aDouble") return XMLMember(2);
    return AbstractLine::xml_member(tag, attributes, context)+3;

For the arguments of this function use Macro XML_MEMBER_ARGS.

Reimplemented in GeopsyCore::Signal, SciFigs::GraphContent, SciFigs::GraphicSheet, SciFigs::Axis, QGpCompatibility::CompatVDataPointVector, SciFigs::GraphicObject, GeopsyGui::SignalLayer, QGpCompatibility::CompatDataPointVector, DinverDCCore::ParamLayer, QGpCoreTools::ColumnTextParser, QGpCoreTools::GoogleEarthKML, QGpCoreTools::IrregularGrid2D, SciFigs::ImageLayer, SciFigs::LineLayer, DinverDCCore::ParamProfile, QGpCoreTools::GoogleEarthKML::Document, SciFigs::GraphContentLayer, SciFigs::ImageLayer::ReferencePoint, DinverDCCore::TargetList, SciFigs::ColorPaletteWidget, InversionThread, SciFigs::LegendWidget, DinverCore::Parameter, QGpCoreTools::Grid3D< ValueType >, QGpCoreTools::GoogleEarthKML::Folder, GeopsyCore::SignalDB, SciFigs::AxisWindow, QGpCoreTools::Rect, SciFigs::GridPlot, SciFigs::CircleViewer, SciFigs::Legend, GeopsyCore::AsciiSignalFormat, QGpCoreTools::Grid2D< ValueType >, SciFigs::AbstractLine, QGpCoreTools::Grid2D< double >, DinverCore::RealSpace, MapProject, GeopsyCore::AbstractSignalGroup, GeopsyCore::SignalFile, GeopsyGui::PickLayer, NAModelsPlot, SciFigs::Pen, QGpCompatibility::CompatModalRefinedCurves, QGpCoreTools::StatisticalValue< numberType >, QGpCoreTools::StatisticalValue< double >, QGpCoreTools::StatisticalValue< Complex >, QGpCoreWave::ModalCurve, SciFigs::Symbol, DinverDCCore::ParamGroundModel, QGpCompatibility::CompatModalCurves, SciFigs::TextEdit, QGpGuiTools::ColorPalette, QGpCompatibility::CompatModalFrequency, SciFigs::ParallelBands, GeopsyGui::ChronogramLayer, QGpCoreTools::GoogleEarthKML::Placemark, SciFigs::XYValueLines, GeopsyCore::AbstractFileFormat, GeopsyCore::AsciiSignalFormatRule, QGpCoreWave::Mode, QGpCoreWave::RefractionCurve, QGpCompatibility::CompatModalEllipticity, SciFigs::XYValuePlot, SciFigs::AbstractNameLine, GeopsyCore::CustomFileFormats, GeopsyGui::TimeWindowLayer, QGpCoreWave::AutocorrCurves, QGpCoreWave::MagnetoTelluricCurve, SciFigs::ParallelBand, GeopsyCore::SignalGroup, GeopsySLink::SeedLinkStation, QGpCoreTools::ColumnTextDescription, QGpCoreTools::XMLGenericItem, SciFigs::LegendItem, QGpCoreTools::StatisticalPoint< numberType >, QGpCoreTools::StatisticalPoint< double >, QGpCoreTools::StatisticalPoint< Complex >, GeopsyGui::TimeWindowList, SciFigs::XMLSciFigs, GeopsySLink::SeedLinkServer, GeopsyCore::MiniSeedRecords, ControlPanel, QGpCompatibility::CompatDataPoint, DinverDCCore::Param3DGroundModel, ModelSlider, QGpCoreTools::XMLHeader, SciFigs::Brush, DinverCore::AbstractCondition, MatlabTarget, SciFigs::GridViewer, DinverDCCore::TargetList2D, GeopsyCore::SharedMetaData, QGpCoreWave::AutocorrRing, DinverCore::SimpleCondition, DinverDCCore::Target, GeopsyGui::PickFormat, GeopsyCore::AsciiSignalFormatComponent, GeopsyCore::DefaultSignalGroup, GeopsyCore::XMLSignal, DinverCore::ParamSpaceScript, SciFigs::HistogramLayer, ExtTarget, GeopsyCore::XMLSubSignalPool, QGpCoreTools::GoogleEarthKML::Point, DinverDCCore::AutocorrTarget, DinverDCCore::MagnetoTelluricTarget, DinverDCCore::ModalCurveTarget, DinverDCCore::RefractionTarget, DinverDCCore::ValueTarget, GeopsyCore::MasterSignalGroup, QGpCoreTools::XMLMap< Key, T >, DinverCore::XMLDinver, DinverCore::XMLDinverHeader, DinverCore::XMLVirtualPlugin, and XMLDinverGui.

References QGpCoreTools::XMLMember::Unknown.

Referenced by DinverCore::XMLDinverHeader::xml_member().

{
  Q_UNUSED(tag);
  Q_UNUSED(attributes);
  Q_UNUSED(context);
  return XMLMember(XMLMember::Unknown);
}

Reimplemented in QGpCoreTools::XMLHeader.

{
  return false;
}
void QGpCoreTools::XMLClass::xml_save ( XMLStream s,
XMLContext context,
const XMLSaveAttributes attributes = nullSaveAttributes 
) const

All output must execute this function that add header and footer to the XML

Called by each child to export its data into the XML stream.

  • s current active XML stream
  • attributes any string with format keyword1="value1" keyword2="value2" ..., may be null.

Do not call this function directly with an empty QTextStream: the produced XML will not contain the header.

References closeBeginTagStr, QGpCoreTools::XMLStream::decrementIndent(), endTagStr, QGpCoreTools::XMLStream::incrementIndent(), QGpCoreTools::XMLStream::indent(), openBeginTagStr, QGpCoreTools::XMLSaveAttributes::toEncodedString(), TRACE, xml_tagName(), xml_writeChildren(), and xml_writeProperties().

Referenced by QGpCoreTools::XMLHeader::xml_saveByteArray(), QGpCoreTools::XMLHeader::xml_saveFile(), QGpCoreTools::XMLHeader::xml_saveString(), DinverCore::XMLVirtualPlugin::xml_writeChildren(), DinverDCCore::ValueTarget::xml_writeChildren(), DinverDCCore::AutocorrTarget::xml_writeChildren(), GeopsyCore::XMLSubSignalPool::xml_writeChildren(), Forward::xml_writeChildren(), MatlabPlugin::xml_writeChildren(), DCPlugin::xml_writeChildren(), GeopsyCore::SharedMetaData::xml_writeChildren(), QGpCoreTools::XMLHeader::xml_writeChildren(), ExtPlugin::xml_writeChildren(), SciFigs::GridViewer::xml_writeChildren(), DinverDCCore::Param3DGroundModel::xml_writeChildren(), SciFigs::XMLSciFigs::xml_writeChildren(), SciFigs::LegendItem::xml_writeChildren(), SciFigs::ParallelBand::xml_writeChildren(), GeopsyCore::CustomFileFormats::xml_writeChildren(), QGpCompatibility::CompatModalEllipticity::xml_writeChildren(), SciFigs::XYValuePlot::xml_writeChildren(), QGpCoreTools::XMLGenericItem::xml_writeChildren(), GeopsyGui::ChronogramLayer::xml_writeChildren(), SciFigs::XYValueLines::xml_writeChildren(), SciFigs::Symbol::xml_writeChildren(), DinverDCCore::ParamGroundModel::xml_writeChildren(), QGpCompatibility::CompatModalRefinedCurves::xml_writeChildren(), NAModelsPlot::xml_writeChildren(), GeopsyGui::PickLayer::xml_writeChildren(), DinverCore::RealSpace::xml_writeChildren(), SciFigs::AbstractLine::xml_writeChildren(), GeopsyCore::AbstractSignalGroup::xml_writeChildren(), SciFigs::LiveGridLayer::xml_writeChildren(), SciFigs::Legend::xml_writeChildren(), GeopsyCore::SignalDB::xml_writeChildren(), SciFigs::GridPlot::xml_writeChildren(), SciFigs::AxisWindow::xml_writeChildren(), QGpCoreTools::ExpressionVariable::xml_writeChildren(), SciFigs::LegendWidget::xml_writeChildren(), DinverDCCore::TargetList::xml_writeChildren(), SciFigs::ColorPaletteWidget::xml_writeChildren(), SciFigs::LineLayer::xml_writeChildren(), SciFigs::ImageLayer::xml_writeChildren(), QGpCoreTools::GoogleEarthKML::xml_writeChildren(), QGpCoreTools::ExpressionBracket::xml_writeChildren(), GeopsyGui::SignalLayer::xml_writeChildren(), QGpCoreTools::ExpressionOperator::xml_writeChildren(), SciFigs::GraphicSheet::xml_writeChildren(), SciFigs::GraphContent::xml_writeChildren(), and GeopsyCore::Signal::xml_writeChildren().

{
  TRACE;
  QString tmp=s.indent();
  tmp+=openBeginTagStr;
  tmp+=xml_tagName();
  tmp+=attributes.toEncodedString();
  tmp+=endTagStr;
  tmp+="\n";
  s << tmp;

  s.incrementIndent();
  xml_writeProperties(s, context);
  xml_writeChildren(s, context);
  s.decrementIndent();

  tmp=s.indent();
  tmp+=closeBeginTagStr;
  tmp+=xml_tagName();
  tmp+=endTagStr;
  tmp+="\n";
  s << tmp;
}

This function must be re-implemented in all classes dealing with binary data that cannot be saved in an ASCII xml file (e.g. due to the amount of data).

See also xml_writeBinaryData().

The difference between xml_setBinaryData() and xml_setBinaryData200410() is detected by the type of tag at the beginning of each block if it can be read with QString ==> 200510, else try with a normal C string, if it match the current tag then execute xml_setBinaryData200411().

See also xml_setBinaryData200411() to maintain compatibility with previous versions of xml storages.

For the arguments of this function use Macro XML_SETBINARYDATA_ARGS.

Reimplemented in QGpCoreTools::IrregularGrid2D, SciFigs::XYColorLines, QGpCoreTools::Grid3D< ValueType >, SciFigs::XUniqueYColorLines, SciFigs::XYPlot, QGpCoreTools::Grid2D< ValueType >, QGpCoreTools::Grid2D< double >, SciFigs::XYValuePlot, QGpCoreTools::XMLGenericItem, SciFigs::XYValueLines, GeopsyCore::XMLSignal, and SciFigs::XYColorPlot.

{
  Q_UNUSED(s);
  Q_UNUSED(context);
  return false;
}

This function must be re-implemented in all classes dealing with binary data that cannot be saved in an ASCII xml file (e.g. due to the amount of data).

See also xml_setBinaryData().

For the arguments of this function use Macro XML_SETBINARYDATA_ARGS.

This function must not used in new codes. This is only kept for compatibility reasons, to be able to read all xml.bin files generated by releases before November 2006.

Reimplemented in QGpCoreTools::IrregularGrid2D, and SciFigs::XYColorLines.

{return xml_setBinaryData(s, context);}

Re-implement this function to offer XML restore properties support to your class.

From memberID set the corresponding property with value content. The map of attributes is given as a supplementary information (not useful in all cases).

For a general case:

  Q_UNUSED(attributes);
  double val=content.toDouble();
  switch (memberID) {
  case 0:
    _x1=val;
    return true;
  case 1:
    _y1=val;
    return true;
  case 2:
    _x2=val;
    return true;
  case 3:
    _y2=val;
    return true;
  default:
    return false;
  }

For classes inheriting other classes (see also xml_member())

  switch (memberID) {
  case 0:
    _anInteger=content.toString();
    return true;
  case 1:
    _aString=content.toInt();
    return true;
  case 2:
    _aDouble=content.toDouble();
    return true;
  default:
    return AbstractLine::xml_setProperty(memberID-3, map, content);

For the arguments of this function use Macro XML_SETPROPERTY_ARGS.

Reimplemented in GeopsyCore::Signal, SciFigs::GraphContent, SciFigs::GraphicSheet, SciFigs::Axis, SciFigs::GraphicObject, GeopsyGui::SignalLayer, DinverDCCore::ParamLayer, QGpCoreTools::ColumnTextParser, QGpCoreTools::IrregularGrid2D, SciFigs::LineLayer, DinverDCCore::ParamProfile, QGpCoreTools::GoogleEarthKML::Document, SciFigs::GraphContentLayer, SciFigs::ImageLayer::ReferencePoint, DinverDCCore::TargetList, InversionThread, QGpCoreTools::GoogleEarthKML::Folder, DinverCore::Parameter, QGpCoreTools::Grid3D< ValueType >, GeopsyCore::SignalDB, SciFigs::CircleViewer, QGpCoreTools::Rect, GeopsyCore::AsciiSignalFormat, MapProject, GeopsyCore::AbstractSignalGroup, QGpCoreTools::Grid2D< ValueType >, SciFigs::AbstractLine, QGpCoreTools::Grid2D< double >, GeopsyCore::SignalFile, NAModelsPlot, QGpCoreTools::StatisticalValue< numberType >, QGpCoreTools::StatisticalValue< double >, QGpCoreTools::StatisticalValue< Complex >, QGpCoreWave::ModalCurve, SciFigs::Pen, DinverDCCore::ParamGroundModel, SciFigs::Symbol, SciFigs::TextEdit, QGpGuiTools::ColorPalette, QGpCompatibility::CompatModalFrequency, QGpCoreTools::GoogleEarthKML::Placemark, GeopsyCore::AbstractFileFormat, GeopsyCore::AsciiSignalFormatRule, QGpCoreWave::Mode, QGpCoreWave::RefractionCurve, QGpCompatibility::CompatModalEllipticity, GeopsyGui::TimeWindowLayer, QGpCoreWave::MagnetoTelluricCurve, QGpCoreTools::XMLGenericItem, SciFigs::AbstractNameLine, GeopsyCore::SignalGroup, QGpCoreTools::ColumnTextDescription, QGpCoreTools::StatisticalPoint< numberType >, SciFigs::ParallelBand, QGpCoreTools::StatisticalPoint< double >, QGpCoreTools::StatisticalPoint< Complex >, GeopsyGui::TimeWindowList, SciFigs::LegendItem, GeopsyCore::MiniSeedRecords, SciFigs::XMLSciFigs, QGpCompatibility::CompatDataPoint, ModelSlider, DinverCore::AbstractCondition, MatlabTarget, SciFigs::Brush, GeopsyCore::SharedMetaData, QGpCoreWave::AutocorrRing, DinverCore::SimpleCondition, GeopsyGui::PickFormat, GeopsyCore::AsciiSignalFormatComponent, DinverCore::ParamSpaceScript, DinverDCCore::Target, SciFigs::HistogramLayer, GeopsyCore::XMLSignal, ExtTarget, QGpCoreTools::GoogleEarthKML::Point, DinverCore::XMLDinver, QGpCoreTools::XMLMap< Key, T >, and DinverCore::XMLVirtualPlugin.

{
  Q_UNUSED(memberID);
  Q_UNUSED(tag);
  Q_UNUSED(attributes);
  Q_UNUSED(content);
  Q_UNUSED(context);
  return false;
}
virtual const QString& QGpCoreTools::XMLClass::xml_tagName ( ) const [pure virtual]

Implemented in QGpCoreTools::ExpressionFunction, QGpCompatibility::CompatVDataPointVector, QGpCompatibility::CompatDataPointVector, QGpCoreTools::ExpressionOperator, QGpCoreTools::GoogleEarthKML, QGpCoreTools::ExpressionBracket, DinverDCCore::ParamProfile, QGpCoreTools::ComplexStatisticalPoint, QGpCoreTools::ExpressionValue, QGpCoreTools::GoogleEarthKML::Document, QGpCoreTools::ComplexStatisticalValue, SciFigs::ImageLayer::ReferencePoint, DinverCore::Parameter, QGpCoreTools::RealStatisticalValue, SciFigs::Axis, QGpCoreTools::ExpressionVariable, QGpCoreTools::GoogleEarthKML::Folder, GeopsyCore::TimeRangeParameters, SciFigs::GraphContent, QGpCompatibility::CompatModalRefinedCurves, QGpCoreTools::RealStatisticalPoint, QGpCompatibility::CompatModalCurves, SciFigs::GraphicObject, DinverDCCore::ParamGroundModel, GeopsyGui::SignalLayer, QGpCompatibility::CompatModalEllipticity, GeopsyCore::Signal, SciFigs::GraphicSheet, QGpCoreTools::GoogleEarthKML::Placemark, QGpCompatibility::CompatModalDispersion, SciFigs::ColorPaletteWidget, SciFigs::GraphContentLayer, QGpCompatibility::CompatDataPoint, DinverDCCore::TargetList, QGpCoreTools::Rect, SciFigs::LegendWidget, QGpCoreTools::XMLGenericItem, QGpCoreWave::ModalCurve, GeopsyCore::SignalDB, QGpCoreTools::ExpressionAction, QGpCoreTools::Grid3D< ValueType >, SciFigs::LineLayer, GeopsyCore::SignalFile, QGpCoreTools::Grid2D< ValueType >, SciFigs::ImageLayer, SciFigs::Legend, QGpCoreTools::Grid2D< double >, DinverDCCore::ParamLayer, GeopsyGui::TimeWindowLayer, QGpCoreWave::MagnetoTelluricCurve, SciFigs::AxisWindow, SciFigs::ImageWidget, QGpCoreTools::ColumnTextDescription, SciFigs::Brush, SciFigs::GridPlot, SciFigs::Symbol, SciFigs::XYPlot, QGpCoreWave::AutocorrRing, QGpCoreWave::RefractionCurve, SciFigs::LegendItem, SciFigs::Pen, SciFigs::TextEdit, SciFigs::XYColorLines, GeopsyCore::CustomFileFormats, GeopsyGui::PickLayer, QGpCoreWave::Mode, SciFigs::LiveGridLayer, SciFigs::NameLineLayer, DinverDCCore::PoissonCondition, GeopsyCore::AsciiSignalFormat, GeopsyGui::ChronogramLayer, GeopsyGui::TimeWindow, SciFigs::ParallelBand, NAModelsPlot, MapProject, GeopsyCore::SharedMetaData, GeopsyCore::SignalGroup, GeopsyGui::TimeWindowList, GeopsySLink::SeedLinkStream, ControlPanel, QGpCoreTools::ColumnTextParser, QGpCoreTools::IrregularGrid2D, SciFigs::XUniqueYColorLines, DinverDCCore::Param3DGroundModel, GeopsyCore::XMLSignal, GeopsyCore::XMLSubSignalPool, QGpCoreWave::ArrivalTime, QGpGuiTools::ColorPalette, SciFigs::GridViewer, SciFigs::IrregularGrid2DPlot, SciFigs::ParallelBands, DinverCore::ParamSpaceScript, GeopsyCore::AsciiSignalFormatComponent, GeopsyCore::AsciiSignalFormatRule, GeopsyCore::DuplicateRays, QGpCoreTools::GoogleEarthKML::Point, QGpCoreTools::TreeItem, QGpCoreTools::XMLHeader, QGpGuiWave::RefractionLine, SciFigs::HistogramLayer, SciFigs::SlopeEstimator, SciFigs::XYValueLines, SciFigs::XYValuePlot, DinverCore::RealSpace, DinverCore::SimpleCondition, GeopsyCore::MiniSeedSequence, GeopsyCore::TimePick, GeopsyGui::PickFormat, GeopsySLink::SeedLinkServer, MonoStation::StationLine, QGpCompatibility::CompatModalFrequency, QGpCoreTools::XMLMap< Key, T >, QGpCoreWave::AutocorrCurves, QGpGuiWave::ModalLine, SciFigs::AbstractNameLine, SciFigs::CircleViewer, SciFigs::ColorPaletteLayer, SciFigs::XMLSciFigs, SciFigs::XYColorPlot, DinverCore::AbstractCondition, DinverCore::XMLDinver, DinverDCCore::AutocorrTarget, DinverDCCore::MagnetoTelluricTarget, DinverDCCore::ModalCurveTarget, DinverDCCore::RefractionTarget, DinverDCCore::TargetList2D, GeopsyCore::MiniSeedRecords, GeopsySLink::SeedLinkStation, ModelSlider, QGpGuiWave::MagnetoTelluricLine, SciFigs::AbstractLine, SciFigs::NameLine, SciFigs::RealStatisticalLine, DinverDCCore::ValueTarget, GeopsyCore::DefaultSignalGroup, GeopsyCore::GuralpRecords, GeopsyCore::MasterSignalGroup, SciFigs::ComplexStatisticalLine, InversionThread, MatlabTarget, GeopsyCore::SignalGroupFolder, GeopsyCore::StationGroup, ExtTarget, GeopsyCore::Comments, MatlabVariableName, SciFigs::CircleMask, and MatFormat.

Referenced by GeopsyCore::MetaDataMap::add(), GeopsyCore::Signal::compare(), writeBinaryData(), GeopsyCore::MetaData::writeProperties(), DinverCore::XMLVirtualPlugin::xml_member(), QGpCoreTools::XMLHeader::xml_member(), SciFigs::XMLSciFigs::xml_member(), GeopsyCore::SignalDB::xml_member(), GeopsyCore::Signal::xml_member(), xml_save(), SciFigs::XMLSciFigs::xml_writeChildren(), GeopsyCore::CustomFileFormats::xml_writeChildren(), and GeopsyCore::MetaData::xml_writeLink().

This function must be re-implemented in all classes dealing with binary data that cannot be saved in an ASCII xml file (e.g. due to the amount of data).

The way binary data is stored drastically changed in November 2006 with the introduction of tar.gz structures for xml files. Each class willing to store binary data can automatically generate a new file (with an automatic file name) in the .tar.gz structure by sending bytes to s.

See also xml_setBinaryData().

For the arguments of this function use Macro XML_WRITEBINARYDATA_ARGS.

Reimplemented in QGpCoreTools::IrregularGrid2D, SciFigs::XYColorLines, QGpCoreTools::Grid3D< ValueType >, SciFigs::XUniqueYColorLines, SciFigs::XYPlot, QGpCoreTools::Grid2D< ValueType >, QGpCoreTools::Grid2D< double >, NAModelsPlot, SciFigs::XYValuePlot, SciFigs::XYValueLines, GeopsyCore::XMLSignal, and SciFigs::XYColorPlot.

Referenced by writeBinaryData().

{
  Q_UNUSED(s);
  Q_UNUSED(context);
}

Reimplemented in GeopsyCore::Signal, SciFigs::GraphContent, SciFigs::GraphicSheet, QGpCoreTools::ExpressionFunction, QGpCompatibility::CompatVDataPointVector, QGpCoreTools::ExpressionOperator, GeopsyGui::SignalLayer, QGpCompatibility::CompatDataPointVector, QGpCoreTools::ExpressionBracket, QGpCoreTools::ColumnTextParser, QGpCoreTools::GoogleEarthKML, SciFigs::ImageLayer, SciFigs::LineLayer, DinverDCCore::ParamProfile, QGpCoreTools::GoogleEarthKML::Document, DinverDCCore::TargetList, SciFigs::ColorPaletteWidget, SciFigs::LegendWidget, InversionThread, QGpCoreTools::ExpressionVariable, QGpCoreTools::GoogleEarthKML::Folder, SciFigs::AxisWindow, GeopsyCore::SignalDB, SciFigs::GridPlot, SciFigs::Legend, SciFigs::LiveGridLayer, GeopsyCore::AsciiSignalFormat, DinverCore::RealSpace, GeopsyCore::AbstractSignalGroup, SciFigs::AbstractLine, GeopsyCore::SignalFile, GeopsyGui::PickLayer, NAModelsPlot, QGpCompatibility::CompatModalRefinedCurves, QGpCoreWave::ModalCurve, DinverDCCore::ParamGroundModel, QGpCompatibility::CompatModalCurves, SciFigs::Symbol, SciFigs::ParallelBands, GeopsyGui::ChronogramLayer, QGpCoreTools::GoogleEarthKML::Placemark, SciFigs::XYValueLines, QGpCoreTools::XMLGenericItem, QGpCoreWave::RefractionCurve, QGpCompatibility::CompatModalEllipticity, SciFigs::XYValuePlot, GeopsyCore::CustomFileFormats, GeopsyGui::TimeWindowLayer, QGpCoreWave::AutocorrCurves, QGpCoreWave::MagnetoTelluricCurve, SciFigs::ParallelBand, GeopsySLink::SeedLinkStation, SciFigs::LegendItem, QGpCoreTools::TreeContainer, GeopsySLink::SeedLinkServer, SciFigs::XMLSciFigs, GeopsyCore::MiniSeedRecords, ControlPanel, DinverDCCore::Param3DGroundModel, SciFigs::GridViewer, QGpCoreTools::XMLHeader, DinverDCCore::TargetList2D, GeopsyCore::SharedMetaData, GeopsyCore::DefaultSignalGroup, GeopsyCore::XMLSubSignalPool, DinverDCCore::AutocorrTarget, DinverDCCore::MagnetoTelluricTarget, DinverDCCore::ModalCurveTarget, DinverDCCore::RefractionTarget, DinverDCCore::ValueTarget, DinverCore::XMLDinver, DinverCore::XMLVirtualPlugin, and XMLDinverGui.

Referenced by xml_save().

{
  Q_UNUSED(s);
  Q_UNUSED(context);
}

Reimplemented in GeopsyCore::Signal, SciFigs::GraphContent, SciFigs::Axis, QGpCoreTools::ExpressionFunction, SciFigs::GraphicObject, QGpCoreTools::ExpressionOperator, GeopsyGui::SignalLayer, QGpCoreTools::ExpressionBracket, DinverDCCore::ParamLayer, QGpCoreTools::ColumnTextParser, QGpCoreTools::IrregularGrid2D, SciFigs::ImageLayer, DinverDCCore::ParamProfile, QGpCoreTools::ExpressionValue, QGpCoreTools::GoogleEarthKML::Document, SciFigs::GraphContentLayer, SciFigs::ImageLayer::ReferencePoint, SciFigs::XYColorLines, InversionThread, DinverCore::Parameter, QGpCoreTools::ExpressionVariable, QGpCoreTools::Grid3D< ValueType >, QGpCoreTools::GoogleEarthKML::Folder, SciFigs::XUniqueYColorLines, GeopsyCore::SignalDB, QGpCoreTools::Rect, SciFigs::CircleViewer, SciFigs::XYPlot, GeopsyCore::AsciiSignalFormat, MapProject, QGpCoreTools::Grid2D< ValueType >, QGpCoreTools::Grid2D< double >, GeopsyCore::AbstractSignalGroup, SciFigs::AbstractLine, GeopsyCore::SignalFile, NAModelsPlot, QGpCoreTools::StatisticalValue< numberType >, SciFigs::Pen, QGpCoreTools::StatisticalValue< double >, QGpCoreTools::StatisticalValue< Complex >, QGpCoreWave::ModalCurve, SciFigs::Symbol, QGpGuiTools::ColorPalette, QGpCompatibility::CompatModalFrequency, GeopsyCore::AbstractFileFormat, GeopsyCore::AsciiSignalFormatRule, QGpCoreTools::GoogleEarthKML::Placemark, QGpCoreWave::Mode, QGpCoreTools::XMLGenericItem, QGpCoreWave::RefractionCurve, QGpCompatibility::CompatModalEllipticity, SciFigs::AbstractNameLine, GeopsyGui::TimeWindowLayer, QGpCoreWave::MagnetoTelluricCurve, GeopsyCore::SignalGroup, QGpCoreTools::ColumnTextDescription, SciFigs::ParallelBand, QGpCoreTools::StatisticalPoint< numberType >, QGpCoreTools::StatisticalPoint< double >, QGpCoreTools::StatisticalPoint< Complex >, GeopsyGui::TimeWindowList, SciFigs::LegendItem, SciFigs::XMLSciFigs, QGpCompatibility::CompatDataPoint, ModelSlider, DinverCore::AbstractCondition, MatlabTarget, SciFigs::Brush, QGpCoreWave::AutocorrRing, GeopsyCore::SharedMetaData, DinverCore::SimpleCondition, GeopsyGui::PickFormat, DinverDCCore::Target, GeopsyCore::AsciiSignalFormatComponent, DinverCore::ParamSpaceScript, GeopsyCore::DefaultSignalGroup, SciFigs::HistogramLayer, ExtTarget, GeopsyCore::XMLSignal, QGpCoreTools::GoogleEarthKML::Point, GeopsyCore::MasterSignalGroup, QGpCoreTools::XMLMap< Key, T >, DinverCore::XMLDinver, and DinverCore::XMLVirtualPlugin.

Referenced by xml_save().

{
  Q_UNUSED(s);
  Q_UNUSED(context);
}

Member Data Documentation

const QString QGpCoreTools::XMLClass::binData200510Tag = "binDataOffset" [static]
const QString QGpCoreTools::XMLClass::binDataTag = "binDataFile" [static]

Referenced by writeBinaryData().

const QString QGpCoreTools::XMLClass::closeBeginTagStr = "</" [static]

Referenced by writeChildren(), and xml_save().

const QString QGpCoreTools::XMLClass::closeEndTagStr = "/>" [static]
const QString QGpCoreTools::XMLClass::endTagStr = ">" [static]

Referenced by writeChildren(), and xml_save().

const QString QGpCoreTools::XMLClass::falseStr = "false" [static]
const QString QGpCoreTools::XMLClass::openBeginTagStr = "<" [static]

Referenced by writeChildren(), and xml_save().

const QString QGpCoreTools::XMLClass::trueStr = "true" [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines