Files
dbc/docs/html/decode__database_8h_source.html
T
2026-10-20 13:40:44 -04:00

260 lines
40 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DBC Framework: decode_database.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">DBC Framework
</div>
<div id="projectbrief">DBC parsing and CAN signal decoding framework</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('decode__database_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">decode_database.h</div></div>
</div><!--header-->
<div class="contents">
<a href="decode__database_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#ifndef DECODE_DATABASE_H</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#define DECODE_DATABASE_H</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &quot;attributes.h&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &quot;definition_key.h&quot;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &quot;multiplexing.h&quot;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include &quot;value_descriptions.h&quot;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="foldopen" id="foldopen00028" data-start="{" data-end="};">
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="decode__database_8h.html#aaeb92d42f5a6e27b8ba19f18d69d142b"> 28</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="decode__database_8h.html#aaeb92d42f5a6e27b8ba19f18d69d142b">ByteOrder</a> {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> Intel,</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> Motorola</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span>};</div>
</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="decode__database_8h.html#ad9971b6ef33e02ba2c75d19c1d2518a1"> 36</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="decode__database_8h.html#ad9971b6ef33e02ba2c75d19c1d2518a1">ValueType</a> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> Unsigned,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> Signed</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>};</div>
</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="};">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structDecodeSignal.html"> 44</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structDecodeSignal.html">DecodeSignal</a> {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#aea41c055cb255fe7bd178ed5727f28c9"> 45</a></span> <a class="code hl_struct" href="structMultiplexing.html">Multiplexing</a> <a class="code hl_variable" href="structDecodeSignal.html#aea41c055cb255fe7bd178ed5727f28c9">multiplexing</a>; </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a58cf5844f2272a23dcb9687d912e4780"> 46</a></span> std::string <a class="code hl_variable" href="structDecodeSignal.html#a58cf5844f2272a23dcb9687d912e4780">name</a>; </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#aaf5d7527ddf65b6355c2b4f3626df22d"> 47</a></span> std::uint32_t <a class="code hl_variable" href="structDecodeSignal.html#aaf5d7527ddf65b6355c2b4f3626df22d">startBit</a> = 0U; </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#acd4ef5ee30421d117b5756854302debb"> 48</a></span> std::uint32_t <a class="code hl_variable" href="structDecodeSignal.html#acd4ef5ee30421d117b5756854302debb">length</a> = 0U; </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#abdc4c4bb4a67a6d61d6ca81e8a52833d"> 49</a></span> <a class="code hl_enumeration" href="decode__database_8h.html#aaeb92d42f5a6e27b8ba19f18d69d142b">ByteOrder</a> <a class="code hl_variable" href="structDecodeSignal.html#abdc4c4bb4a67a6d61d6ca81e8a52833d">byteOrder</a> = ByteOrder::Intel; </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a9d37638129263b8902ba5be59baf39a8"> 50</a></span> <a class="code hl_enumeration" href="decode__database_8h.html#ad9971b6ef33e02ba2c75d19c1d2518a1">ValueType</a> <a class="code hl_variable" href="structDecodeSignal.html#a9d37638129263b8902ba5be59baf39a8">valueType</a> = ValueType::Unsigned; </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a428c39913a366a8476dd291061354391"> 51</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structDecodeSignal.html#a428c39913a366a8476dd291061354391">factor</a> = 1.0; </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a92db637af4e224a0ae70173050dc3f74"> 52</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structDecodeSignal.html#a92db637af4e224a0ae70173050dc3f74">offset</a> = 0.0; </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a0fb84e19a0ab3bd50b6f65c1075ebc25"> 53</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structDecodeSignal.html#a0fb84e19a0ab3bd50b6f65c1075ebc25">minimum</a> = 0.0; </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a4a6ba87142a9badbf0ca830e9e709cb7"> 54</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="structDecodeSignal.html#a4a6ba87142a9badbf0ca830e9e709cb7">maximum</a> = 0.0; </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a38eed9ca7581423fd8bfbedcffc12092"> 55</a></span> std::string <a class="code hl_variable" href="structDecodeSignal.html#a38eed9ca7581423fd8bfbedcffc12092">unit</a>; </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#abdbae62a64d2df716bf60c6b67b30eaa"> 56</a></span> std::vector&lt;std::string&gt; <a class="code hl_variable" href="structDecodeSignal.html#abdbae62a64d2df716bf60c6b67b30eaa">receivers</a>; </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a822155d9bf4ed5f3300c9e9befe606ff"> 57</a></span> ValueDescriptions <a class="code hl_variable" href="structDecodeSignal.html#a822155d9bf4ed5f3300c9e9befe606ff">valueDescriptions</a>; </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#ae28c905d4a2bc86419c2a8361bfea473"> 58</a></span> std::string <a class="code hl_variable" href="structDecodeSignal.html#ae28c905d4a2bc86419c2a8361bfea473">comment</a>; </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="structDecodeSignal.html#a204f65c7ea45a2c148f19c12d922f99b"> 60</a></span> AttributeMap <a class="code hl_variable" href="structDecodeSignal.html#a204f65c7ea45a2c148f19c12d922f99b">attributes</a>; </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_struct" href="structDecodeSignal.html">DecodeSignal</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>};</div>
</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="foldopen" id="foldopen00068" data-start="{" data-end="};">
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structDecodeFrame.html"> 68</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structDecodeFrame.html">DecodeFrame</a> {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#aa0a7f8fd5bfde2148dfd0d838328f579"> 69</a></span> std::string <a class="code hl_variable" href="structDecodeFrame.html#aa0a7f8fd5bfde2148dfd0d838328f579">name</a>; </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a52e10215388db7df8b541b9d9909edcf"> 70</a></span> std::uint32_t <a class="code hl_variable" href="structDecodeFrame.html#a52e10215388db7df8b541b9d9909edcf">canId</a> = 0U; </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a3ee2348d781f8f15aaf87e8dcf57ec41"> 71</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structDecodeFrame.html#a3ee2348d781f8f15aaf87e8dcf57ec41">isExtended</a> = <span class="keyword">false</span>; </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a51111ac13988be372d5673d12cf3e060"> 72</a></span> std::uint8_t <a class="code hl_variable" href="structDecodeFrame.html#a51111ac13988be372d5673d12cf3e060">dlc</a> = 0U; </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a1d3c54055c0cbceb73adf551f7067f23"> 73</a></span> std::uint32_t <a class="code hl_variable" href="structDecodeFrame.html#a1d3c54055c0cbceb73adf551f7067f23">pgn</a> = 0U; </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a2551102670c4a540fced4c71da0b369d"> 74</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structDecodeFrame.html#a2551102670c4a540fced4c71da0b369d">hasPgn</a> = <span class="keyword">false</span>; </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#ad78241dc40c793aabb8495b6989b81a9"> 75</a></span> std::string <a class="code hl_variable" href="structDecodeFrame.html#ad78241dc40c793aabb8495b6989b81a9">transmitter</a>; </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a25819ef907a32391af5c9f7cae9cdb22"> 76</a></span> std::string <a class="code hl_variable" href="structDecodeFrame.html#a25819ef907a32391af5c9f7cae9cdb22">comment</a>; </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a7f4e71bbdec3f424b625e724e3dfbf14"> 77</a></span> std::vector&lt;DecodeSignal&gt; signals; </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#ad506b03108a40df7e8005638c9c59653"> 79</a></span> AttributeMap <a class="code hl_variable" href="structDecodeFrame.html#ad506b03108a40df7e8005638c9c59653">attributes</a>; </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a475e669f390491a4d99383d3fee51300"> 80</a></span> std::optional&lt;std::string&gt; <a class="code hl_variable" href="structDecodeFrame.html#a475e669f390491a4d99383d3fee51300">frameFormat</a>; </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a732c2f6853d55ce8253db61207fc21d3"> 81</a></span> std::optional&lt;std::uint32_t&gt; <a class="code hl_variable" href="structDecodeFrame.html#a732c2f6853d55ce8253db61207fc21d3">cycleTimeMs</a>; </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_struct" href="structDecodeFrame.html">DecodeFrame</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structDecodeFrame.html#a05e3d1c6143367553c2c3beba82a5c34"> 86</a></span> <a class="code hl_struct" href="structFrameKey.html">FrameKey</a> <a class="code hl_function" href="structDecodeFrame.html#a05e3d1c6143367553c2c3beba82a5c34">GetKey</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> <a class="code hl_struct" href="structFrameKey.html">FrameKey</a>(<a class="code hl_variable" href="structDecodeFrame.html#a52e10215388db7df8b541b9d9909edcf">canId</a>, <a class="code hl_variable" href="structDecodeFrame.html#a3ee2348d781f8f15aaf87e8dcf57ec41">isExtended</a>);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>};</div>
</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="};">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structPgnLookupResult.html"> 92</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structPgnLookupResult.html">PgnLookupResult</a> {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="structPgnLookupResult.html#aa5b79b61d2aef48fd6ae070cf5f901c1"> 93</a></span> std::shared_ptr&lt;const DecodeFrame&gt; <a class="code hl_variable" href="structPgnLookupResult.html#aa5b79b61d2aef48fd6ae070cf5f901c1">definition</a>; </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="structPgnLookupResult.html#a6158833782348b3cc26037c2091fcc36"> 94</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="structPgnLookupResult.html#a6158833782348b3cc26037c2091fcc36">ambiguous</a> = <span class="keyword">false</span>; </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span>};</div>
</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="foldopen" id="foldopen00101" data-start="{" data-end="};">
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classDecodeDatabase.html"> 101</a></span><span class="keyword">class </span><a class="code hl_class" href="classDecodeDatabase.html">DecodeDatabase</a> {</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_class" href="classDecodeDatabase.html">DecodeDatabase</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classDecodeDatabase.html">DecodeDatabase</a>(<span class="keyword">const</span> std::vector&lt;DecodeFrame&gt; &amp;frames);</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">const</span> std::vector&lt;DecodeFrame&gt; &amp;<a class="code hl_function" href="classDecodeDatabase.html#aa034c1510984a85f60ad6c0bd744d6e8">GetFrames</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> std::shared_ptr&lt;const DecodeFrame&gt; <a class="code hl_function" href="classDecodeDatabase.html#a780d6e747a48b10a5eb0ab85448d2970">FindFrame</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structFrameKey.html">FrameKey</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_struct" href="structPgnLookupResult.html">PgnLookupResult</a> <a class="code hl_function" href="classDecodeDatabase.html#aa96b62b4f3fff68ab651674760f60d6d">FindFrameByPgn</a>(std::uint32_t pgn) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> std::shared_ptr&lt;const DecodeSignal&gt; <a class="code hl_function" href="classDecodeDatabase.html#a0af5b15b9953a4f6551c27ee9ae8b514">FindSignal</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structSignalKey.html">SignalKey</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">struct </span>Storage {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> std::vector&lt;DecodeFrame&gt; frames;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> std::unordered_map&lt;FrameKey, std::size_t, FrameKeyHasher&gt; frameIndexByKey;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> std::unordered_map&lt;std::uint32_t, std::vector&lt;std::size_t&gt;&gt; frameIndicesByPgn;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">explicit</span> Storage(<span class="keyword">const</span> std::vector&lt;DecodeFrame&gt; &amp;definitions);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> };</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> std::shared_ptr&lt;const Storage&gt; storage;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span>};</div>
</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span><span class="preprocessor">#endif </span><span class="comment">/* DECODE_DATABASE_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclassDecodeDatabase_html"><div class="ttname"><a href="classDecodeDatabase.html">DecodeDatabase</a></div><div class="ttdoc">Immutable runtime snapshot. Copies share storage; reload replaces a snapshot. Owning lookup handles a...</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00101">decode_database.h:101</a></div></div>
<div class="ttc" id="aclassDecodeDatabase_html_a0af5b15b9953a4f6551c27ee9ae8b514"><div class="ttname"><a href="classDecodeDatabase.html#a0af5b15b9953a4f6551c27ee9ae8b514">DecodeDatabase::FindSignal</a></div><div class="ttdeci">std::shared_ptr&lt; const DecodeSignal &gt; FindSignal(const SignalKey &amp;key) const</div><div class="ttdoc">Return an owning signal handle, or an empty handle for a missing key.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8cpp_source.html#l00146">decode_database.cpp:146</a></div></div>
<div class="ttc" id="aclassDecodeDatabase_html_a780d6e747a48b10a5eb0ab85448d2970"><div class="ttname"><a href="classDecodeDatabase.html#a780d6e747a48b10a5eb0ab85448d2970">DecodeDatabase::FindFrame</a></div><div class="ttdeci">std::shared_ptr&lt; const DecodeFrame &gt; FindFrame(const FrameKey &amp;key) const</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8cpp_source.html#l00120">decode_database.cpp:120</a></div></div>
<div class="ttc" id="aclassDecodeDatabase_html_aa034c1510984a85f60ad6c0bd744d6e8"><div class="ttname"><a href="classDecodeDatabase.html#aa034c1510984a85f60ad6c0bd744d6e8">DecodeDatabase::GetFrames</a></div><div class="ttdeci">const std::vector&lt; DecodeFrame &gt; &amp; GetFrames() const</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8cpp_source.html#l00115">decode_database.cpp:115</a></div></div>
<div class="ttc" id="aclassDecodeDatabase_html_aa96b62b4f3fff68ab651674760f60d6d"><div class="ttname"><a href="classDecodeDatabase.html#aa96b62b4f3fff68ab651674760f60d6d">DecodeDatabase::FindFrameByPgn</a></div><div class="ttdeci">PgnLookupResult FindFrameByPgn(std::uint32_t pgn) const</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8cpp_source.html#l00130">decode_database.cpp:130</a></div></div>
<div class="ttc" id="adecode__database_8h_html_aaeb92d42f5a6e27b8ba19f18d69d142b"><div class="ttname"><a href="decode__database_8h.html#aaeb92d42f5a6e27b8ba19f18d69d142b">ByteOrder</a></div><div class="ttdeci">ByteOrder</div><div class="ttdoc">Signal byte order used for runtime decoding.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00028">decode_database.h:28</a></div></div>
<div class="ttc" id="adecode__database_8h_html_ad9971b6ef33e02ba2c75d19c1d2518a1"><div class="ttname"><a href="decode__database_8h.html#ad9971b6ef33e02ba2c75d19c1d2518a1">ValueType</a></div><div class="ttdeci">ValueType</div><div class="ttdoc">Signal numeric type.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00036">decode_database.h:36</a></div></div>
<div class="ttc" id="astructDecodeFrame_html"><div class="ttname"><a href="structDecodeFrame.html">DecodeFrame</a></div><div class="ttdoc">Runtime-ready frame definition.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00068">decode_database.h:68</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a05e3d1c6143367553c2c3beba82a5c34"><div class="ttname"><a href="structDecodeFrame.html#a05e3d1c6143367553c2c3beba82a5c34">DecodeFrame::GetKey</a></div><div class="ttdeci">FrameKey GetKey() const</div><div class="ttdoc">Return the stable normalized frame identifier.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00086">decode_database.h:86</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a1d3c54055c0cbceb73adf551f7067f23"><div class="ttname"><a href="structDecodeFrame.html#a1d3c54055c0cbceb73adf551f7067f23">DecodeFrame::pgn</a></div><div class="ttdeci">std::uint32_t pgn</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00073">decode_database.h:73</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a2551102670c4a540fced4c71da0b369d"><div class="ttname"><a href="structDecodeFrame.html#a2551102670c4a540fced4c71da0b369d">DecodeFrame::hasPgn</a></div><div class="ttdeci">bool hasPgn</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00074">decode_database.h:74</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a25819ef907a32391af5c9f7cae9cdb22"><div class="ttname"><a href="structDecodeFrame.html#a25819ef907a32391af5c9f7cae9cdb22">DecodeFrame::comment</a></div><div class="ttdeci">std::string comment</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00076">decode_database.h:76</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a3ee2348d781f8f15aaf87e8dcf57ec41"><div class="ttname"><a href="structDecodeFrame.html#a3ee2348d781f8f15aaf87e8dcf57ec41">DecodeFrame::isExtended</a></div><div class="ttdeci">bool isExtended</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00071">decode_database.h:71</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a475e669f390491a4d99383d3fee51300"><div class="ttname"><a href="structDecodeFrame.html#a475e669f390491a4d99383d3fee51300">DecodeFrame::frameFormat</a></div><div class="ttdeci">std::optional&lt; std::string &gt; frameFormat</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00080">decode_database.h:80</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a51111ac13988be372d5673d12cf3e060"><div class="ttname"><a href="structDecodeFrame.html#a51111ac13988be372d5673d12cf3e060">DecodeFrame::dlc</a></div><div class="ttdeci">std::uint8_t dlc</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00072">decode_database.h:72</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a52e10215388db7df8b541b9d9909edcf"><div class="ttname"><a href="structDecodeFrame.html#a52e10215388db7df8b541b9d9909edcf">DecodeFrame::canId</a></div><div class="ttdeci">std::uint32_t canId</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00070">decode_database.h:70</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_a732c2f6853d55ce8253db61207fc21d3"><div class="ttname"><a href="structDecodeFrame.html#a732c2f6853d55ce8253db61207fc21d3">DecodeFrame::cycleTimeMs</a></div><div class="ttdeci">std::optional&lt; std::uint32_t &gt; cycleTimeMs</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00081">decode_database.h:81</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_aa0a7f8fd5bfde2148dfd0d838328f579"><div class="ttname"><a href="structDecodeFrame.html#aa0a7f8fd5bfde2148dfd0d838328f579">DecodeFrame::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00069">decode_database.h:69</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_ad506b03108a40df7e8005638c9c59653"><div class="ttname"><a href="structDecodeFrame.html#ad506b03108a40df7e8005638c9c59653">DecodeFrame::attributes</a></div><div class="ttdeci">AttributeMap attributes</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00079">decode_database.h:79</a></div></div>
<div class="ttc" id="astructDecodeFrame_html_ad78241dc40c793aabb8495b6989b81a9"><div class="ttname"><a href="structDecodeFrame.html#ad78241dc40c793aabb8495b6989b81a9">DecodeFrame::transmitter</a></div><div class="ttdeci">std::string transmitter</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00075">decode_database.h:75</a></div></div>
<div class="ttc" id="astructDecodeSignal_html"><div class="ttname"><a href="structDecodeSignal.html">DecodeSignal</a></div><div class="ttdoc">Runtime-ready signal definition.</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00044">decode_database.h:44</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a0fb84e19a0ab3bd50b6f65c1075ebc25"><div class="ttname"><a href="structDecodeSignal.html#a0fb84e19a0ab3bd50b6f65c1075ebc25">DecodeSignal::minimum</a></div><div class="ttdeci">double minimum</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00053">decode_database.h:53</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a204f65c7ea45a2c148f19c12d922f99b"><div class="ttname"><a href="structDecodeSignal.html#a204f65c7ea45a2c148f19c12d922f99b">DecodeSignal::attributes</a></div><div class="ttdeci">AttributeMap attributes</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00060">decode_database.h:60</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a38eed9ca7581423fd8bfbedcffc12092"><div class="ttname"><a href="structDecodeSignal.html#a38eed9ca7581423fd8bfbedcffc12092">DecodeSignal::unit</a></div><div class="ttdeci">std::string unit</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00055">decode_database.h:55</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a428c39913a366a8476dd291061354391"><div class="ttname"><a href="structDecodeSignal.html#a428c39913a366a8476dd291061354391">DecodeSignal::factor</a></div><div class="ttdeci">double factor</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00051">decode_database.h:51</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a4a6ba87142a9badbf0ca830e9e709cb7"><div class="ttname"><a href="structDecodeSignal.html#a4a6ba87142a9badbf0ca830e9e709cb7">DecodeSignal::maximum</a></div><div class="ttdeci">double maximum</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00054">decode_database.h:54</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a58cf5844f2272a23dcb9687d912e4780"><div class="ttname"><a href="structDecodeSignal.html#a58cf5844f2272a23dcb9687d912e4780">DecodeSignal::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00046">decode_database.h:46</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a822155d9bf4ed5f3300c9e9befe606ff"><div class="ttname"><a href="structDecodeSignal.html#a822155d9bf4ed5f3300c9e9befe606ff">DecodeSignal::valueDescriptions</a></div><div class="ttdeci">ValueDescriptions valueDescriptions</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00057">decode_database.h:57</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a92db637af4e224a0ae70173050dc3f74"><div class="ttname"><a href="structDecodeSignal.html#a92db637af4e224a0ae70173050dc3f74">DecodeSignal::offset</a></div><div class="ttdeci">double offset</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00052">decode_database.h:52</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_a9d37638129263b8902ba5be59baf39a8"><div class="ttname"><a href="structDecodeSignal.html#a9d37638129263b8902ba5be59baf39a8">DecodeSignal::valueType</a></div><div class="ttdeci">ValueType valueType</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00050">decode_database.h:50</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_aaf5d7527ddf65b6355c2b4f3626df22d"><div class="ttname"><a href="structDecodeSignal.html#aaf5d7527ddf65b6355c2b4f3626df22d">DecodeSignal::startBit</a></div><div class="ttdeci">std::uint32_t startBit</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00047">decode_database.h:47</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_abdbae62a64d2df716bf60c6b67b30eaa"><div class="ttname"><a href="structDecodeSignal.html#abdbae62a64d2df716bf60c6b67b30eaa">DecodeSignal::receivers</a></div><div class="ttdeci">std::vector&lt; std::string &gt; receivers</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00056">decode_database.h:56</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_abdc4c4bb4a67a6d61d6ca81e8a52833d"><div class="ttname"><a href="structDecodeSignal.html#abdc4c4bb4a67a6d61d6ca81e8a52833d">DecodeSignal::byteOrder</a></div><div class="ttdeci">ByteOrder byteOrder</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00049">decode_database.h:49</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_acd4ef5ee30421d117b5756854302debb"><div class="ttname"><a href="structDecodeSignal.html#acd4ef5ee30421d117b5756854302debb">DecodeSignal::length</a></div><div class="ttdeci">std::uint32_t length</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00048">decode_database.h:48</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_ae28c905d4a2bc86419c2a8361bfea473"><div class="ttname"><a href="structDecodeSignal.html#ae28c905d4a2bc86419c2a8361bfea473">DecodeSignal::comment</a></div><div class="ttdeci">std::string comment</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00058">decode_database.h:58</a></div></div>
<div class="ttc" id="astructDecodeSignal_html_aea41c055cb255fe7bd178ed5727f28c9"><div class="ttname"><a href="structDecodeSignal.html#aea41c055cb255fe7bd178ed5727f28c9">DecodeSignal::multiplexing</a></div><div class="ttdeci">Multiplexing multiplexing</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00045">decode_database.h:45</a></div></div>
<div class="ttc" id="astructFrameKey_html"><div class="ttname"><a href="structFrameKey.html">FrameKey</a></div><div class="ttdoc">Stable frame identifier: normalized CAN ID and frame type.</div><div class="ttdef"><b>Definition</b> <a href="definition__key_8h_source.html#l00015">definition_key.h:15</a></div></div>
<div class="ttc" id="astructMultiplexing_html"><div class="ttname"><a href="structMultiplexing.html">Multiplexing</a></div><div class="ttdef"><b>Definition</b> <a href="multiplexing_8h_source.html#l00015">multiplexing.h:15</a></div></div>
<div class="ttc" id="astructPgnLookupResult_html"><div class="ttname"><a href="structPgnLookupResult.html">PgnLookupResult</a></div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00092">decode_database.h:92</a></div></div>
<div class="ttc" id="astructPgnLookupResult_html_a6158833782348b3cc26037c2091fcc36"><div class="ttname"><a href="structPgnLookupResult.html#a6158833782348b3cc26037c2091fcc36">PgnLookupResult::ambiguous</a></div><div class="ttdeci">bool ambiguous</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00094">decode_database.h:94</a></div></div>
<div class="ttc" id="astructPgnLookupResult_html_aa5b79b61d2aef48fd6ae070cf5f901c1"><div class="ttname"><a href="structPgnLookupResult.html#aa5b79b61d2aef48fd6ae070cf5f901c1">PgnLookupResult::definition</a></div><div class="ttdeci">std::shared_ptr&lt; const DecodeFrame &gt; definition</div><div class="ttdef"><b>Definition</b> <a href="decode__database_8h_source.html#l00093">decode_database.h:93</a></div></div>
<div class="ttc" id="astructSignalKey_html"><div class="ttname"><a href="structSignalKey.html">SignalKey</a></div><div class="ttdef"><b>Definition</b> <a href="definition__key_8h_source.html#l00045">definition_key.h:45</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_4270bfced15e0e73154b13468c7c9ad9.html">core</a></li><li class="navelem"><a class="el" href="decode__database_8h.html">decode_database.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
</ul>
</div>
</body>
</html>