<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="display: none;"><!--P {margin-top:0;margin-bottom:0;}--></style>
</head>
<body dir="ltr" fpstyle="1" aria-label="Message body" tabindex="0">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
<p>Hi Alex,</p>
<p><br>
</p>
<p>It terminates without anything once I click the simulate button. </p>
<p>I will try with the debugger as well.</p>
<p><br>
</p>
<p>Could you suggest me a way to declare this kind of variable which could be accessed in both forwadingStrategy class and in an application.</p>
<p><br>
</p>
<p>Many Thanks,</p>
<p>Isuru</p>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Alexander Afanasyev <cawka1@gmail.com> on behalf of Alex Afanasyev <alexander.afanasyev@ucla.edu><br>
<b>Sent:</b> 16 December 2013 19:26<br>
<b>To:</b> Liyanage IU Mr (PG/R - Electronic Eng)<br>
<b>Cc:</b> ndnsim<br>
<b>Subject:</b> Re: [ndnSIM] declaring a variable in ndn-forwarding-strategy</font>
<div> </div>
</div>
<div>
<div>Is it just terminates without any output or terminates with an error?</div>
<div><br>
</div>
<div>If it is an error, then try to run in a debugger, so you can see what exactly is causing the error.  For example,</div>
<div><br>
</div>
<div>./waf --run <scenario> --command-template 'gdb --args %s'</div>
<div><br>
</div>
<div>---</div>
<div>Alex</div>
<br>
<div>
<div>On Dec 15, 2013, at 10:17 AM, <<a href="mailto:i.liyanage@surrey.ac.uk">i.liyanage@surrey.ac.uk</a>> <<a href="mailto:i.liyanage@surrey.ac.uk">i.liyanage@surrey.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr" tabindex="0" style="font-family:Menlo-Regular; font-size:14px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; margin:0px">
Hi,
<div><br>
</div>
<div>In ndn-forwading-strategy.h, I declared variable.</div>
<div><font color="#808080">std::set<Name>  m_allowCS;</font></div>
<div><br>
</div>
<div>and tried to access in one of the applications by following code</div>
<div>
<div><font color="#808080">Ptr<ForwardingStrategy> forwardingstat = GetNode()->GetObject<ForwardingStrategy>();</font></div>
<div><font color="#808080">Ptr<Name> inName = Create<ndn::Name> ("/prefix");</font></div>
<div><font color="#808080">forwardingstat->m_allowCS.insert(*inName);</font></div>
</div>
<div><br>
</div>
<div>This compiles fine.</div>
<div>but once I run this, simulator exit without any output. Could you point out what's wrong.</div>
<div><br>
</div>
<div>Many Thanks,</div>
<div>Isuru</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>