A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
Ptr< ObjectCreateFromFactory ()
 Create an Object as configured by SetAttribute.
void SetAttribute (std::string name, const AttributeValue &value)
 Set an attribute by name.

Private Attributes

ObjectFactory m_factory
 Object factory.

Detailed Description

StringValue formatting example test helper class.

Definition at line 89 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 110 of file test-string-value-formatting.cc.

References anonymous_namespace{test-string-value-formatting.cc}::FormattingTestObject::GetTypeId(), and m_factory.

Here is the call graph for this function:

Member Function Documentation

◆ CreateFromFactory()

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

Create an Object as configured by SetAttribute.

Returns
the newly created Object

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

References m_factory.

◆ SetAttribute()

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

Set an attribute by name.

Parameters
namethe attribute
valuethe attribute value

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

References m_factory.

Member Data Documentation

◆ m_factory

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

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