|
|
| 610 |
{ |
610 |
{ |
| 611 |
NS_LOG_FUNCTION (this << uid << name << help << flags << initialValue << accessor << checker); |
611 |
NS_LOG_FUNCTION (this << uid << name << help << flags << initialValue << accessor << checker); |
| 612 |
struct IidInformation *information = LookupInformation (uid); |
612 |
struct IidInformation *information = LookupInformation (uid); |
|
|
613 |
if (name.find (' ') != std::string::npos) |
| 614 |
{ |
| 615 |
NS_FATAL_ERROR ("Attribute name \"" << name << "\" may not contain spaces ' ', " |
| 616 |
<< "encountered when registering TypeId \"" |
| 617 |
<< information->name << "\""); |
| 618 |
} |
| 613 |
if (HasAttribute (uid, name)) |
619 |
if (HasAttribute (uid, name)) |
| 614 |
{ |
620 |
{ |
| 615 |
NS_FATAL_ERROR ("Attribute \"" << name << "\" already registered on tid=\"" << |
621 |
NS_FATAL_ERROR ("Attribute \"" << name << "\" already registered on tid=\"" << |