MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / toString

Method toString

plugins/dm.objectives/Specifier.h:70–77  ·  view source on GitHub ↗

* Get a user-friendly string representing the contents of this Specifier. */

Source from the content-addressed store, hash-verified

68 * Get a user-friendly string representing the contents of this Specifier.
69 */
70 std::string toString() const {
71 if (_type == SpecifierType::SPEC_NONE()) {
72 return _type.getDisplayName();
73 }
74 else {
75 return _type.getDisplayName() + " : " + _value;
76 }
77 }
78
79 /**
80 * greebo: Returns a human-readable chunk of text based on the values

Callers

nothing calls this directly

Calls 1

getDisplayNameMethod · 0.45

Tested by

no test coverage detected