import(methods)
import(utils)
import(Biobase)
import(DBI)
import(RSQLite)

exportClasses(
    ## from R/AllClasses.R
    "Bimap",
    "FlatBimap",
    "AnnObj",
    "AnnDbObj",
    #"AnnDbTable",
    "L2Rlink",
    "AnnDbBimap",
    "GoAnnDbBimap",
    "Go3AnnDbBimap",
    "GOTermsAnnDbBimap",
    "AnnDbMap",
    "IpiAnnDbMap",
    "AgiAnnDbMap",
    "ProbeAnnDbBimap",
    "ProbeAnnDbMap",
    "ProbeIpiAnnDbMap",
    "ProbeGo3AnnDbBimap",
              

    ## from R/GOTerms.R
    "GOTerms",

    ## from R/AnnDbPkg-maker.R
    "AnnDbPkgSeed",

    ## Special Frame objects
    "GOFrame",
    "GOAllFrame",
    "KEGGFrame"
              
)

exportMethods(
    ## from R/AnnDbObj-lowAPI.R
    "dbconn",
    "dbfile",
    "dbmeta",
    "dbschema",
    "dbInfo",
    #"Ltablename", "Rtablename",
    #"Lfilter", "Rfilter",
    #"flatten",

    ## from R/Bimap.R (the Bimap interface)
    "direction", "direction<-",
    "revmap",
    "colnames", "colmetanames",
    "Lkeyname", "Rkeyname", "keyname",
    "tagname",
    "Rattribnames", "Rattribnames<-",
    "Lkeys", "Rkeys", "keys",
    "Lkeys<-", "Rkeys<-", "keys<-",
    "subset",
    "[",
    "Llength", "Rlength", "length",
    "isNA",
    "mappedLkeys", "mappedRkeys", "mappedkeys",
    "count.mappedLkeys", "count.mappedRkeys", "count.mappedkeys",
    "show",
    "summary",
    "toTable",
    "head", "tail",
    "nrow",
    "links",
    "count.links",
    "nhit",
    "ncol", "dim",
    "toggleProbes",
    "hasMultiProbes","hasSingleProbes",
    "getBimapFilters","setInpBimapFilter",

    ## from R/GOTerms.R
    "GOID",
    "Term",
    "Ontology",
    "Synonym",
    "Secondary",
    "Definition",

    ## Special Frame Methods
    "GOFrame",
    "GOAllFrame",
    "getGOFrameData",
    "KEGGFrame",
    "getKEGGFrameData",
              
              
    ## from R/BimapFormatting.R
    "as.list",
    #"toLList", "toRList", "toList",
    "as.character",

    ## from R/AnnDbBimap-envirAPI.R
    "ls",
    "mget",
    "eapply",
    "get",
    "exists",
    "[[",
    "$",
    "contents",
    "sample",

    ## more...
    "initialize",
    "makeAnnDbPkg"
)

export(
    unlist2,

    ## from R/AnnDbObj-lowAPI.R
    showQCData,
       
    ## from R/SQL.R
    debugSQL,

    ## from R/GOTerms.R
    GOTerms,

    ## from R/AnnDbPkg-templates-common.R
    dbFileConnect,
    dbFileDisconnect,
    #addToNamespaceAndExport,
    mergeToNamespaceAndExport,

    ## from the R/createAnnObjs.*_DB.R files
    createAnnObjs.SchemaChoice,

    ## from R/AnnDbPkg-maker.R
    loadAnnDbPkgIndex,

    ## from R/AnnDbPkg-checker.R
    #checkProperty0,
    checkMAPCOUNTS,

    ## helpers for map creation, temporary
    ## until pluggable maps come online
    make_eg_to_go_map,
    make_go_to_eg_map,
    toSQLStringSet,

    ## help functions for making sqlite files
    populateDB,       

    ## wrapper functions for making chip packages
    makeDBPackage,

    createSimpleBimap,
    available.db0pkgs,
    available.dbschemas, 
    available.chipdbschemas,
       
    #Convenience function to make the intermediate DB pkgs
    wrapBaseDBPackages,

    #Convenience function to allow automatic mapping of IDs:
    inpIDMapper,
    intraIDMapper,
    idConverter,
       
    #Needs to be exported from RSQLite
    summary,

    ## from R/makeProbePackage.R
    print.probetable,
    getProbeDataAffy,
    getProbeData_1lq,
    makeProbePackage
)
