A Discrete-Event Network Simulator
anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper Class Reference

StringValue formatting example test helper class. More...

+ Collaboration diagram for anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper:

Public Member Functions

 FormattingTestObjectHelper ()
 Default constructor. More...
Ptr< ObjectCreateFromFactory (void)
 Create an Object as configured by SetAttribute. More...
void SetAttribute (std::string name, const AttributeValue &value)
 Set an attribute by name. More...

Private Attributes

ObjectFactory m_factory
 Object factory. More...

Detailed Description

StringValue formatting example test helper class.

Definition at line 98 of file test-string-value-formatting.cc.

Constructor & Destructor Documentation

◆ FormattingTestObjectHelper()

anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper::FormattingTestObjectHelper ( )

Default constructor.

Definition at line 119 of file test-string-value-formatting.cc.

References ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

Member Function Documentation

◆ CreateFromFactory()

Ptr< Object > anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper::CreateFromFactory ( void  )

Create an Object as configured by SetAttribute.

the newly created Object

Definition at line 131 of file test-string-value-formatting.cc.

◆ SetAttribute()

void anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper::SetAttribute ( std::string  name,
const AttributeValue value 

Set an attribute by name.

namethe attribute
valuethe attribute value

Definition at line 125 of file test-string-value-formatting.cc.

Member Data Documentation

◆ m_factory

ObjectFactory anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObjectHelper::m_factory

Object factory.

Definition at line 116 of file test-string-value-formatting.cc.

The documentation for this class was generated from the following file: