53 #ifndef VABSTRACTCONVERTER_H
54 #define VABSTRACTCONVERTER_H
56 #include <qcompilerdetection.h>
58 #if !defined(Q_OS_OSX) && !defined(Q_OS_WIN) && defined(Q_CC_GNU)
59 #include <sys/sysmacros.h>
62 #include <QCoreApplication>
64 #include <QTemporaryFile>
69 template <
class Key,
class T>
class QMap;
71 #define CONVERTER_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
108 void Replace(QString &formula, const QString &newName,
int position,
109 const QString &token,
int &bias) const;
111 static
void BiasTokens(
int position,
int bias,
QMap<
int, QString> &tokens);
virtual ~VAbstractConverter() Q_DECL_EQ_DEFAULT
static int GetVersion(const QString &version)
static QString removeVersionNumber(const QString &fileName)
Removes version number from.
virtual void DowngradeToCurrentMaxVersion()=0
virtual bool IsReadOnly() const =0
void SetVersion(const QString &version)
void Replace(QString &formula, const QString &newName, int position, const QString &token, int &bias) const
virtual QString MaxVerStr() const =0
int GetCurrentFormatVarsion() const
static void BiasTokens(int position, int bias, QMap< int, QString > &tokens)
static void ValidateVersion(const QString &version)
Q_NORETURN void InvalidVersion(int ver) const
virtual QString XSDSchema(int ver) const =0
virtual int MaxVer() const =0
static QString removeBakExtension(const QString &fileName)
Removes single or repeated '.bak' extension (as long as it is at the end of.
void CorrectionsPositions(int position, int bias, QMap< int, QString > &tokens) const
virtual int MinVer() const =0
void ValidateInputFile(const QString ¤tSchema) const
QString GetVersionStr() const
VAbstractConverter(const QString &fileName)
virtual QString MinVerStr() const =0
QString m_convertedFileName
virtual void ApplyPatches()=0
The VDomDocument class represents a Seamly2D document (.val file).