Datatypes C++ Module

struct Result

Structure to represent an SNMP result.

This structure holds the information retrieved from an SNMP operation, including the OID, index, type, and value of the retrieved data.

Public Functions

std::string to_string() const

Converts the Result object to a string representation.

This method generates a human-readable string representation of the Result object, including all its members.

Returns:

A string representation of the Result object.

Public Members

std::string oid = ""

Object Identifier (OID) of the retrieved data.

std::string index = ""

Index of the retrieved data (if applicable).

std::string type = ""

Data type of the retrieved value.

std::string value = ""

Actual value of the retrieved data.