AGENT++
4.0.3
Main Page
Related Pages
Classes
Files
File List
File Members
include
agent_pp
snmp_target_mib.h
Go to the documentation of this file.
1
/*_############################################################################
2
_##
3
_## AGENT++ 4.0 - snmp_target_mib.h
4
_##
5
_## Copyright (C) 2000-2013 Frank Fock and Jochen Katz (agentpp.com)
6
_##
7
_## Licensed under the Apache License, Version 2.0 (the "License");
8
_## you may not use this file except in compliance with the License.
9
_## You may obtain a copy of the License at
10
_##
11
_## http://www.apache.org/licenses/LICENSE-2.0
12
_##
13
_## Unless required by applicable law or agreed to in writing, software
14
_## distributed under the License is distributed on an "AS IS" BASIS,
15
_## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
_## See the License for the specific language governing permissions and
17
_## limitations under the License.
18
_##
19
_##########################################################################*/
20
21
22
#ifndef _snmp_target_mib_h_
23
#define _snmp_target_mib_h_
24
25
#include <
agent_pp/mib.h
>
26
#include <
agent_pp/snmp_textual_conventions.h
>
27
28
#ifdef AGENTPP_NAMESPACE
29
namespace
Agentpp {
30
#endif
31
32
41
class
AGENTPP_DECL
snmpTargetAddrTDomain
:
public
MibLeaf
{
42
43
public
:
44
snmpTargetAddrTDomain
(
const
Oidx
&);
45
virtual
~
snmpTargetAddrTDomain
();
46
47
virtual
MibEntryPtr
clone();
48
virtual
bool
value_ok(
const
Vbx
&);
49
virtual
int
get_state();
50
};
51
52
61
class
AGENTPP_DECL
snmpTargetAddrTAddress
:
public
MibLeaf
{
62
63
public
:
64
snmpTargetAddrTAddress
(
const
Oidx
&);
65
snmpTargetAddrTAddress
(
const
Oidx
&,
mib_access
,
NS_SNMP
OctetStr*,
int
);
66
virtual
~
snmpTargetAddrTAddress
();
67
68
virtual
MibEntryPtr
clone();
69
virtual
int
prepare_set_request(
Request
*,
int
&);
70
74
virtual
NS_SNMP
UdpAddress* getUdpAddress();
75
};
76
77
126
class
AGENTPP_DECL
snmpTargetAddrParams
:
public
MibLeaf
{
127
128
public
:
129
snmpTargetAddrParams
(
const
Oidx
&);
130
virtual
~
snmpTargetAddrParams
();
131
132
virtual
MibEntryPtr
clone();
133
virtual
int
prepare_set_request(
Request
*,
int
&);
134
virtual
bool
value_ok(
const
Vbx
&);
135
};
136
137
245
class
AGENTPP_DECL
snmpTargetParamsEntry
:
public
StorageTable
{
246
247
public
:
248
snmpTargetParamsEntry
();
249
virtual
~
snmpTargetParamsEntry
();
250
251
static
snmpTargetParamsEntry
*
instance
;
252
253
virtual
bool
contains(
const
NS_SNMP
OctetStr&);
254
255
#ifdef _SNMPv3
256
270
virtual
bool
get_target_params(
const
NS_SNMP
OctetStr&,
271
NS_SNMP
UTarget&,
int
&);
272
#endif
273
298
MibTableRow
* add_entry(
const
NS_SNMP
OctetStr&,
299
const
int
,
const
int
,
300
const
NS_SNMP
OctetStr&,
301
const
int
);
302
};
303
304
305
319
class
AGENTPP_DECL
snmpTargetAddrEntry
:
public
StorageTable
{
320
321
public
:
322
snmpTargetAddrEntry
();
323
virtual
~
snmpTargetAddrEntry
();
324
325
static
snmpTargetAddrEntry
*
instance
;
326
327
virtual
bool
refers_to(
NS_SNMP
OctetStr&);
341
virtual
NS_SNMP
Address* get_address(
MibTableRow
*);
342
#ifdef _SNMPv3
343
359
virtual
NS_SNMP
UTarget* get_target(
const
NS_SNMP
OctetStr&,
360
snmpTargetParamsEntry
*,
int
&);
361
#endif
362
372
List<MibTableRow>
* get_rows_cloned_for_tag(
const
NS_SNMP
OctetStr&);
373
374
void
set_row(
MibTableRow
* r,
375
const
Oidx
&,
376
const
NS_SNMP
OctetStr&,
377
int
,
int
,
378
const
NS_SNMP
OctetStr&,
379
const
NS_SNMP
OctetStr&,
int
,
int
);
380
407
MibTableRow
* add_entry(
const
NS_SNMP
OctetStr&,
408
const
Oidx
&,
409
const
NS_SNMP
OctetStr&,
410
const
NS_SNMP
OctetStr&,
411
const
NS_SNMP
OctetStr&);
412
416
bool
ready_for_service(
Vbx
*,
int
);
417
};
418
419
420
421
class
AGENTPP_DECL
snmp_target_mib
:
public
MibGroup
422
{
423
public
:
424
snmp_target_mib
();
425
virtual
~snmp_target_mib
() { }
426
};
427
428
#ifdef AGENTPP_NAMESPACE
429
}
430
#endif
431
432
#endif
Generated by
1.8.2