// Provides FASTA reading/indexing functionality.
// ***************************************************************************
+#include <utils/bamtools_fasta.h>
+using namespace BamTools;
+
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <vector>
-#include "bamtools_fasta.h"
using namespace std;
-using namespace BamTools;
struct Fasta::FastaPrivate {
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 13 July 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides FASTA reading/indexing functionality.
// ***************************************************************************
#ifndef BAMTOOLS_FASTA_H
#define BAMTOOLS_FASTA_H
+#include <utils/utils_global.h>
#include <string>
namespace BamTools {
-class Fasta {
+class UTILS_EXPORT Fasta {
// ctor & dtor
public:
} // BAMTOOLS_FASTA_H
-#endif // BAMTOOLS_FASTA_H
\ No newline at end of file
+#endif // BAMTOOLS_FASTA_H
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 29 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides a generic filter engine based on filter-sets of properties,
// with possible "rules" (compound logical expressions) to create more complex
#ifndef BAMTOOLS_FILTER_ENGINE_H
#define BAMTOOLS_FILTER_ENGINE_H
+#include <utils/bamtools_filter_properties.h>
+#include <utils/bamtools_filter_ruleparser.h>
+#include <utils/bamtools_utilities.h>
+#include <utils/utils_global.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
-#include <sstream>
#include <string>
#include <utility>
#include <vector>
-#include "bamtools_filter_properties.h"
-#include "bamtools_filter_ruleparser.h"
-#include "bamtools_utilities.h"
namespace BamTools {
-struct FilterCompareType {
+struct UTILS_EXPORT FilterCompareType {
enum Type { AND = 0
, NOT
, OR
// FilterEngine
template <typename FilterChecker>
-class FilterEngine {
+class UTILS_EXPORT FilterEngine {
// ctor & dtor
public:
} // namespace BamTools
-#endif // BAMTOOLS_FILTER_ENGINE_H
\ No newline at end of file
+#endif // BAMTOOLS_FILTER_ENGINE_H
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 30 August 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides support data structures & methods for FilterEngine
//
#ifndef BAMTOOLS_FILTER_PROPERTIES_H
#define BAMTOOLS_FILTER_PROPERTIES_H
+#include <utils/bamtools_utilities.h>
+#include <utils/bamtools_variant.h>
+#include <utils/utils_global.h>
#include <iostream>
#include <map>
#include <string>
-#include "bamtools_utilities.h"
-#include "bamtools_variant.h"
namespace BamTools {
// ----------------------------------------------------------
// PropertyFilterValue
-struct PropertyFilterValue {
+struct UTILS_EXPORT PropertyFilterValue {
// define valid ValueCompareTypes
enum ValueCompareType { CONTAINS = 0
// ----------------------------------------------------------
// PropertyFilter
-struct PropertyFilter {
+struct UTILS_EXPORT PropertyFilter {
// data members
PropertyMap Properties;
};
// Property
// used to store properties known to engine & keep track of enabled state
-struct Property {
+struct UTILS_EXPORT Property {
std::string Name;
bool IsEnabled;
Property(const std::string& name, bool isEnabled = false)
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 21 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides a compound rule parser for FilterEngine.
// ***************************************************************************
#ifndef BAMTOOLS_FILTER_RULEPARSER_H
#define BAMTOOLS_FILTER_RULEPARSER_H
+#include <utils/bamtools_utilities.h>
#include <queue>
#include <stack>
#include <string>
-#include "bamtools_utilities.h"
namespace BamTools {
} // namespace BamTools
-#endif // BAMTOOLS_FILTER_RULEPARSER_H
\ No newline at end of file
+#endif // BAMTOOLS_FILTER_RULEPARSER_H
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 7 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Parses command line arguments and creates a help menu
// ---------------------------------------------------------------------------
// * (BamTools namespace, added stdin/stdout) (DB)
// ***************************************************************************
-#include "bamtools_options.h"
+#include <utils/bamtools_options.h>
+using namespace BamTools;
+
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <sstream>
using namespace std;
-using namespace BamTools;
string Options::m_programName; // the program name
string Options::m_description; // the main description
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 7 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Parses command line arguments and creates a help menu
// ---------------------------------------------------------------------------
#ifndef BAMTOOLS_OPTIONS_H
#define BAMTOOLS_OPTIONS_H
+#include <utils/bamtools_variant.h>
+#include <utils/utils_global.h>
+
#include <map>
#include <string>
#include <vector>
-#include "bamtools_variant.h"
#ifndef WIN32
#include <stdint.h>
#define strtoui64 strtoull
#endif
-struct Option {
+struct UTILS_EXPORT Option {
// data members
std::string Argument;
{ }
};
-struct OptionValue {
+struct UTILS_EXPORT OptionValue {
// data members
bool* pFoundArgument;
{ }
};
-struct OptionGroup {
+struct UTILS_EXPORT OptionGroup {
std::string Name;
std::vector<Option> Options;
};
-class Options {
+class UTILS_EXPORT Options {
// add option/argument rules
public:
} // namespace BamTools
-#endif // BAMTOOLS_OPTIONS_H
\ No newline at end of file
+#endif // BAMTOOLS_OPTIONS_H
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 16 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides pileup at position functionality for various tools.
// ***************************************************************************
+#include <utils/bamtools_pileup_engine.h>
+using namespace BamTools;
+
#include <iostream>
-#include "bamtools_pileup_engine.h"
using namespace std;
-using namespace BamTools;
// ---------------------------------------------
// PileupEnginePrivate implementation
#ifndef BAMTOOLS_PILEUP_ENGINE_H
#define BAMTOOLS_PILEUP_ENGINE_H
+#include <api/BamAlignment.h>
+#include <utils/utils_global.h>
#include <vector>
-#include "BamAlignment.h"
namespace BamTools {
// contains auxiliary data about a single BamAlignment
// at current position considered
-struct PileupAlignment {
+struct UTILS_EXPORT PileupAlignment {
// data members
BamAlignment Alignment;
};
// contains all data at a position
-struct PileupPosition {
+struct UTILS_EXPORT PileupPosition {
// data members
int RefId;
{ }
};
-class PileupVisitor {
+class UTILS_EXPORT PileupVisitor {
public:
PileupVisitor(void) { }
virtual void Visit(const PileupPosition& pileupData) =0;
};
-class PileupEngine {
+class UTILS_EXPORT PileupEngine {
public:
PileupEngine(void);
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 23 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides general utilities used by BamTools sub-tools.
// ***************************************************************************
+#include <api/BamMultiReader.h>
+#include <api/BamReader.h>
+#include <utils/bamtools_utilities.h>
+using namespace BamTools;
+
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
-#include "bamtools_utilities.h"
-#include "BamReader.h"
-#include "BamMultiReader.h"
using namespace std;
-using namespace BamTools;
namespace BamTools {
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 23 September 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides general utilities used by BamTools sub-tools.
// ***************************************************************************
#ifndef BAMTOOLS_UTILITIES_H
#define BAMTOOLS_UTILITIES_H
+#include <api/BamAux.h>
+#include <utils/utils_global.h>
#include <cassert>
#include <stdexcept>
#include <string>
-#include "BamAux.h"
#define BAMTOOLS_ASSERT_UNREACHABLE assert( false )
#define BAMTOOLS_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message );
class BamReader;
class BamMultiReader;
-class Utilities {
+class UTILS_EXPORT Utilities {
public:
// check if a file exists
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 2 June 2010
+// Last modified: 19 November 2010
// ---------------------------------------------------------------------------
// Provides a template-based variant type
// ---------------------------------------------------------------------------
#ifndef BAMTOOLS_VARIANT_H
#define BAMTOOLS_VARIANT_H
+#include <utils/utils_global.h>
#include <stdexcept>
-#include <typeinfo>
#include <string>
+#include <typeinfo>
namespace BamTools {
-class Variant {
+class UTILS_EXPORT Variant {
public:
Variant(void) : data(NULL) { }