1 #pragma once 2 3 #include "snmp_notification.hpp" 4 5 namespace phosphor 6 { 7 namespace network 8 { 9 namespace snmp 10 { 11 12 /* @brief sends the trap to the snmp manager 13 * T - Notification type 14 * @param[in] tArgs - arguments for the trap. 15 */ 16 17 template <typename T, typename... ArgTypes> 18 void sendTrap(ArgTypes&&... tArgs) 19 { 20 T obj(std::forward<ArgTypes>(tArgs)...); 21 obj.sendTrap(); 22 } 23 24 } // namespace snmp 25 } // namespace network 26 } // namespace phosphor 27