SNMP++  3.3.4
oid_def.h
Go to the documentation of this file.
1 /*_############################################################################
2  _##
3  _## oid_def.h
4  _##
5  _## SNMP++ v3.3
6  _## -----------------------------------------------
7  _## Copyright (c) 2001-2013 Jochen Katz, Frank Fock
8  _##
9  _## This software is based on SNMP++2.6 from Hewlett Packard:
10  _##
11  _## Copyright (c) 1996
12  _## Hewlett-Packard Company
13  _##
14  _## ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
15  _## Permission to use, copy, modify, distribute and/or sell this software
16  _## and/or its documentation is hereby granted without fee. User agrees
17  _## to display the above copyright notice and this license notice in all
18  _## copies of the software and any documentation of the software. User
19  _## agrees to assume all liability for the use of the software;
20  _## Hewlett-Packard and Jochen Katz make no representations about the
21  _## suitability of this software for any purpose. It is provided
22  _## "AS-IS" without warranty of any kind, either express or implied. User
23  _## hereby grants a royalty-free license to any and all derivatives based
24  _## upon this software code base.
25  _##
26  _##########################################################################*/
27 /*===================================================================
28 
29  Copyright (c) 1999
30  Hewlett-Packard Company
31 
32  ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
33  Permission to use, copy, modify, distribute and/or sell this software
34  and/or its documentation is hereby granted without fee. User agrees
35  to display the above copyright notice and this license notice in all
36  copies of the software and any documentation of the software. User
37  agrees to assume all liability for the use of the software; Hewlett-Packard
38  makes no representations about the suitability of this software for any
39  purpose. It is provided "AS-IS" without warranty of any kind,either express
40  or implied. User hereby grants a royalty-free license to any and all
41  derivatives based upon this software code base.
42 
43  SNMP++ O I D _ D E F . H
44 
45  OID_DEF DEFINITIONS
46 
47  DESCRIPTION:
48  Some common Oid definitions.
49 
50  DESIGN + AUTHOR: Peter E Mellquist
51 =====================================================================*/
52 // $Id: oid_def.h 2359 2013-05-09 20:07:01Z fock $
53 
54 #ifndef _OID_DEF
55 #define _OID_DEF
56 
57 #include "snmp_pp/oid.h"
58 
59 #ifdef SNMP_PP_NAMESPACE
60 namespace Snmp_pp {
61 #endif
62 
63 
64 /** SMI trap oid def */
65 class snmpTrapsOid: public Oid {
66  public:
67  DLLOPT snmpTrapsOid() : Oid("1.3.6.1.6.3.1.1.5") {};
68 };
69 
70 /** SMI Enterprose Oid */
71 class snmpTrapEnterpriseOid: public Oid {
72  public:
73  DLLOPT snmpTrapEnterpriseOid() : Oid("1.3.6.1.6.3.1.1.4.3.0") {};
74 };
75 
76 /** SMI Cold Start Oid */
77 class coldStartOid: public snmpTrapsOid {
78  public:
79  DLLOPT coldStartOid() { *this+=".1"; };
80 };
81 
82 /** SMI WarmStart Oid */
83 class warmStartOid: public snmpTrapsOid {
84  public:
85  DLLOPT warmStartOid() { *this+=".2"; };
86 };
87 
88 /** SMI LinkDown Oid */
89 class linkDownOid: public snmpTrapsOid {
90  public:
91  DLLOPT linkDownOid() { *this+=".3"; };
92 };
93 
94 /** SMI LinkUp Oid */
95 class linkUpOid: public snmpTrapsOid {
96  public:
97  DLLOPT linkUpOid() { *this+=".4"; };
98 };
99 
100 /** SMI Authentication Failure Oid */
102  public:
103  DLLOPT authenticationFailureOid() { *this+=".5"; };
104 };
105 
106 /** SMI egpneighborloss Oid */
108  public:
109  DLLOPT egpNeighborLossOid() { *this+=".6"; };
110 };
111 
112 #ifdef SNMP_PP_NAMESPACE
113 } // end of namespace Snmp_pp
114 #endif
115 
116 #endif // _OID_DEF
DLLOPT authenticationFailureOid()
Definition: oid_def.h:103
SMI Cold Start Oid.
Definition: oid_def.h:77
SMI Enterprose Oid.
Definition: oid_def.h:71
#define DLLOPT
SMI WarmStart Oid.
Definition: oid_def.h:83
The Object Identifier Class.
Definition: oid.h:94
DLLOPT snmpTrapEnterpriseOid()
Definition: oid_def.h:73
SMI egpneighborloss Oid.
Definition: oid_def.h:107
DLLOPT linkUpOid()
Definition: oid_def.h:97
SMI trap oid def.
Definition: oid_def.h:65
DLLOPT warmStartOid()
Definition: oid_def.h:85
SMI LinkUp Oid.
Definition: oid_def.h:95
DLLOPT linkDownOid()
Definition: oid_def.h:91
SMI LinkDown Oid.
Definition: oid_def.h:89
DLLOPT coldStartOid()
Definition: oid_def.h:79
DLLOPT snmpTrapsOid()
Definition: oid_def.h:67
DLLOPT egpNeighborLossOid()
Definition: oid_def.h:109
SMI Authentication Failure Oid.
Definition: oid_def.h:101