Public Member Functions | |
NscStackStringAccessor (std::string name) | |
virtual bool | Set (ObjectBase *object, const AttributeValue &val) const |
virtual bool | Get (const ObjectBase *object, AttributeValue &val) const |
virtual bool | HasGetter (void) const |
virtual bool | HasSetter (void) const |
Private Attributes | |
std::string | m_name |
Definition at line 25 of file nsc-sysctl.cc.
ns3::NscStackStringAccessor::NscStackStringAccessor | ( | std::string | name | ) | [inline] |
Definition at line 25 of file nsc-sysctl.cc.
bool ns3::NscStackStringAccessor::Get | ( | const ObjectBase * | object, | |
AttributeValue & | attribute | |||
) | const [virtual] |
object | the object instance to get the value from | |
attribute | a pointer to where the value should be set. |
This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.
Implements ns3::AttributeAccessor.
Definition at line 65 of file nsc-sysctl.cc.
References ns3::Ns3NscStack::Get(), m_name, and ns3::StringValue::Set().
bool ns3::NscStackStringAccessor::HasGetter | ( | void | ) | const [virtual] |
Implements ns3::AttributeAccessor.
Definition at line 38 of file nsc-sysctl.cc.
bool ns3::NscStackStringAccessor::HasSetter | ( | void | ) | const [virtual] |
Implements ns3::AttributeAccessor.
Definition at line 43 of file nsc-sysctl.cc.
bool ns3::NscStackStringAccessor::Set | ( | ObjectBase * | object, | |
const AttributeValue & | value | |||
) | const [virtual] |
object | the object instance to set the value in | |
value | the value to set |
This method expects that the caller has checked that the input value is valid with AttributeChecker::Check.
Implements ns3::AttributeAccessor.
Definition at line 49 of file nsc-sysctl.cc.
References ns3::StringValue::Get(), m_name, and ns3::Ns3NscStack::Set().
Referenced by NscStackStringAccessor().
std::string ns3::NscStackStringAccessor::m_name [private] |
Definition at line 32 of file nsc-sysctl.cc.
Referenced by Get(), NscStackStringAccessor(), and Set().