Cano: .NET Library Reference

Distribution

The following items are included:

  • cano.net.dll — .Net 2.0 assembly
  • cano.dll — C++ library exposing C interface

cano.dll is offered in 32-bit and 64-bit versions. Depending on the architecture, proper DLLs are loaded automatically from lib32 or lib64 directories. Path to those directories may be set up when creating a library instance.

Cano Class Public Methods

Cano class has only static methods.

String getVersion ()

Returns the version of the library.

String getCanonicalSmiles (String molecule, String options)

Computes the canonical SMILES of the given molecule with given options. The molecule is SMILES or MDL (Symyx) Molfile (the format is detected automatically). The options string can contain space-separated words AROMATICITY, TETRAHEDRAL, and CISTRANS, each preceded with plus or minus sign. You can pass null in place of options string. The default option is all options on: +AROMATICITY, +TETRAHEDRAL, and +CISTRANS.

Cano Exceptions

When something goes wrong, Cano throws CanoException (which inherits the system Exception class). The Message field normally contains the error information passed by the underlying C++ library.

Example

   try
   {
      System.Console.WriteLine(Cano.getVersion());
      System.Console.WriteLine(Cano.getCanonicalSmiles("C1C=CC=CC=1", null));
      System.Console.WriteLine(Cano.getCanonicalSmiles("C1C=CC=CC=1", "-AROMATICITY"));
   }
   catch (Exception ex)
   {
      System.Console.WriteLine(ex.Message);
   }
 
Back to top
cano/dotnet.txt · Last modified: 2010/03/05 15:57 by root
 
 
This site belongs to SciTouch LLC. Contact us at info@scitouch.net if you have questions or feedback. See also Terms of Use.
This site is driven by Dokuwiki engine.