MCPcopy Create free account
hub / github.com/Qucs/qucs / constructColcodeMap

Method constructColcodeMap

qucs-rescodes/resistor.cpp:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using namespace std;
24
25map<string,int> Resistor::constructColcodeMap()
26{
27 map<string,int> colcodeMap;
28 colcodeMap["silver"]=-2;
29 colcodeMap["gold"]=-1;
30 colcodeMap["black"]=0;
31 colcodeMap["brown"]=1;
32 colcodeMap["red"]=2;
33 colcodeMap["orange"]=3;
34 colcodeMap["yellow"]=4;
35 colcodeMap["green"]=5;
36 colcodeMap["blue"]=6;
37 colcodeMap["violet"]=7;
38 colcodeMap["gray"]=8;
39 colcodeMap["white"]=9;
40 return(colcodeMap);
41}
42
43map<string,float> Resistor::constructTolcodeMap()
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected