[csdoc-patches] CVS: csdoc/src/csdoc/MCSDoc IClassDoc.cs,NONE,1.1 INamespaceDoc.cs,NONE,1.1 ChangeLo
Status: Planning
Brought to you by:
mastergaurav
|
From: Gaurav V. <mas...@us...> - 2003-03-08 10:59:34
|
Update of /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc
In directory sc8-pr-cvs1:/tmp/cvs-serv2758
Modified Files:
ChangeLog ClassDocList.cs IRootDoc.cs
Added Files:
IClassDoc.cs INamespaceDoc.cs
Log Message:
2003-03-08
* IRootDoc.cs,
* IClassDoc.cs,
* INamespaceDoc.cs,
* ClassDocList.cs : Trying to see what
works best. Still not sure of what classes
to have and what properties will they have.
--- NEW FILE ---
/**
* Project: Master C# Document Generator
* Contact: mas...@us...
* Web: http://csdoc.sourceforge.net
*
* Copyright: (C) 2003, Gaurav Vaish
*
*/
using Mono.CSharp;
using System.Collections;
using System.Reflection;
namespace MCSDoc
{
public interface IClassDoc
{
string Comments { get; }
AttributeDocList Attributes { get; }
MethodDocList Methods { get; }
PropertyDocList Properties { get; }
MemberDocList Members { get; }
bool IsException { get; }
bool IsAttribute { get; }
bool IsInnerClass { get; }
ClassDocList InnerClasses { get; }
StructDocList InnerStructs { get; }
ClassDocList BaseClass { get; }
ClassDocList Interfaces { get; }
}
}
--- NEW FILE ---
/**
* Project: Master C# Document Generator
* Contact: mas...@us...
* Web: http://csdoc.sourceforge.net
*
* Copyright: (C) 2003, Gaurav Vaish
*
*/
using Mono.CSharp;
namespace MCSDoc
{
public interface INamespaceDoc
{
string Comments { get; }
AttributeDocList Attributes { get; }
ClassDocList Classes { get; }
DelegateDocList Delegates { get; }
EnumDocList Enums { get; }
InterfaceDocList Interfaces { get; }
StructDocList Structs { get; }
}
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog 25 Feb 2003 14:14:09 -0000 1.2
+++ ChangeLog 8 Mar 2003 10:59:29 -0000 1.3
@@ -1,4 +1,13 @@
+2003-03-08 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
+ * IRootDoc.cs,
+ * IClassDoc.cs,
+ * INamespaceDoc.cs,
+ * ClassDocList.cs : Trying to see what
+ works best. Still not sure of what classes
+ to have and what properties will they have.
+
2003-02-25 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
* RootDoc.cs : Removed
Index: ClassDocList.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/ClassDocList.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ClassDocList.cs 25 Feb 2003 14:14:10 -0000 1.1
+++ ClassDocList.cs 8 Mar 2003 10:59:30 -0000 1.2
@@ -26,21 +26,25 @@
{
foreach(object c in classDocs)
{
- if(c is ClassDoc)
- Add((ClassDoc)c);
+ if(c is IClassDoc)
+ Add((IClassDoc)c);
}
}
}
- public ClassDoc this[int index]
+ public IClassDoc this[int index]
{
get
{
if(index >= 0 && index < classDocc.Count)
{
- return (ClassDoc)classDocs[index];
+ return (IClassDoc)classDocs[index];
}
}
+ set
+ {
+ classDocs[index] = value;
+ }
}
public int Count
@@ -51,14 +55,19 @@
}
}
- public void Add(ClassDoc classDoc)
+ public void Add(IClassDoc classDoc)
+ {
+ classDocs.Add(classDoc);
+ }
+
+ public bool Contains(IClassDoc classDoc)
{
- classes.Add(classDoc);
+ return classDocs.Contains(classDoc);
}
public Enumerator GetEnumerator()
{
- return classes.GetEnumerator();
+ return classDocs.GetEnumerator();
}
}
}
Index: IRootDoc.cs
===================================================================
RCS file: /cvsroot/csdoc/csdoc/src/csdoc/MCSDoc/IRootDoc.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IRootDoc.cs 25 Feb 2003 14:14:12 -0000 1.1
+++ IRootDoc.cs 8 Mar 2003 10:59:30 -0000 1.2
@@ -13,6 +13,7 @@
{
public interface IRootDoc
{
+ NamespaceDocList Namespaces { get; }
ClassDocList Classes { get; }
DelegateDocList Delegates { get; }
EnumDocList Enums { get; }
|