]> git.stg.codes - ssmd.git/blob - 3rdparty/snmp++/include/snmp_pp/oid_def.h
Initial adding
[ssmd.git] / 3rdparty / snmp++ / include / snmp_pp / oid_def.h
1 /*_############################################################################
2   _## 
3   _##  oid_def.h  
4   _##
5   _##  SNMP++v3.2.25
6   _##  -----------------------------------------------
7   _##  Copyright (c) 2001-2010 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   _##  Stuttgart, Germany, Thu Sep  2 00:07:47 CEST 2010 
27   _##  
28   _##########################################################################*/
29 /*===================================================================
30
31   Copyright (c) 1999
32   Hewlett-Packard Company
33
34   ATTENTION: USE OF THIS SOFTWARE IS SUBJECT TO THE FOLLOWING TERMS.
35   Permission to use, copy, modify, distribute and/or sell this software
36   and/or its documentation is hereby granted without fee. User agrees
37   to display the above copyright notice and this license notice in all
38   copies of the software and any documentation of the software. User
39   agrees to assume all liability for the use of the software; Hewlett-Packard
40   makes no representations about the suitability of this software for any
41   purpose. It is provided "AS-IS" without warranty of any kind,either express
42   or implied. User hereby grants a royalty-free license to any and all
43   derivatives based upon this software code base.
44
45       SNMP++ O I D _ D E F . H
46
47       OID_DEF DEFINITIONS
48
49       DESCRIPTION:
50         Some common Oid definitions.
51
52       DESIGN + AUTHOR:        Peter E Mellquist
53 =====================================================================*/
54 // $Id: oid_def.h 1541 2009-05-29 11:29:22Z katz $
55
56 #ifndef _OID_DEF
57 #define _OID_DEF
58
59 #include "snmp_pp/oid.h"
60
61 #ifdef SNMP_PP_NAMESPACE
62 namespace Snmp_pp {
63 #endif
64
65
66 /** SMI trap oid def */
67 class snmpTrapsOid: public Oid {
68  public:
69   DLLOPT snmpTrapsOid() : Oid("1.3.6.1.6.3.1.1.5") {};
70 };
71
72 /** SMI Enterprose Oid */
73 class snmpTrapEnterpriseOid: public Oid {
74  public:
75   DLLOPT snmpTrapEnterpriseOid() : Oid("1.3.6.1.6.3.1.1.4.3.0") {};
76 };
77
78 /** SMI Cold Start Oid */
79 class coldStartOid: public snmpTrapsOid {
80    public:
81    DLLOPT coldStartOid() { *this+=".1"; };
82 };
83
84 /** SMI WarmStart Oid */
85 class warmStartOid: public snmpTrapsOid {
86    public:
87    DLLOPT warmStartOid() { *this+=".2"; };
88 };
89
90 /** SMI LinkDown Oid */
91 class linkDownOid: public snmpTrapsOid {
92    public:
93    DLLOPT linkDownOid() { *this+=".3"; };
94 };
95
96 /** SMI LinkUp Oid */
97 class linkUpOid: public snmpTrapsOid {
98    public:
99    DLLOPT linkUpOid() { *this+=".4"; };
100 };
101
102 /** SMI Authentication Failure Oid */
103 class authenticationFailureOid: public snmpTrapsOid {
104    public:
105    DLLOPT authenticationFailureOid() { *this+=".5"; };
106 };
107
108 /** SMI egpneighborloss Oid */
109 class egpNeighborLossOid: public snmpTrapsOid {
110  public:
111   DLLOPT egpNeighborLossOid() { *this+=".6"; };
112 };
113
114 #ifdef SNMP_PP_NAMESPACE
115 } // end of namespace Snmp_pp
116 #endif 
117
118 #endif // _OID_DEF