#include <DnsResourceData.h>
A smart pointer class that holds pointers of type IDnsResourceData. This object is used in DnsResource::getData()
◆ DnsResourceDataPtr()
A c'tor to this class
- Parameters
-
◆ castAs()
template<class IDnsResourceDataType >
IDnsResourceDataType* pcpp::DnsResourceDataPtr::castAs |
( |
| ) |
|
|
inline |
A templated method which take a class that derives from IDnsResourceData as the template argument and tries to cast the pointer stored in this object as that type
- Returns
- A pointer to the stored pointer casted as the requested type or NULL if it isn't of this type
◆ isTypeOf()
template<class IDnsResourceDataType >
bool pcpp::DnsResourceDataPtr::isTypeOf |
( |
| ) |
const |
|
inline |
A templated method which takes a class that derives from IDnsResourceData as the template argument and checks whether the pointer stored in this object is of this type
- Returns
- True if the stored pointer is of the requested type, false otherwise