<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.nsnam.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=HOWTO_determine_all_the_available_Values</id>
	<title>HOWTO determine all the available Values - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.nsnam.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=HOWTO_determine_all_the_available_Values"/>
	<link rel="alternate" type="text/html" href="https://www.nsnam.org/mediawiki/index.php?title=HOWTO_determine_all_the_available_Values&amp;action=history"/>
	<updated>2026-05-04T12:00:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.nsnam.org/mediawiki/index.php?title=HOWTO_determine_all_the_available_Values&amp;diff=4485&amp;oldid=prev</id>
		<title>Fax: Created page with '{{TOC}}  == HOWTO determine all the available Values == Let us suppose you want to create an attribute for some object. Once you decide the type of the attribute (eg. unsigned in…'</title>
		<link rel="alternate" type="text/html" href="https://www.nsnam.org/mediawiki/index.php?title=HOWTO_determine_all_the_available_Values&amp;diff=4485&amp;oldid=prev"/>
		<updated>2010-06-07T09:36:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{TOC}}  == HOWTO determine all the available Values == Let us suppose you want to create an attribute for some object. Once you decide the type of the attribute (eg. unsigned in…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOC}}&lt;br /&gt;
&lt;br /&gt;
== HOWTO determine all the available Values ==&lt;br /&gt;
Let us suppose you want to create an attribute for some object.&lt;br /&gt;
Once you decide the type of the attribute (eg. unsigned integer, Time value, ...), you will need to specify an appropriate constructor and an appropriate checker.&lt;br /&gt;
&lt;br /&gt;
For instance, the following is an excerpt from the PacketSink object:&lt;br /&gt;
    .AddAttribute (&amp;quot;Local&amp;quot;, &amp;quot;The Address on which to Bind the rx socket.&amp;quot;,&lt;br /&gt;
                   AddressValue (),&lt;br /&gt;
                   MakeAddressAccessor (&amp;amp;VoipPacketSink::m_local),&lt;br /&gt;
                   MakeAddressChecker ())&lt;br /&gt;
&lt;br /&gt;
As a consequence you may want to check if the value you have in mind has already been defined.&lt;br /&gt;
You can retrieve the list of all available values, by just giving the following command (YMMV):&lt;br /&gt;
    egrep -A3 -RIe 'AddAttribute' src/ | egrep '.Value \(' | sed 's/\(Value\)\(.*$\)/\1/g' | rev | awk '{print $1}' | rev | sort -u&lt;/div&gt;</summary>
		<author><name>Fax</name></author>
	</entry>
</feed>