From: derek Date: Fri, 19 Nov 2010 16:14:54 +0000 (-0500) Subject: Added UTILS_EXPORT macro to classes in BamTools utility library X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ced2983817b0efe2c4ea08ff1479937ea9131017;p=bamtools.git Added UTILS_EXPORT macro to classes in BamTools utility library --- diff --git a/src/utils/bamtools_fasta.cpp b/src/utils/bamtools_fasta.cpp index ef1c742..3a72d7d 100644 --- a/src/utils/bamtools_fasta.cpp +++ b/src/utils/bamtools_fasta.cpp @@ -8,6 +8,9 @@ // Provides FASTA reading/indexing functionality. // *************************************************************************** +#include +using namespace BamTools; + #include #include #include @@ -15,9 +18,7 @@ #include #include #include -#include "bamtools_fasta.h" using namespace std; -using namespace BamTools; struct Fasta::FastaPrivate { diff --git a/src/utils/bamtools_fasta.h b/src/utils/bamtools_fasta.h index f64a087..d0ae8e4 100644 --- a/src/utils/bamtools_fasta.h +++ b/src/utils/bamtools_fasta.h @@ -3,7 +3,7 @@ // 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. // *************************************************************************** @@ -11,11 +11,12 @@ #ifndef BAMTOOLS_FASTA_H #define BAMTOOLS_FASTA_H +#include #include namespace BamTools { -class Fasta { +class UTILS_EXPORT Fasta { // ctor & dtor public: @@ -44,4 +45,4 @@ class Fasta { } // BAMTOOLS_FASTA_H -#endif // BAMTOOLS_FASTA_H \ No newline at end of file +#endif // BAMTOOLS_FASTA_H diff --git a/src/utils/bamtools_filter_engine.h b/src/utils/bamtools_filter_engine.h index cc93120..9ea1e8d 100644 --- a/src/utils/bamtools_filter_engine.h +++ b/src/utils/bamtools_filter_engine.h @@ -3,7 +3,7 @@ // 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 @@ -42,23 +42,23 @@ #ifndef BAMTOOLS_FILTER_ENGINE_H #define BAMTOOLS_FILTER_ENGINE_H +#include +#include +#include +#include #include #include #include #include #include #include -#include #include #include #include -#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 @@ -69,7 +69,7 @@ struct FilterCompareType { // FilterEngine template -class FilterEngine { +class UTILS_EXPORT FilterEngine { // ctor & dtor public: @@ -550,4 +550,4 @@ inline void FilterEngine::setRule(const std::string& ruleString) } // namespace BamTools -#endif // BAMTOOLS_FILTER_ENGINE_H \ No newline at end of file +#endif // BAMTOOLS_FILTER_ENGINE_H diff --git a/src/utils/bamtools_filter_properties.h b/src/utils/bamtools_filter_properties.h index 119da06..9de3e27 100644 --- a/src/utils/bamtools_filter_properties.h +++ b/src/utils/bamtools_filter_properties.h @@ -3,7 +3,7 @@ // 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 // @@ -40,18 +40,19 @@ #ifndef BAMTOOLS_FILTER_PROPERTIES_H #define BAMTOOLS_FILTER_PROPERTIES_H +#include +#include +#include #include #include #include -#include "bamtools_utilities.h" -#include "bamtools_variant.h" namespace BamTools { // ---------------------------------------------------------- // PropertyFilterValue -struct PropertyFilterValue { +struct UTILS_EXPORT PropertyFilterValue { // define valid ValueCompareTypes enum ValueCompareType { CONTAINS = 0 @@ -165,7 +166,7 @@ typedef std::map PropertyMap; // ---------------------------------------------------------- // PropertyFilter -struct PropertyFilter { +struct UTILS_EXPORT PropertyFilter { // data members PropertyMap Properties; }; @@ -178,7 +179,7 @@ typedef std::map FilterMap; // 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) diff --git a/src/utils/bamtools_filter_ruleparser.h b/src/utils/bamtools_filter_ruleparser.h index 7e3b1fd..b0ec0ab 100644 --- a/src/utils/bamtools_filter_ruleparser.h +++ b/src/utils/bamtools_filter_ruleparser.h @@ -3,7 +3,7 @@ // 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. // *************************************************************************** @@ -11,10 +11,10 @@ #ifndef BAMTOOLS_FILTER_RULEPARSER_H #define BAMTOOLS_FILTER_RULEPARSER_H +#include #include #include #include -#include "bamtools_utilities.h" namespace BamTools { @@ -315,4 +315,4 @@ void RuleParser::skipSpaces(void) { } // namespace BamTools -#endif // BAMTOOLS_FILTER_RULEPARSER_H \ No newline at end of file +#endif // BAMTOOLS_FILTER_RULEPARSER_H diff --git a/src/utils/bamtools_options.cpp b/src/utils/bamtools_options.cpp index 71aa2eb..c46d004 100644 --- a/src/utils/bamtools_options.cpp +++ b/src/utils/bamtools_options.cpp @@ -3,7 +3,7 @@ // 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 // --------------------------------------------------------------------------- @@ -17,14 +17,15 @@ // * (BamTools namespace, added stdin/stdout) (DB) // *************************************************************************** -#include "bamtools_options.h" +#include +using namespace BamTools; + #include #include #include #include #include using namespace std; -using namespace BamTools; string Options::m_programName; // the program name string Options::m_description; // the main description diff --git a/src/utils/bamtools_options.h b/src/utils/bamtools_options.h index 668ac52..7b9073d 100644 --- a/src/utils/bamtools_options.h +++ b/src/utils/bamtools_options.h @@ -3,7 +3,7 @@ // 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 // --------------------------------------------------------------------------- @@ -20,10 +20,12 @@ #ifndef BAMTOOLS_OPTIONS_H #define BAMTOOLS_OPTIONS_H +#include +#include + #include #include #include -#include "bamtools_variant.h" #ifndef WIN32 #include @@ -45,7 +47,7 @@ namespace BamTools { #define strtoui64 strtoull #endif -struct Option { +struct UTILS_EXPORT Option { // data members std::string Argument; @@ -62,7 +64,7 @@ struct Option { { } }; -struct OptionValue { +struct UTILS_EXPORT OptionValue { // data members bool* pFoundArgument; @@ -83,12 +85,12 @@ struct OptionValue { { } }; -struct OptionGroup { +struct UTILS_EXPORT OptionGroup { std::string Name; std::vector