75 bool ok = v->DeserializeFromString (str->
Get (),
this);
96 return Create<EmptyAttributeValue> ();
165 return "EmptyAttribute";
NS_FATAL_x macro definitions.
Represent the type of an attribute.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
std::string Get(void) const
Hold variables of type string.
String attribute value declarations.
Hold a value for an Attribute.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual bool DeserializeFromString(std::string value, Ptr< const AttributeChecker > checker)
virtual std::string GetValueTypeName(void) const
Anchor the ns-3 type and attribute system.
virtual bool Get(const ObjectBase *object, AttributeValue &attribute) const
virtual bool Check(const AttributeValue &value) const
virtual std::string GetUnderlyingTypeInformation(void) const
EmptyAttributeValue()
Default constructor.
A class for an empty attribute value.
virtual ~AttributeAccessor()
Ptr< AttributeValue > CreateValidValue(const AttributeValue &value) const
Create a valid value from the argument value, or reinterpret the argument as a string.
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations.
virtual std::string SerializeToString(Ptr< const AttributeChecker > checker) const
allow setting and getting the value of an attribute.
virtual ~AttributeValue()
virtual Ptr< AttributeValue > Copy(void) const =0
virtual Ptr< AttributeValue > Create(void) const
virtual bool Copy(const AttributeValue &source, AttributeValue &destination) const
Copy the source to the destination.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool Set(ObjectBase *object, const AttributeValue &value) const
virtual Ptr< AttributeValue > Create(void) const =0
virtual bool HasSetter(void) const
virtual ~AttributeChecker()
~EmptyAttributeAccessor()
virtual bool HasUnderlyingTypeInformation(void) const
virtual bool Check(const AttributeValue &value) const =0
virtual bool HasGetter(void) const
virtual Ptr< AttributeValue > Copy(void) const