|
μHAL (v2.7.9)
Part of the IPbus software repository
|
Go to the documentation of this file.
43 template <
class Y>
class shared_ptr;
50 mClientInterface ( aClientInterface ),
59 mClientInterface ( otherHw.mClientInterface ),
60 mNode ( otherHw.mNode->clone() )
76 for ( std::vector< Node* >::iterator lIt = aNode.
mChildren.begin(); lIt != aNode.
mChildren.end(); ++lIt )
143 return mNode->getNode ( aId );
149 return mNode->getNodes();
155 return mNode->getNodes ( aRegex );
A class which bundles a node tree and an IPbus client interface together providing everything you nee...
void setTimeoutPeriod(const uint32_t &aTimeoutPeriod)
A method to modify the timeout period for any pending or future transactions.
HwInterface * mHw
The parent hardware interface of which this node is a child (or rather decendent)
boost::shared_ptr< ClientInterface > mClientInterface
A shared pointer to the IPbus client through which the transactions will be sent.
An abstract base class for defining the interface to the various IPbus clients as well as providing t...
const std::string & id() const
Return the identifier of the target for this client.
HwInterface(const boost::shared_ptr< ClientInterface > &aClientInterface, const boost::shared_ptr< Node > &aNode)
Constructor.
void dispatch()
Make the IPbus client issue a dispatch.
std::vector< Node * > mChildren
The direct children of the node.
void claimNode(Node &aNode)
A function which sets the HwInterface pointer in the Node to point to this HwInterface.
boost::shared_ptr< Node > mNode
A node tree.
A heirarchical node for navigating heirarchical firmwares.
uint32_t getTimeoutPeriod()
A method to retrieve the timeout period currently being used.
virtual ~HwInterface()
Destructor.
ClientInterface & getClient()
Get the underlying IPbus client.
const std::string & uri() const
Return the url of the target for this client.
std::vector< std::string > getNodes() const
Return all node IDs known to this HwInterface.
const Node & getNode() const
Retrieve the top-level node.