MCPcopy Create free account
hub / github.com/OpenMW/openmw / toString

Function toString

apps/esmtool/tes4.cpp:34–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 };
33
34 std::string toString(ESM4::GroupType type)
35 {
36 switch (type)
37 {
38 case ESM4::Grp_RecordType:
39 return "RecordType";
40 case ESM4::Grp_WorldChild:
41 return "WorldChild";
42 case ESM4::Grp_InteriorCell:
43 return "InteriorCell";
44 case ESM4::Grp_InteriorSubCell:
45 return "InteriorSubCell";
46 case ESM4::Grp_ExteriorCell:
47 return "ExteriorCell";
48 case ESM4::Grp_ExteriorSubCell:
49 return "ExteriorSubCell";
50 case ESM4::Grp_CellChild:
51 return "CellChild";
52 case ESM4::Grp_TopicChild:
53 return "TopicChild";
54 case ESM4::Grp_CellPersistentChild:
55 return "CellPersistentChild";
56 case ESM4::Grp_CellTemporaryChild:
57 return "CellTemporaryChild";
58 case ESM4::Grp_CellVisibleDistChild:
59 return "CellVisibleDistChild";
60 }
61
62 return "Unknown (" + std::to_string(type) + ")";
63 }
64
65 template <class T>
66 struct WriteArray

Callers 3

loadTes4Function · 0.70
TEST_FFunction · 0.50
getAsStringFunction · 0.50

Calls 1

to_stringFunction · 0.85

Tested by 2

TEST_FFunction · 0.40
getAsStringFunction · 0.40