INET Framework for OMNeT++/OMNEST
inet::Ipv4NetworkLayer Class Reference

#include <Ipv4NetworkLayer.h>

Inheritance diagram for inet::Ipv4NetworkLayer:
inet::StringFormat::IDirectiveResolver

Protected Member Functions

virtual void refreshDisplay () const override
 
virtual void updateDisplayString () const
 
virtual const char * resolveDirective (char directive) const override
 

Additional Inherited Members

Member Function Documentation

◆ refreshDisplay()

void inet::Ipv4NetworkLayer::refreshDisplay ( ) const
overrideprotectedvirtual
17 {
19 }

◆ resolveDirective()

const char * inet::Ipv4NetworkLayer::resolveDirective ( char  directive) const
overrideprotectedvirtual

Implements inet::StringFormat::IDirectiveResolver.

30 {
31  static std::string result;
32  switch (directive) {
33  case 'i':
34  result = getSubmodule("ip")->getDisplayString().getTagArg("t", 0);
35  break;
36  default:
37  throw cRuntimeError("Unknown directive: %c", directive);
38  }
39  return result.c_str();
40 }

◆ updateDisplayString()

void inet::Ipv4NetworkLayer::updateDisplayString ( ) const
protectedvirtual
22 {
23  if (getEnvir()->isGUI()) {
24  auto text = StringFormat::formatString(par("displayStringTextFormat"), this);
25  getDisplayString().setTagArg("t", 0, text);
26  }
27 }

Referenced by refreshDisplay().


The documentation for this class was generated from the following files:
inet::Ipv4NetworkLayer::updateDisplayString
virtual void updateDisplayString() const
Definition: Ipv4NetworkLayer.cc:21
inet::StringFormat::formatString
const char * formatString(IDirectiveResolver *resolver) const
Definition: StringFormat.cc:17