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