<div dir="ltr">Hi dyao & Spyros<div><br></div><div>Declaring a <b>tag</b> with <font face="monospace, monospace">double</font> type should work.</div><div>However, declaring an <b>LpHeader</b> with <font face="monospace, monospace">double</font> type needs additional work.</div><div><br></div><div>LpPacket only knows how to <a href="https://github.com/named-data/ndn-cxx/blob/09bcab5bb80f655fd75271440c6cce03147fcb45/src/lp/detail/field-decl.hpp#L49-L57">decode</a> and <a href="https://github.com/named-data/ndn-cxx/blob/09bcab5bb80f655fd75271440c6cce03147fcb45/src/lp/detail/field-decl.hpp#L84-L92">encode</a> uint64_t, in addition to WireDecodable+WireEncodable and Buffer iterator range.</div><div>You'll need to specialize DecodeHelper and EncodeHelper for <font face="monospace, monospace">double</font> type, which involves defining the wire format for <font face="monospace, monospace">double</font> type.</div><div><br></div><div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 8, 2017 at 6:34 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">You tried to declare your tag like I did here, but instead of uint64_t to use a double type and it did not work?<div><br></div><div><a href="https://github.com/named-data-ndnSIM/ndn-cxx/commit/e53204419c51356dab70e0e5450ff5dcf587827a" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndn-cxx/commit/<wbr>e53204419c51356dab70e0e5450ff5<wbr>dcf587827a</a></div><div><br></div><div><span class="gmail-"><div>
<div><div><div><span style="float:none;display:inline">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline">Internet Research Laboratory</span><br><span style="float:none;display:inline">Computer Science Department</span><br><span style="float:none;display:inline">UCLA</span></div><div><br></div></div></div></div></span></div></div></blockquote></div></div></div></div>