SnmpTrapOidContainer Class Reference
#include <OperationContext.h>
Inheritance diagram for SnmpTrapOidContainer:![]()
Public Member Functions
SnmpTrapOidContainer (const OperationContext::Container &container) SnmpTrapOidContainer (const SnmpTrapOidContainer &container) SnmpTrapOidContainer (const String &snmpTrapOid) virtual ~SnmpTrapOidContainer () SnmpTrapOidContainer & operator= (const SnmpTrapOidContainer &container) virtual String getName () const virtual OperationContext::Container * clone () const virtual void destroy () String getSnmpTrapOid () const Public Member Functions inherited from OperationContext::Container
virtual ~Container ()
Static Public Attributes
static const String NAME
Protected Attributes
SnmpTrapOidContainerRep * _rep Detailed Description
An SnmpTrapOidContainer object holds an SNMP trap OID that corresponds to the associated data.
Constructor & Destructor Documentation
◆ SnmpTrapOidContainer() [1/3]
SnmpTrapOidContainer::SnmpTrapOidContainer ( const OperationContext::Container & container ) Constructs an SnmpTrapOidContainer object from the specified Container.
- Parameters
container The Container object to copy.
- Exceptions
DynamicCastFailedException If the specified Container object is not an SnmpTrapOidContainer object. ◆ SnmpTrapOidContainer() [2/3]
SnmpTrapOidContainer::SnmpTrapOidContainer ( const SnmpTrapOidContainer & container ) Constructs a copy of the specified SnmpTrapOidContainer.
- Parameters
container The SnmpTrapOidContainer object to copy. ◆ SnmpTrapOidContainer() [3/3]
SnmpTrapOidContainer::SnmpTrapOidContainer ( const String & snmpTrapOid ) Constructs an SnmpTrapOidContainer with the specified SNMP trap OID.
- Parameters
snmpTrapOid A String containing an SNMP trap OID. ◆ ~SnmpTrapOidContainer()
virtual SnmpTrapOidContainer::~SnmpTrapOidContainer ( ) virtual Destructs the SnmpTrapOidContainer.
Member Function Documentation
◆ clone()
virtual OperationContext::Container* SnmpTrapOidContainer::clone ( ) const virtual Makes a copy of this SnmpTrapOidContainer object. The caller is responsible for cleaning up the copy by calling destroy() method.
- Returns
- A pointer to the new Container object.
Implements OperationContext::Container.
◆ destroy()
virtual void SnmpTrapOidContainer::destroy ( ) virtual Cleans up an SnmpTrapOidContainer object that was created by the clone() method.
Implements OperationContext::Container.
◆ getName()
virtual String SnmpTrapOidContainer::getName ( ) const virtual Returns the unique name for this Container type.
- Returns
- The String name of the Container type.
Implements OperationContext::Container.
◆ getSnmpTrapOid()
String SnmpTrapOidContainer::getSnmpTrapOid ( ) const Gets the SNMP trap OID from the SnmpTrapOidContainer.
- Returns
- A String with the SNMP trap OID corresponding to the associated data.
◆ operator=()
SnmpTrapOidContainer& SnmpTrapOidContainer::operator= ( const SnmpTrapOidContainer & container ) Assigns the value of the specified SnmpTrapOidContainer object to this object.
- Parameters
container The SnmpTrapOidContainer object to copy. Member Data Documentation
◆ _rep
SnmpTrapOidContainerRep* SnmpTrapOidContainer::_rep protected An internal representation of the SnmpTrapOidContainer attributes.
◆ NAME
const String SnmpTrapOidContainer::NAME static The unique name for this container type.
The documentation for this class was generated from the following file:
- /root/rpmbuild/BUILD/pegasus/src/Pegasus/Common/OperationContext.h