From af64e55395e2e262d2d25715e15c2518024d21f2 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 25 Jun 2015 09:53:27 -1000 Subject: [PATCH] slight refactor --- DNA/DNA.pri | 7 +++++-- .../common.hpp => DNACommon/DNACommon.hpp} | 0 DNA/DNACommon/DNACommon.pri | 2 ++ DNA/{DNA_mp1/DNA_mp1.pri => DNAMP1/DNAMP1.pri} | 0 DNA/{DNA_mp1 => DNAMP1}/MLVL.hpp | 11 +++-------- DNA/DNAMP2/DNAMP2.pri | 0 DNA/DNAMP3/DNAMP3.pri | 0 DNA/DNA_common/DNA_common.pri | 2 -- 8 files changed, 10 insertions(+), 12 deletions(-) rename DNA/{DNA_common/common.hpp => DNACommon/DNACommon.hpp} (100%) create mode 100644 DNA/DNACommon/DNACommon.pri rename DNA/{DNA_mp1/DNA_mp1.pri => DNAMP1/DNAMP1.pri} (100%) rename DNA/{DNA_mp1 => DNAMP1}/MLVL.hpp (92%) create mode 100644 DNA/DNAMP2/DNAMP2.pri create mode 100644 DNA/DNAMP3/DNAMP3.pri delete mode 100644 DNA/DNA_common/DNA_common.pri diff --git a/DNA/DNA.pri b/DNA/DNA.pri index dc14cf4d9..efd50f423 100644 --- a/DNA/DNA.pri +++ b/DNA/DNA.pri @@ -1,2 +1,5 @@ -include(DNA_common/DNA_common.pri) -include(DNA_mp1/DNA_mp1.pri) +include(DNACommon/DNACommon.pri) +include(DNAMP1/DNAMP1.pri) +include(DNAMP2/DNAMP2.pri) +include(DNAMP3/DNAMP3.pri) + diff --git a/DNA/DNA_common/common.hpp b/DNA/DNACommon/DNACommon.hpp similarity index 100% rename from DNA/DNA_common/common.hpp rename to DNA/DNACommon/DNACommon.hpp diff --git a/DNA/DNACommon/DNACommon.pri b/DNA/DNACommon/DNACommon.pri new file mode 100644 index 000000000..eff19b8b3 --- /dev/null +++ b/DNA/DNACommon/DNACommon.pri @@ -0,0 +1,2 @@ +HEADERS += \ + $$PWD/DNACommon.hpp diff --git a/DNA/DNA_mp1/DNA_mp1.pri b/DNA/DNAMP1/DNAMP1.pri similarity index 100% rename from DNA/DNA_mp1/DNA_mp1.pri rename to DNA/DNAMP1/DNAMP1.pri diff --git a/DNA/DNA_mp1/MLVL.hpp b/DNA/DNAMP1/MLVL.hpp similarity index 92% rename from DNA/DNA_mp1/MLVL.hpp rename to DNA/DNAMP1/MLVL.hpp index c888d208f..d548e4286 100644 --- a/DNA/DNA_mp1/MLVL.hpp +++ b/DNA/DNAMP1/MLVL.hpp @@ -1,6 +1,6 @@ -#include "../DNA_common/common.hpp" +#include "../DNACommon/DNACommon.hpp" -namespace MP1 +namespace DNAMP1 { struct MLVL : public BigDNA @@ -94,12 +94,7 @@ struct MLVL : public BigDNA Vector layerFlags; Value layerNameCount; - struct LayerName : public BigDNA - { - DECL_DNA - String<-1> name; - }; - Vector layerNames; + Vector, DNA_COUNT(layerNameCount)> layerNames; Value layerNameOffsetCount; Vector layerNameOffsets; diff --git a/DNA/DNAMP2/DNAMP2.pri b/DNA/DNAMP2/DNAMP2.pri new file mode 100644 index 000000000..e69de29bb diff --git a/DNA/DNAMP3/DNAMP3.pri b/DNA/DNAMP3/DNAMP3.pri new file mode 100644 index 000000000..e69de29bb diff --git a/DNA/DNA_common/DNA_common.pri b/DNA/DNA_common/DNA_common.pri deleted file mode 100644 index 50ac9cb37..000000000 --- a/DNA/DNA_common/DNA_common.pri +++ /dev/null @@ -1,2 +0,0 @@ -HEADERS += \ - $$PWD/common.hpp