diff --git a/dCommon/Lxfml.cpp b/dCommon/Lxfml.cpp index d6305a72..423324ad 100644 --- a/dCommon/Lxfml.cpp +++ b/dCommon/Lxfml.cpp @@ -10,6 +10,26 @@ #include #include +namespace { + // The base LXFML xml file to use when creating new models. + std::string g_base = R"( + + + + + + + + + + + + + + +)"; +} + Lxfml::Result Lxfml::NormalizePosition(const std::string_view data, const NiPoint3& curPosition) { Result toReturn; tinyxml2::XMLDocument doc; @@ -238,7 +258,7 @@ std::vector Lxfml::Split(const std::string_view data, const NiPoi // Helper to create output document from sets of brick refs and rigidsystem pointers auto makeOutput = [&](const std::unordered_set& bricksToInclude, const std::vector& rigidSystemsToInclude, const std::vector& groupsToInclude = {}) { tinyxml2::XMLDocument outDoc; - outDoc.Parse(Lxfml::base.c_str()); + outDoc.Parse(g_base.c_str()); auto* outRoot = outDoc.FirstChildElement("LXFML"); auto* outBricks = outRoot->FirstChildElement("Bricks"); auto* outRigidSystems = outRoot->FirstChildElement("RigidSystems"); diff --git a/dCommon/Lxfml.h b/dCommon/Lxfml.h index f0486c8d..1baaeeed 100644 --- a/dCommon/Lxfml.h +++ b/dCommon/Lxfml.h @@ -21,24 +21,6 @@ namespace Lxfml { [[nodiscard]] Result NormalizePosition(const std::string_view data, const NiPoint3& curPosition = NiPoint3Constant::ZERO); [[nodiscard]] std::vector Split(const std::string_view data, const NiPoint3& curPosition = NiPoint3Constant::ZERO); - // The base LXFML xml file to use when creating new models. - static inline std::string base = R"( - - - - - - - - - - - - - - -)"; - // these are only for the migrations due to a bug in one of the implementations. [[nodiscard]] Result NormalizePositionOnlyFirstPart(const std::string_view data); [[nodiscard]] Result NormalizePositionAfterFirstPart(const std::string_view data, const NiPoint3& position);