MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getFormatModeEnum

Method getFormatModeEnum

Engine/source/persistence/taml/taml.cpp:107–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 //-----------------------------------------------------------------------------
106
107 Taml::TamlFormatMode Taml::getFormatModeEnum(const char* label)
108 {
109 // Search for Mnemonic.
110 for (U32 i = 0; i < (sizeof(__TamlFormatMode::_sEnums) / sizeof(EnumTable::Value)); i++)
111 {
112 if (dStricmp(__TamlFormatMode::_sEnumTable[i].getName(), label) == 0)
113 return (TamlFormatMode)__TamlFormatMode::_sEnumTable[i].getInt();
114 }
115
116 // Warn.
117 Con::warnf("Taml::getFormatModeEnum() - Invalid format of '%s'.", label);
118
119 return Taml::InvalidFormat;
120 }
121
122 //-----------------------------------------------------------------------------
123

Callers

nothing calls this directly

Calls 4

dStricmpFunction · 0.85
warnfFunction · 0.50
getNameMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected