<div dir="ltr">Hi All,<div>*update*</div><div><br></div><div>I got it to work. I was actually using an old version of the content implementation code.</div><div><br></div><div>Thanks! </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 3:16 PM, jennifer kulnu <span dir="ltr"><<a href="mailto:jenniferkulnu@gmail.com" target="_blank">jenniferkulnu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>So, Im quite new to ndnsim and have been trying out the example custom caching policy as given in the demo ppt.</div><div><br></div><div>So far I have </div><div><br></div><div>- placed the policy traits, example_policy.h into scenario/extensions/ folder</div><div><br></div><div>- placed the content store implementation of the policy cs-with-example-policy.cc(code exactly as given in the ppt) in the same folder, ie, scenario/extensions/ folder</div><div><br></div><div>- have added the following lines into src/ndnSIM/model/cs/content-<wbr>store-impl.cpp</div><div><br></div><div>template class ContentStoreImpl<example_<wbr>policy_traits></div><div>NS_OBJECT_ENSURE_REGISTERED_<wbr>TEMP(ContentStoreImpl,example_<wbr>policy_traits);</div><div><br></div><div><br></div><div>- and finally in my simulation scenario, i refer to this policy using</div><div><br></div><div>ndnHelper.setOldContentStore("<wbr>ns3::ndn::cs::Example");</div><div><br></div><div>But when I run this scenario, it just throws up a bunch of errors.</div><div>Am I missing some steps?,Where could I have gone wrong?</div><div><br></div><div>Sorry if my problem is too obvious, I'am a beginner here.</div><div><br></div><div>Thank you! </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div>