Debian Codegraph @

perl/AnyData_SNMP/Format.pm

raw
1 package AnyData::Format::SNMP;
2 #
3 # AnyData interface to SNMP queries
4 #
5
6 use strict;
7 use warnings;
8 use AnyData::Format::Base;
9 use vars qw( @ISA );
10 @AnyData::Format::SNMP::ISA = qw( AnyData::Format::Base );
11 use Data::Dumper;
12
13 sub storage_type {
14 # print "calling storage type\n"; 'SNMP';
15 }
16
17 sub new {
18 # print "new format: ", Dumper(@_), "\n";
19 my $class = shift;
20 my $self = shift || {};
21 bless $self, $class;
22 $self->{'storage'} = 'SNMP';
23 $self->{'has_update_function'} = 'SNMP';
24 # print Dumper($self), "\n";
25 return $self;
26 2;
27 }
28
29 sub get_col_names {
30 # print "get_col_names\n";
31 # XXX: get mib column names
32 2;
33 }
34
35 sub seek_first_record {
36 # print "seek_first\n";
37 my $self = shift;
38 my $var = [$self->{'mibnode'}];
39 $self->{'session'}->getnext($var);
40 2;
41 }
42
43 sub get_pos {
44 # print "get_pos\n";
45 2;
46 }
47
48 sub go_pos {
49 # print "go_pos\n";
50 2;
51 }
52
53 sub delete_record {
54 # print "del_rec\n";
55 2;
56 }
57
58 sub get_record {
59 # print "get_record\n";
60 2;
61 }
62
63 sub push_row {
64 # print "push_row\n";
65 2;
66 }
67
68 sub truncate {
69 # print "truncate\n";
70 2;
71 }
72
73 sub close_table {
74 # print "close_table\n";
75 2;
76 }
77
78 sub drop {
79 # print "drop\n";
80 2;
81 }
82
83 sub seek {
84 # print "seek\n";
85 2;
86 }
87
88 sub write_fields {
89 # print STDERR "write_fields: ",Dumper(\@_), "\n";
90 my $self = shift;
91 my @ary = @_;
92 return \@ary;
93 }
94 sub read_fields {
95 # print STDERR "read_fields: ",Dumper(\@_), "\n";
96 my $self = shift;
97 my $aryref = shift;
98 return @$aryref;
99 }
100
101 sub get_data {
102 # print "get_data\n";
103 2;
104 }
105
106 sub init_parser {
107 # print "init_parser\n";
108 2;
109 }