Refactoring.
--HG-- branch : feature
This commit is contained in:
parent
4537106991
commit
80eb2649b9
|
@ -130,103 +130,61 @@ void VPatternConverter::ApplyPatches()
|
||||||
switch (ver)
|
switch (ver)
|
||||||
{
|
{
|
||||||
case (0x000100):
|
case (0x000100):
|
||||||
{
|
|
||||||
ToV0_1_1();
|
ToV0_1_1();
|
||||||
const QString schema = XSDSchema(0x000101);
|
ValidateXML(XSDSchema(0x000101), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000101):
|
case (0x000101):
|
||||||
{
|
|
||||||
ToV0_1_2();
|
ToV0_1_2();
|
||||||
const QString schema = XSDSchema(0x000102);
|
ValidateXML(XSDSchema(0x000102), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000102):
|
case (0x000102):
|
||||||
{
|
|
||||||
ToV0_1_3();
|
ToV0_1_3();
|
||||||
const QString schema = XSDSchema(0x000103);
|
ValidateXML(XSDSchema(0x000103), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000103):
|
case (0x000103):
|
||||||
{
|
|
||||||
ToV0_1_4();
|
ToV0_1_4();
|
||||||
const QString schema = XSDSchema(0x000104);
|
ValidateXML(XSDSchema(0x000104), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000104):
|
case (0x000104):
|
||||||
{
|
|
||||||
ToV0_2_0();
|
ToV0_2_0();
|
||||||
const QString schema = XSDSchema(0x000200);
|
ValidateXML(XSDSchema(0x000200), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000200):
|
case (0x000200):
|
||||||
{
|
|
||||||
ToV0_2_1();
|
ToV0_2_1();
|
||||||
const QString schema = XSDSchema(0x000201);
|
ValidateXML(XSDSchema(0x000201), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000201):
|
case (0x000201):
|
||||||
{
|
|
||||||
ToV0_2_2();
|
ToV0_2_2();
|
||||||
const QString schema = XSDSchema(0x000202);
|
ValidateXML(XSDSchema(0x000202), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000202):
|
case (0x000202):
|
||||||
{
|
|
||||||
ToV0_2_3();
|
ToV0_2_3();
|
||||||
const QString schema = XSDSchema(0x000203);
|
ValidateXML(XSDSchema(0x000203), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000203):
|
case (0x000203):
|
||||||
{
|
|
||||||
ToV0_2_4();
|
ToV0_2_4();
|
||||||
const QString schema = XSDSchema(0x000204);
|
ValidateXML(XSDSchema(0x000204), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000204):
|
case (0x000204):
|
||||||
{
|
|
||||||
ToV0_2_5();
|
ToV0_2_5();
|
||||||
const QString schema = XSDSchema(0x000205);
|
ValidateXML(XSDSchema(0x000205), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000205):
|
case (0x000205):
|
||||||
{
|
|
||||||
ToV0_2_6();
|
ToV0_2_6();
|
||||||
const QString schema = XSDSchema(0x000206);
|
ValidateXML(XSDSchema(0x000206), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000206):
|
case (0x000206):
|
||||||
{
|
|
||||||
ToV0_2_7();
|
ToV0_2_7();
|
||||||
const QString schema = XSDSchema(0x000207);
|
ValidateXML(XSDSchema(0x000207), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000207):
|
case (0x000207):
|
||||||
{
|
|
||||||
ToV0_3_0();
|
ToV0_3_0();
|
||||||
const QString schema = XSDSchema(0x000300);
|
ValidateXML(XSDSchema(0x000300), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000300):
|
case (0x000300):
|
||||||
{
|
|
||||||
ToV0_3_1();
|
ToV0_3_1();
|
||||||
const QString schema = XSDSchema(0x000301);
|
ValidateXML(XSDSchema(0x000301), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000301):
|
case (0x000301):
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -107,33 +107,21 @@ void VVITConverter::ApplyPatches()
|
||||||
switch (ver)
|
switch (ver)
|
||||||
{
|
{
|
||||||
case (0x000200):
|
case (0x000200):
|
||||||
{
|
|
||||||
ToV0_3_0();
|
ToV0_3_0();
|
||||||
const QString schema = XSDSchema(0x000300);
|
ValidateXML(XSDSchema(0x000300), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000300):
|
case (0x000300):
|
||||||
{
|
|
||||||
ToV0_3_1();
|
ToV0_3_1();
|
||||||
const QString schema = XSDSchema(0x000301);
|
ValidateXML(XSDSchema(0x000301), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000301):
|
case (0x000301):
|
||||||
{
|
|
||||||
ToV0_3_2();
|
ToV0_3_2();
|
||||||
const QString schema = XSDSchema(0x000302);
|
ValidateXML(XSDSchema(0x000302), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000302):
|
case (0x000302):
|
||||||
{
|
|
||||||
ToV0_3_3();
|
ToV0_3_3();
|
||||||
const QString schema = XSDSchema(0x000303);
|
ValidateXML(XSDSchema(0x000303), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000303):
|
case (0x000303):
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -105,26 +105,17 @@ void VVSTConverter::ApplyPatches()
|
||||||
switch (ver)
|
switch (ver)
|
||||||
{
|
{
|
||||||
case (0x000300):
|
case (0x000300):
|
||||||
{
|
|
||||||
ToV0_4_0();
|
ToV0_4_0();
|
||||||
const QString schema = XSDSchema(0x000400);
|
ValidateXML(XSDSchema(0x000400), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000400):
|
case (0x000400):
|
||||||
{
|
|
||||||
ToV0_4_1();
|
ToV0_4_1();
|
||||||
const QString schema = XSDSchema(0x000401);
|
ValidateXML(XSDSchema(0x000401), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000401):
|
case (0x000401):
|
||||||
{
|
|
||||||
ToV0_4_2();
|
ToV0_4_2();
|
||||||
const QString schema = XSDSchema(0x000402);
|
ValidateXML(XSDSchema(0x000402), fileName);
|
||||||
ValidateXML(schema, fileName);
|
|
||||||
V_FALLTHROUGH
|
V_FALLTHROUGH
|
||||||
}
|
|
||||||
case (0x000402):
|
case (0x000402):
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user