MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / toString

Function toString

test/map_color_t.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39{
40 template<>
41 char* toString(const MapColor::ColorMethod& method)
42 {
43 QByteArray ba;
44 switch (method)
45 {
46 case MapColor::UndefinedMethod: ba = "UndefinedMethod"; break;
47 case MapColor::CustomColor: ba = "CustomColor"; break;
48 case MapColor::SpotColor: ba = "SpotColor"; break;
49 case MapColor::CmykColor: ba = "CmykColor"; break;
50 case MapColor::RgbColor: ba = "RgbColor"; break;
51 default: ba += "unknown " + QString::number(method).toLatin1();
52 }
53 return qstrdup(ba.data());
54 }
55
56 template<>
57 char* toString(const MapColor& c)

Callers 1

toStringMethod · 0.50

Calls 7

getSpotColorMethodMethod · 0.80
getCmykColorMethodMethod · 0.80
getRgbColorMethodMethod · 0.80
getPriorityMethod · 0.80
getKnockoutMethod · 0.80
getOpacityMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected