Classes | Namespaces | Defines | Typedefs
QGpCoreTools/XMLClass.h File Reference
#include "QGpCoreToolsDLLExport.h"
#include "XMLStream.h"
#include "XMLContext.h"
#include "XMLMember.h"
#include "XMLSaveAttributes.h"
#include "Translations.h"
#include "StringSection.h"

Go to the source code of this file.

Classes

class  QGpCoreTools::XMLClass
 XMLClass is a parser for a simplified XML syntax. More...

Namespaces

namespace  QGpCoreTools

Defines

#define DECL_XML_WRITE_PROPERTY(type)   static void writeProperty(XMLStream& s, QString name, type content);
#define DECL_XML_WRITE_PROPERTY_ATT(type)   static void writeProperty(XMLStream& s, QString name, const XMLSaveAttributes& attributes, type content);
#define IMPL_XML_WRITE_PROPERTY(type, convert)
#define IMPL_XML_WRITE_PROPERTY_ATT(type, convert)
#define XML_ATTRIBUTES_ARGS   XMLSaveAttributes& attributes, XMLContext * context
#define XML_MEMBER_ARGS   StringSection& tag, const XMLRestoreAttributes& attributes, XMLContext * context
#define XML_POLISH_ARGS   XMLContext * context
#define XML_POLISHCHILD_ARGS   XMLClass * child, XMLContext * context
#define XML_POLISHED_ARGS
#define XML_SETATTRIBUTES_ARGS   const XMLRestoreAttributes& attributes, XMLContext * context
#define XML_SETBINARYDATA_ARGS   QDataStream& s, XMLContext * context
#define XML_SETPROPERTY_ARGS   int memberID, StringSection& tag, const XMLRestoreAttributes& attributes, StringSection& content, XMLContext * context
#define XML_WRITEBINARYDATA_ARGS   QDataStream& s, XMLContext * context
#define XML_WRITECHILDREN_ARGS   XMLStream& s, XMLContext * context
#define XML_WRITEPROPERTIES_ARGS   XMLStream& s, XMLContext * context

Typedefs

typedef QHash< StringSection,
StringSection >
::const_iterator 
QGpCoreTools::XMLRestoreAttributeIterator
typedef QHash< StringSection,
StringSection > 
QGpCoreTools::XMLRestoreAttributes

Define Documentation

#define DECL_XML_WRITE_PROPERTY (   type)    static void writeProperty(XMLStream& s, QString name, type content);
#define DECL_XML_WRITE_PROPERTY_ATT (   type)    static void writeProperty(XMLStream& s, QString name, const XMLSaveAttributes& attributes, type content);
#define IMPL_XML_WRITE_PROPERTY (   type,
  convert 
)
Value:
void XMLClass::writeProperty(XMLStream& s, QString name, type content) \
{ \
  TRACE; \
  QString tmp=s.indent(); \
  tmp+=openBeginTagStr; \
  tmp+=name; \
  tmp+=endTagStr; \
  tmp+=convert; \
  tmp+=closeBeginTagStr; \
  tmp+=name; \
  tmp+=endTagStr; \
  s << tmp << ::endl; \
}
#define IMPL_XML_WRITE_PROPERTY_ATT (   type,
  convert 
)
Value:
void XMLClass::writeProperty(XMLStream& s, QString name, const XMLSaveAttributes& attributes, type content) \
{ \
  TRACE; \
  QString tmp=s.indent(); \
  tmp+=openBeginTagStr; \
  tmp+=name; \
  tmp+=attributes.toEncodedString(); \
  tmp+=endTagStr; \
  tmp+=convert; \
  tmp+=closeBeginTagStr; \
  tmp+=name; \
  tmp+=endTagStr; \
  s << tmp << ::endl; \
}
#define XML_ATTRIBUTES_ARGS   XMLSaveAttributes& attributes, XMLContext * context
#define XML_MEMBER_ARGS   StringSection& tag, const XMLRestoreAttributes& attributes, XMLContext * context
#define XML_POLISH_ARGS   XMLContext * context
#define XML_POLISHCHILD_ARGS   XMLClass * child, XMLContext * context
#define XML_SETATTRIBUTES_ARGS   const XMLRestoreAttributes& attributes, XMLContext * context
#define XML_SETBINARYDATA_ARGS   QDataStream& s, XMLContext * context
#define XML_SETPROPERTY_ARGS   int memberID, StringSection& tag, const XMLRestoreAttributes& attributes, StringSection& content, XMLContext * context
#define XML_WRITEBINARYDATA_ARGS   QDataStream& s, XMLContext * context
#define XML_WRITECHILDREN_ARGS   XMLStream& s, XMLContext * context
#define XML_WRITEPROPERTIES_ARGS   XMLStream& s, XMLContext * context
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines