Skip to content

Commit

Permalink
NCDK 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ujihara committed Apr 3, 2017
1 parent 72f1e9f commit 862db15
Show file tree
Hide file tree
Showing 745 changed files with 16,839 additions and 16,515 deletions.
47 changes: 46 additions & 1 deletion Config.ttinclude
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,38 @@
return s.Split(':');
}

public void GenerateEnumBody(string name, string[] entities, bool isStruct)
public string StructOrClass(bool isStruct)
{
return isStruct ? "struct" : "class";
}

public void GenerateEnumBody(string name, string[] entities, bool isStruct)
{
GenerateEnumBody(name, entities, isStruct, null);
}

public void GenerateEnumBody(string name, string[] entities, string implements)
{
GenerateEnumBody(name, entities, false, implements);
}

public void GenerateEnumBody(string name, string[] entities, bool isStruct, string implements)
{
#>
public partial <#= StructOrClass(isStruct) #> <#= name #> : System.IComparable<<#= name #>>, System.IComparable
<#+
if (implements != null)
{
#>
, <#= implements #>
<#+
}
#>
{
/// <summary>
/// The <see cref="Ordinal"/> values of <see cref="<#= name #>"/>.
/// </summary>
/// <seealso cref="<#= name #>"/>
public static class O
{
<#+
Expand All @@ -56,8 +85,13 @@
}

private readonly int ordinal;
/// <summary>
/// The ordinal of this enumeration constant. The list is in <see cref="O"/>.
/// </summary>
/// <seealso cref="O"/>
public int Ordinal => ordinal;

/// <inheritdoc/>
public override string ToString()
{
return names[Ordinal];
Expand Down Expand Up @@ -168,6 +202,7 @@ foreach (var s in entities)
return !(a == b);
}

/// <inheritdoc/>
public override bool Equals(object obj)
{
<#+ if (isStruct) { #>
Expand All @@ -180,16 +215,26 @@ foreach (var s in entities)
<#+ } #>
}

/// <inheritdoc/>
public override int GetHashCode()
{
return Ordinal;
}

/// <inheritdoc/>
public int CompareTo(object obj)
{
var o = (<#= name #>)obj;
return ((int)Ordinal).CompareTo((int)o.Ordinal);
}

/// <inheritdoc/>
public int CompareTo(<#= name #> o)
{
return (Ordinal).CompareTo(o.Ordinal);
}
}
public partial <#= StructOrClass(isStruct) #> <#= name #>
<#+
}
#>
106 changes: 0 additions & 106 deletions Documentation/Content/License.aml

This file was deleted.

75 changes: 59 additions & 16 deletions Documentation/Content/Welcome.aml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<topic id="c9f38e32-3e98-455f-8e1c-33fce2abf283" revisionNumber="1">
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
<introduction>
<para></para>
</introduction>
<topic id="e2ff06cc-99b7-4f8b-95c5-53965548639f" revisionNumber="1">
<developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
<introduction>
<para></para>
</introduction>

<section>
<title>Getting Started</title>
<section>
<title>Getting Started</title>
<content>
<para>
The <legacyBold>.NET Chemistry Development Kit</legacyBold> (NCDK) is collection of modular .NET Framework
libraries for processing chemical information (<legacyBold>cheminformatics</legacyBold>). The
modules are <link xlink:href="323b9147-5a38-423b-b1ca-91a3396c6b6d"/>free and open-source</link> and is easily
The <legacyBold>.NET Chemistry Development Kit</legacyBold> (NCDK) is .NET Framework port of
<externalLink>
<linkText>The Chemistry Development Kit (CDK)</linkText>
<linkUri>https://sourceforge.net/projects/cdk/</linkUri>
</externalLink>.
This library is collection of modular .NET Framework libraries for processing chemical information (<legacyBold>cheminformatics</legacyBold>).
The modules are <link xlink:href="#license">free and open-source</link> and is easily
integrated with other open-source or in-house projects.
Functionality is provided for many areas in cheminformatics including:
</para>
Expand Down Expand Up @@ -56,10 +60,49 @@
<image xlink:href="top_compound_image"/>
</mediaLink>
</content>
</section>

<relatedTopics>
<link xlink:href="38e429c1-4197-40a9-a1ee-8b5f4c592a1c" />
</relatedTopics>
</developerConceptualDocument>
</section>
<section>
<title>Learn</title>
<content>
<list class="bullet">
<listItem>
<para>
C# API - This Page
</para>
</listItem>
<listItem>
<para>
Codes in the test projects.
</para>
</listItem>
<listItem>
<para>
Documents for the original Java versions -
<externalLink>
<linkText>The Chemistry Development Kit (CDK)</linkText>
<linkUri>https://cdk.github.io/</linkUri>
</externalLink>
</para>
</listItem>
</list>
</content>
</section>
<section address="license">
<title>License</title>
<content>
<para>
<externalLink>
<linkText>GNU Lesser General Public License, version 2.1</linkText>
<linkUri>https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html</linkUri>
</externalLink>(or later).
</para>
<para>
The LGPL is compatible with other major open-source licenses. Since .NET libraries are dynamically linked there is no restriction in using CDK in propitiatory software (see the FSF's LGPL and Java).
</para>
</content>
</section>
<relatedTopics>
<link xlink:href="38e429c1-4197-40a9-a1ee-8b5f4c592a1c" />
</relatedTopics>
</developerConceptualDocument>
</topic>
Loading

0 comments on commit 862db15

Please sign in to comment.