μHAL (v2.7.9)
Part of the IPbus software repository
Functions
uhal::detail Namespace Reference

Functions

std::string getAddressDescription (const ClientInterface &aClient, const uint32_t aAddress, const size_t &aMaxListSize)
 Generates a short string summarising which nodes match the specified address. More...
 
std::string getAddressDescription (const Node &aNode, const uint32_t aAddress, const size_t &aMaxListSize)
 Generates a short string summarising which nodes match the specified address. More...
 
bool compareNodeAddr (const Node *aNodeL, const Node *aNodeR)
 
std::vector< std::pair< const Node *, const Node * > > getAddressOverlaps (const Node &aNode)
 
void printNodeOverlapDescription (std::ostream &aStream, const Node &aNode1, const Node &aNode2)
 
bool writeNodeOverlapReport (const std::string &aFilePath, const std::vector< std::pair< const Node *, const Node * > > &aNodes, const std::string &aHeader)
 

Function Documentation

◆ compareNodeAddr()

bool uhal::detail::compareNodeAddr ( const Node aNodeL,
const Node aNodeR 
)

◆ getAddressDescription() [1/2]

std::string uhal::detail::getAddressDescription ( const ClientInterface aClient,
const uint32_t  aAddress,
const size_t &  aMaxListSize 
)

Generates a short string summarising which nodes match the specified address.

Definition at line 106 of file utilities.cpp.

References uhal::ClientInterface::mNode.

Referenced by uhal::tests::BOOST_FIXTURE_TEST_CASE(), and uhal::exception::IPbusCoreResponseCodeSet::IPbusCoreResponseCodeSet().

◆ getAddressDescription() [2/2]

std::string uhal::detail::getAddressDescription ( const Node aNode,
const uint32_t  aAddress,
const size_t &  aMaxListSize 
)

Generates a short string summarising which nodes match the specified address.

Definition at line 47 of file utilities.cpp.

References uhal::Node::begin(), uhal::Node::end(), uhal::Node::getLineage(), uhal::Node::getPath(), uhal::defs::HIERARCHICAL, uhal::defs::INCREMENTAL, and uhal::min.

◆ getAddressOverlaps()

std::vector< std::pair< const Node *, const Node * > > uhal::detail::getAddressOverlaps ( const Node aNode)

◆ printNodeOverlapDescription()

void uhal::detail::printNodeOverlapDescription ( std::ostream &  aStream,
const Node aNode1,
const Node aNode2 
)

◆ writeNodeOverlapReport()

bool uhal::detail::writeNodeOverlapReport ( const std::string &  aFilePath,
const std::vector< std::pair< const Node *, const Node * > > &  aNodes,
const std::string &  aHeader 
)