Browse Source

Added an INamedDecl interface for named declarations.

pull/1/head
triton 12 years ago
parent
commit
d9801eb00b
  1. 7
      src/Bridge/Declaration.cs
  2. 4
      src/Bridge/Enumeration.cs

7
src/Bridge/Declaration.cs

@ -15,6 +15,11 @@ namespace Cxxi @@ -15,6 +15,11 @@ namespace Cxxi
QualifiedType QualifiedType { get; }
}
public interface INamedDecl
{
string Name { get; set; }
}
[Flags]
public enum IgnoreFlags
{
@ -27,7 +32,7 @@ namespace Cxxi @@ -27,7 +32,7 @@ namespace Cxxi
/// <summary>
/// Represents a C++ declaration.
/// </summary>
public abstract class Declaration
public abstract class Declaration : INamedDecl
{
// Namespace the declaration is contained in.
public Namespace Namespace;

4
src/Bridge/Enumeration.cs

@ -19,9 +19,9 @@ namespace Cxxi @@ -19,9 +19,9 @@ namespace Cxxi
/// <summary>
/// Represents a C/C++ enumeration item.
/// </summary>
public class Item
public class Item : INamedDecl
{
public string Name;
public string Name { get; set; }
public long Value;
public string Expression;
public string Comment;

Loading…
Cancel
Save