Last change
on this file since 457 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csharp;charset=UTF-8
|
File size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace Lextm.SharpSnmpLib.Mib.Elements.Entities
|
---|
4 | {
|
---|
5 | public abstract class EntityBase: IEntity
|
---|
6 | {
|
---|
7 | private readonly IModule _module;
|
---|
8 | private string _parent;
|
---|
9 | private readonly uint _value;
|
---|
10 | private readonly string _name;
|
---|
11 |
|
---|
12 | public EntityBase(IModule module, SymbolList preAssignSymbols, ISymbolEnumerator symbols)
|
---|
13 | {
|
---|
14 | _module = module;
|
---|
15 | _name = preAssignSymbols[0].ToString();
|
---|
16 |
|
---|
17 | Lexer.ParseOidValue(symbols, out _parent, out _value);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public IModule Module
|
---|
21 | {
|
---|
22 | get { return _module; }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public string Parent
|
---|
26 | {
|
---|
27 | get { return _parent; }
|
---|
28 | set { _parent = value; }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public uint Value
|
---|
32 | {
|
---|
33 | get { return _value; }
|
---|
34 | }
|
---|
35 |
|
---|
36 | public string Name
|
---|
37 | {
|
---|
38 | get { return _name; }
|
---|
39 | }
|
---|
40 |
|
---|
41 | public virtual string Description
|
---|
42 | {
|
---|
43 | get { return string.Empty; }
|
---|
44 | }
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.