/* * Doxygen.NET - .NET object wrappers for Doxygen * Copyright 2009 - Ra-Software AS * This code is licensed under the LGPL version 3. * * Authors: * Thomas Hansen (thomas@ra-ajax.org) * Kariem Ali (kariem@ra-ajax.org) * */ using System; using System.Collections.Generic; using System.Text; namespace Doxygen.NET { public class Namespace : IDocItem { #region IDocItem Members public string ID { get; protected internal set; } public string Kind { get { return "namespace"; } } public string FullName { get; protected internal set; } public string Description { get; protected set; } #endregion public Namespace() { Types = new List(); } public List Types { get; protected internal set; } public List Classes { get { return Types.FindAll(FindByKind("class")); } } public List Structs { get { return Types.FindAll(FindByKind("struct")); } } public List Enums { get { return Types.FindAll(FindByKind("enum")); } } public List Delegates { get { return Types.FindAll(FindByKind("delegate")); } } private Predicate FindByKind(string kind) { return delegate(Type type) { return type.Kind == kind; }; } public override string ToString() { return FullName; } } }