Bug 1234 - GetAttributeChecker is not defined anymore but still used
GetAttributeChecker is not defined anymore but still used
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: general
pre-release
All All
: P5 blocker
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-04 15:38 UTC by John Abraham
Modified: 2011-08-04 16:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Abraham 2011-08-04 15:38:49 UTC
The buildbots are reporting the following error

../src/config-store/model/display-functions.cc: In function 'gboolean ns3::cell_tooltip_callback(GtkWidget*, gint, gint, gboolean, GtkTooltip*, void*)':
../src/config-store/model/display-functions.cc:184: error: 'class ns3::TypeId' has no member named 'GetAttributeName'
../src/config-store/model/display-functions.cc:193: error: 'class ns3::TypeId' has no member named 'GetAttributeHelp'
../src/config-store/model/display-functions.cc:198: error: 'class ns3::TypeId' has no member named 'GetAttributeChecker'
../src/config-store/model/display-functions.cc: In function 'gboolean ns3::cell_tooltip_callback_config_default(GtkWidget*, gint, gint, gboolean, GtkTooltip*, void*)':
../src/config-store/model/display-functions.cc:458: error: 'class ns3::TypeId' has no member named 'GetAttributeHelp'
../src/config-store/model/display-functions.cc:463: error: 'class ns3::TypeId' has no member named 'GetAttributeChecker'
Comment 1 Mathieu Lacage 2011-08-04 16:05:39 UTC
You just need to change calls to GetAttributeChecker with a call to TypeId::GetAttribute and dereference the checker field of the returned struct.
Comment 2 Mathieu Lacage 2011-08-04 16:07:05 UTC
changeset: c7bd6a148b5a

I can't test this fix since I obviously don't have a gtk-enabled build machine: I hope that you can check it and adjust the code if needed.