PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::blocks::ModuleDiffBlock Struct Reference

Parsed ModuleDiffBlock (0x8104). More...

#include <blocks.h>

+ Collaboration diagram for profinet::blocks::ModuleDiffBlock:

Public Member Functions

bool AllOk () const
 Whether every module and submodule matches the expected configuration.
 
std::vector< std::tuple< std::uint16_t, std::uint16_t, std::string > > GetMismatches () const
 List every non-OK module/submodule.
 
bool operator== (const ModuleDiffBlock &) const =default
 Compares two ModuleDiffBlock for equality.
 

Public Attributes

std::vector< ModuleDiffModule > modules
 Modules described by this block.
 

Detailed Description

Parsed ModuleDiffBlock (0x8104).

Definition at line 414 of file blocks.h.

Member Function Documentation

◆ AllOk()

bool profinet::blocks::ModuleDiffBlock::AllOk ( ) const

Whether every module and submodule matches the expected configuration.

Returns
True if all modules are IsProper() and all submodules are IsOk().

Definition at line 570 of file blocks.cpp.

References modules.

Referenced by TEST_F().

+ Here is the caller graph for this function:

◆ GetMismatches()

std::vector< std::tuple< std::uint16_t, std::uint16_t, std::string > > profinet::blocks::ModuleDiffBlock::GetMismatches ( ) const

List every non-OK module/submodule.

Returns
(slot, subslot, state name) tuples; subslot is 0 for a module-level (not submodule-level) mismatch.

Definition at line 589 of file blocks.cpp.

References modules.

Referenced by TEST_F().

+ Here is the caller graph for this function:

◆ operator==()

bool profinet::blocks::ModuleDiffBlock::operator== ( const ModuleDiffBlock &  ) const
default

Compares two ModuleDiffBlock for equality.

Two ModuleDiffBlock are equal when all scalar configuration fields are equal.

Member Data Documentation

◆ modules

std::vector<ModuleDiffModule> profinet::blocks::ModuleDiffBlock::modules

Modules described by this block.

Definition at line 417 of file blocks.h.

Referenced by AllOk(), GetMismatches(), and TEST_F().


The documentation for this struct was generated from the following files: