ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
ifw::fcf::devmgr::test Namespace Reference

Functions

ifw::fnd::defs::CallResult MakeRpcReply (short code, ifw::fnd::defs::Status batch_status=ifw::fnd::defs::Status::Ok)
 Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).
 
ifw::fnd::defs::ReadResult MakeReadReply (std::vector< std::pair< std::string, ifw::fnd::defs::Value > > items)
 Build a ReadResult from a list of (address, value) pairs. Every item is marked Ok. Suitable for stubbing the node-status reads done by DeviceLcsIf.
 
ifw::fnd::defs::Result MakeOk ()
 Build a generic "Ok" Result.
 
ifw::fnd::defs::WriteResult MakeWriteOk (const ifw::fnd::defs::WriteRequest &req)
 Build a WriteResult that succeeds for every item address in the request. Reflects the typical Write success path.
 
ifw::fnd::defs::SubscribeResult MakeSubscribeOk (const std::vector< ifw::fnd::defs::Address > &nodes)
 Build a SubscribeResult acknowledging every requested node.
 
ifw::fnd::defs::Notification MakeNotification (const std::string &address, const ifw::fnd::defs::Value &value)
 Build a single-attribute Notification suitable for feeding to a Listener that uses m_ua_status_map. The test caller computes the node-id the same way DeviceLcsIf does (GetNodeId(GetMapValue(...))).
 

Function Documentation

◆ MakeNotification()

ifw::fnd::defs::Notification ifw::fcf::devmgr::test::MakeNotification ( const std::string & address,
const ifw::fnd::defs::Value & value )
inline

Build a single-attribute Notification suitable for feeding to a Listener that uses m_ua_status_map. The test caller computes the node-id the same way DeviceLcsIf does (GetNodeId(GetMapValue(...))).

◆ MakeOk()

ifw::fnd::defs::Result ifw::fcf::devmgr::test::MakeOk ( )
inline

Build a generic "Ok" Result.

◆ MakeReadReply()

ifw::fnd::defs::ReadResult ifw::fcf::devmgr::test::MakeReadReply ( std::vector< std::pair< std::string, ifw::fnd::defs::Value > > items)
inline

Build a ReadResult from a list of (address, value) pairs. Every item is marked Ok. Suitable for stubbing the node-status reads done by DeviceLcsIf.

◆ MakeRpcReply()

ifw::fnd::defs::CallResult ifw::fcf::devmgr::test::MakeRpcReply ( short code,
ifw::fnd::defs::Status batch_status = ifw::fnd::defs::Status::Ok )
inline

Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).

◆ MakeSubscribeOk()

ifw::fnd::defs::SubscribeResult ifw::fcf::devmgr::test::MakeSubscribeOk ( const std::vector< ifw::fnd::defs::Address > & nodes)
inline

Build a SubscribeResult acknowledging every requested node.

◆ MakeWriteOk()

ifw::fnd::defs::WriteResult ifw::fcf::devmgr::test::MakeWriteOk ( const ifw::fnd::defs::WriteRequest & req)
inline

Build a WriteResult that succeeds for every item address in the request. Reflects the typical Write success path.