]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/BamIndexFactory_p.h
Cleaned up intra-API includes & moved version numbers to 2.0.0
[bamtools.git] / src / api / internal / BamIndexFactory_p.h
index 4ef95851c023021d84f7ff30b740b2c9a059937b..4e4f1cfbf27cba533597930f93fccd17c384a98a 100644 (file)
@@ -1,9 +1,8 @@
 // ***************************************************************************
 // BamIndexFactory_p.h (c) 2011 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
-// All rights reserved.
 // ---------------------------------------------------------------------------
-// Last modified: 26 January 2011 (DB)
+// Last modified: 10 October 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides interface for generating BamIndex implementations
 // ***************************************************************************
@@ -11,7 +10,7 @@
 #ifndef BAMINDEX_FACTORY_P_H
 #define BAMINDEX_FACTORY_P_H
 
-#include <api/BamIndex.h>
+#include "api/BamIndex.h"
 #include <string>
 
 namespace BamTools {
@@ -22,9 +21,11 @@ class BamIndexFactory {
     // static interface methods
     public:
         // creates a new BamIndex object, depending on extension of @indexFilename
-        static BamIndex* CreateIndexFromFilename(const std::string& indexFilename);
+        static BamIndex* CreateIndexFromFilename(const std::string& indexFilename,
+                                                 BamReaderPrivate* reader);
         // creates a new BamIndex object, of requested @type
-        static BamIndex* CreateIndexOfType(const BamIndex::IndexType& type);
+        static BamIndex* CreateIndexOfType(const BamIndex::IndexType& type,
+                                           BamReaderPrivate* reader);
         // returns name of existing index file that corresponds to @bamFilename
         // will defer to @preferredType if possible
         // if @preferredType not found, will attempt to load any supported index type