]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/BamWriter.cpp
Did some housekeeping in BamAux.h - moved some constants to the files where they...
[bamtools.git] / src / api / BamWriter.cpp
index 2be38bbe9d160668448c8d48a8e421025139f445..c3c94efa1d99231f77bca2fb6075b35f522c4b01 100644 (file)
@@ -3,7 +3,7 @@
 // Marth Lab, Department of Biology, Boston College\r
 // All rights reserved.\r
 // ---------------------------------------------------------------------------\r
-// Last modified: 17 August 2010 (DB)\r
+// Last modified: 16 September 2010 (DB)\r
 // ---------------------------------------------------------------------------\r
 // Uses BGZF routines were adapted from the bgzf.c code developed at the Broad\r
 // Institute.\r
 using namespace BamTools;\r
 using namespace std;\r
 \r
+namespace BamTools {\r
+\r
+// BAM constants\r
+const int BT_SIZEOF_INT   = 4;\r
+const int BAM_CMATCH      = 0;\r
+const int BAM_CINS        = 1;\r
+const int BAM_CDEL        = 2;\r
+const int BAM_CREF_SKIP   = 3;\r
+const int BAM_CSOFT_CLIP  = 4;\r
+const int BAM_CHARD_CLIP  = 5;\r
+const int BAM_CPAD        = 6;\r
+\r
+} // namespace BamTools\r
+\r
 struct BamWriter::BamWriterPrivate {\r
 \r
     // data members\r