#if 0 /* * This interface is supposed to grow into a service that can host a database * like treebase (perhaps a local version?) through the cipres architecture. * * $Id: MyTreeBase.idl 1632 2006-07-11 21:59:01Z rvosa $ */ #include "api2/IO.idl" #include "api2/Admin.idl" module CipresIDL_api2 { interface TreeDB : Scriptable { typedef sequence stringArray; //used for list of taxon names string findTaxa(in stringArray taxa); //returns taxa ID; "" if taxa matching array not found string setTaxa(in stringArray taxa); //establishes block of taxa and returns ID long getNumberOfTrees(in string taxaID); void putTree(in string taxaID, in Tree t); //could alternatively return treeID as string, or tree index as number (long) Tree getTree(in string taxaID, in long whichTree); //iterator to retrieve a particular tree string getDatabaseName(); }; interface TreeDBFactory { TreeDB build(in string clientID); //establishes a session for client. Give each client its own tree object }; }; #endif