Skip to content

Commit

Permalink
Added parent module property.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Apr 7, 2013
1 parent 50ee21e commit 5177348
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 4 deletions.
8 changes: 8 additions & 0 deletions SharpSnmpLib/IEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ public interface IEntity : IConstruct
[CLSCompliant(false)]
uint Value { get; set; }

/// <summary>
/// Gets or sets the parent module.
/// </summary>
/// <value>
/// The parent module.
/// </value>
string ParentModule { get; set; }

/// <summary>
/// Validates this entity.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/AgentCapabilitiesMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public AgentCapabilitiesMacro(string productRelease)

[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }
public string Parent { get; set; }
public string ModuleName { get; set; }
public string Name { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/Definition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public uint Value
set { }
}

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
throw new NotImplementedException();
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ModuleComplianceMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public ModuleComplianceMacro(EntityStatus status, string description)
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ModuleIdentityMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class ModuleIdentityMacro : ISmiType, IEntity
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/NotificationGroupMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public NotificationGroupMacro(ISmiValue value)
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/NotificationTypeMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class NotificationTypeMacro : ISmiType, IEntity
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ObjectGroupMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public ObjectGroupMacro(ISmiValue value)
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ObjectIdentifierType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public ObjectIdentifierType()
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ObjectIdentityMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public ObjectIdentityMacro(EntityStatus status, string description)
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
2 changes: 2 additions & 0 deletions SharpSnmpLib/Mib/ObjectTypeMacro.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class ObjectTypeMacro : ISmiType, IEntity
[CLSCompliant(false)]
public uint Value { get; set; }

public string ParentModule { get; set; }

public bool Validate(List<IConstruct> knownConstructs, string fileName)
{
return this.ValidateParent(knownConstructs, fileName);
Expand Down
4 changes: 2 additions & 2 deletions lib/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:

[assembly: AssemblyVersion("7.6.010407.09")]
[assembly: AssemblyVersion("7.6.010407.14")]
#if (!CF)
[assembly: AssemblyFileVersion("7.6.010407.09")]
[assembly: AssemblyFileVersion("7.6.010407.14")]
#endif
4 changes: 2 additions & 2 deletions lib/SharedAssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Imports System.Reflection
' You can specify all values by your own or you can build default build and revision
' numbers with the '*' character (the default):

<Assembly: AssemblyVersion("7.6.010407.09")>
<Assembly: AssemblyFileVersion("7.6.010407.09")>
<Assembly: AssemblyVersion("7.6.010407.14")>
<Assembly: AssemblyFileVersion("7.6.010407.14")>

0 comments on commit 5177348

Please sign in to comment.