PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::IndicesTest Class Reference
+ Inheritance diagram for profinet::IndicesTest:
+ Collaboration diagram for profinet::IndicesTest:

Protected Member Functions

void ExpectBlockTypeNames (const std::vector< std::pair< BlockType, std::string > > &values)
 Verifies that every supplied BlockType resolves to its expected name.
 
void ExpectAlarmTypeNames (const std::vector< std::pair< AlarmType, std::string > > &values)
 Verifies that every supplied AlarmType resolves to its expected name.
 
void ExpectIocrTypeNames (const std::vector< std::pair< IocrType, std::string > > &values)
 Verifies that every supplied IocrType resolves to its expected name.
 
void ExpectIocrRtClassNames (const std::vector< std::pair< IocrRtClass, std::string > > &values)
 Verifies that every supplied IocrRtClass resolves to its expected name.
 
void ExpectUsiNames (const std::vector< std::pair< Usi, std::string > > &values)
 Verifies that every supplied USI resolves to its expected name.
 
void ExpectIndexNames (const std::vector< std::pair< std::uint16_t, std::string > > &values)
 Verifies that every supplied index resolves to its expected name.
 
void ExpectScopes (const std::vector< std::pair< std::uint16_t, std::string > > &values)
 Verifies that every supplied index resolves to its expected scope.
 
void ExpectModuleStates (const std::vector< std::pair< std::uint16_t, std::string > > &values)
 Verifies that every supplied state value resolves to its expected name.
 
void ExpectSubmoduleStates (const std::vector< std::pair< std::uint16_t, std::string > > &values)
 Verifies that every supplied submodule state value resolves to its expected name.
 
void ExpectPeModes (const std::vector< std::pair< std::uint8_t, std::string > > &values)
 Verifies that every supplied PROFIenergy mode resolves to its expected name.
 
void ExpectIndexTable (const IndexNamePairs &actual, const IndexNamePairs &expected)
 Verifies that an index table contains exactly the supplied entries.
 

Detailed Description

Definition at line 25 of file test_indices.cpp.

Member Function Documentation

◆ ExpectAlarmTypeNames()

void profinet::IndicesTest::ExpectAlarmTypeNames ( const std::vector< std::pair< AlarmType, std::string > > &  values)
inlineprotected

Verifies that every supplied AlarmType resolves to its expected name.

Definition at line 38 of file test_indices.cpp.

References profinet::GetAlarmTypeName().

+ Here is the call graph for this function:

◆ ExpectBlockTypeNames()

void profinet::IndicesTest::ExpectBlockTypeNames ( const std::vector< std::pair< BlockType, std::string > > &  values)
inlineprotected

Verifies that every supplied BlockType resolves to its expected name.

Definition at line 29 of file test_indices.cpp.

References profinet::GetBlockTypeName().

+ Here is the call graph for this function:

◆ ExpectIndexNames()

void profinet::IndicesTest::ExpectIndexNames ( const std::vector< std::pair< std::uint16_t, std::string > > &  values)
inlineprotected

Verifies that every supplied index resolves to its expected name.

Definition at line 74 of file test_indices.cpp.

References profinet::GetIndexName().

+ Here is the call graph for this function:

◆ ExpectIndexTable()

void profinet::IndicesTest::ExpectIndexTable ( const IndexNamePairs &  actual,
const IndexNamePairs &  expected 
)
inlineprotected

Verifies that an index table contains exactly the supplied entries.

Definition at line 119 of file test_indices.cpp.

◆ ExpectIocrRtClassNames()

void profinet::IndicesTest::ExpectIocrRtClassNames ( const std::vector< std::pair< IocrRtClass, std::string > > &  values)
inlineprotected

Verifies that every supplied IocrRtClass resolves to its expected name.

Definition at line 56 of file test_indices.cpp.

References profinet::GetIocrRtClassName().

+ Here is the call graph for this function:

◆ ExpectIocrTypeNames()

void profinet::IndicesTest::ExpectIocrTypeNames ( const std::vector< std::pair< IocrType, std::string > > &  values)
inlineprotected

Verifies that every supplied IocrType resolves to its expected name.

Definition at line 47 of file test_indices.cpp.

References profinet::GetIocrTypeName().

+ Here is the call graph for this function:

◆ ExpectModuleStates()

void profinet::IndicesTest::ExpectModuleStates ( const std::vector< std::pair< std::uint16_t, std::string > > &  values)
inlineprotected

Verifies that every supplied state value resolves to its expected name.

Definition at line 92 of file test_indices.cpp.

References profinet::GetModuleStateName().

+ Here is the call graph for this function:

◆ ExpectPeModes()

void profinet::IndicesTest::ExpectPeModes ( const std::vector< std::pair< std::uint8_t, std::string > > &  values)
inlineprotected

Verifies that every supplied PROFIenergy mode resolves to its expected name.

Definition at line 110 of file test_indices.cpp.

References profinet::GetPeModeName().

+ Here is the call graph for this function:

◆ ExpectScopes()

void profinet::IndicesTest::ExpectScopes ( const std::vector< std::pair< std::uint16_t, std::string > > &  values)
inlineprotected

Verifies that every supplied index resolves to its expected scope.

Definition at line 83 of file test_indices.cpp.

References profinet::GetScope().

+ Here is the call graph for this function:

◆ ExpectSubmoduleStates()

void profinet::IndicesTest::ExpectSubmoduleStates ( const std::vector< std::pair< std::uint16_t, std::string > > &  values)
inlineprotected

Verifies that every supplied submodule state value resolves to its expected name.

Definition at line 101 of file test_indices.cpp.

References profinet::GetSubmoduleStateName().

+ Here is the call graph for this function:

◆ ExpectUsiNames()

void profinet::IndicesTest::ExpectUsiNames ( const std::vector< std::pair< Usi, std::string > > &  values)
inlineprotected

Verifies that every supplied USI resolves to its expected name.

Definition at line 65 of file test_indices.cpp.

References profinet::GetUsiName().

+ Here is the call graph for this function:

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