• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PredatorCZ / HavokLib / 91

07 Nov 2025 05:44PM UTC coverage: 62.489% (+0.03%) from 62.461%
91

push

github

PredatorCZ
add support for scene data

556 of 1151 new or added lines in 22 files covered. (48.31%)

21 existing lines in 5 files now uncovered.

2777 of 4444 relevant lines covered (62.49%)

125162.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/source/xml/hkx_attributeholder.cpp
1
/*  Havok Format Library
2
    Copyright(C) 2016-2025 Lukas Cone
3

4
    This program is free software : you can redistribute it and / or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8

9
    This program is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
12
    GNU General Public License for more details.
13

14
    You should have received a copy of the GNU General Public License
15
    along with this program.If not, see <https://www.gnu.org/licenses/>.
16
*/
17

18
#include "internal/hkx_attributeholder.hpp"
19
#include "base.hpp"
20

NEW
21
void hkxAttributeHolderInternalInterface::ToXML(XMLHandle hdl) const {
×
NEW
22
  pugi::xml_node groupsNode = ToXMLArray("attributeGroups", Size(), *hdl.node);
×
23

NEW
24
  for (const auto &g : *this) {
×
NEW
25
    auto obj = groupsNode.append_child(_hkObject);
×
NEW
26
    ::ToXML(_hkName, g->Name(), obj);
×
NEW
27
    auto attrs = ToXMLArray("attributes", g->Size(), obj);
×
28

NEW
29
    for (auto &a : *g) {
×
NEW
30
      auto obj = attrs.append_child(_hkObject);
×
NEW
31
      ::ToXML(_hkName, a.name, obj);
×
NEW
32
      ::ToXML("value", a.value, obj, hdl.toolset);
×
33
    }
34
  }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc