Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

OpaqueStr Class Reference

#include <octet.h>

Inheritance diagram for OpaqueStr:

[legend]
Collaboration diagram for OpaqueStr:
[legend]
List of all members.

Detailed Description

This class behaves exactly as the OctetStr class, beside the Syntax of this class is sNMP_SYNTAX_OPAQUE.

Definition at line 362 of file octet.h.

Public Member Functions

 OpaqueStr ()
 Constructor creating a valid zero length OpaqueStr.

 OpaqueStr (const char *str)
 Constructs a OpaqueStr with the given value.

 OpaqueStr (const unsigned char *str, unsigned long len)
 Constructs a OpaqueStr with the given value.

 OpaqueStr (const OctetStr &octet)
 Construct a OpaqueStr from an OctetStr.

 OpaqueStr (const OpaqueStr &opaque)
 Construct a OpaqueStr from another OpaqueStr.

virtual SnmpSyntaxclone () const
 Clone this object.

virtual SmiUINT32 get_syntax () const
 Return the syntax.

SnmpSyntaxoperator= (const SnmpSyntax &val)
 Map other SnmpSyntax objects to OpaqueStr.


Constructor & Destructor Documentation

OpaqueStr::OpaqueStr  )  [inline]
 

Constructor creating a valid zero length OpaqueStr.

Definition at line 368 of file octet.h.

References sNMP_SYNTAX_OPAQUE.

OpaqueStr::OpaqueStr const char *  str  )  [inline]
 

Constructs a OpaqueStr with the given value.

The OpaqueStr will be valid unless a call to new fails.

Parameters:
str - Null terminated string

Definition at line 377 of file octet.h.

References sNMP_SYNTAX_OPAQUE.

OpaqueStr::OpaqueStr const unsigned char *  str,
unsigned long  len
[inline]
 

Constructs a OpaqueStr with the given value.

The OpaqueStr will be valid unless a call to new fails.

Parameters:
str - string that may contain null bytes
len - length of the string

Definition at line 387 of file octet.h.

References sNMP_SYNTAX_OPAQUE.

OpaqueStr::OpaqueStr const OctetStr octet  )  [inline]
 

Construct a OpaqueStr from an OctetStr.

The OpaqueStr will be valid unless a call to new fails.

Parameters:
octet - Value for the new object

Definition at line 396 of file octet.h.

References sNMP_SYNTAX_OPAQUE.

OpaqueStr::OpaqueStr const OpaqueStr opaque  )  [inline]
 

Construct a OpaqueStr from another OpaqueStr.

The OpaqueStr will be valid unless a call to new fails.

Parameters:
opaque - Value for the new object

Definition at line 405 of file octet.h.

References sNMP_SYNTAX_OPAQUE.


Member Function Documentation

virtual SnmpSyntax* OpaqueStr::clone  )  const [inline, virtual]
 

Clone this object.

Returns:
Pointer to the newly created object (allocated through new).

Reimplemented from OctetStr.

Definition at line 413 of file octet.h.

virtual SmiUINT32 OpaqueStr::get_syntax  )  const [inline, virtual]
 

Return the syntax.

Returns:
This method always returns sNMP_SYNTAX_OPAQUE.

Reimplemented from OctetStr.

Definition at line 420 of file octet.h.

References SmiUINT32, and sNMP_SYNTAX_OPAQUE.

SnmpSyntax& OpaqueStr::operator= const SnmpSyntax val  )  [inline, virtual]
 

Map other SnmpSyntax objects to OpaqueStr.

Reimplemented from OctetStr.

Definition at line 425 of file octet.h.

References OctetStr::operator=().


The documentation for this class was generated from the following file:
Generated on Tue Jan 4 22:42:19 2005 for SNMP++ by doxygen 1.3.2