X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Futils%2Fbamtools_options.h;h=2afe1297661e80cdff94c4dd75631df1b97302d5;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=54c476422accd6221e12127a5138e47b902f26eb;hpb=0180d7256f5c781364b04559b39ed2db41585787;p=bamtools.git diff --git a/src/utils/bamtools_options.h b/src/utils/bamtools_options.h index 54c4764..2afe129 100644 --- a/src/utils/bamtools_options.h +++ b/src/utils/bamtools_options.h @@ -1,9 +1,8 @@ // *************************************************************************** // bamtools_options.h (c) 2010 Derek Barnett, Erik Garrison // Marth Lab, Department of Biology, Boston College -// All rights reserved. // --------------------------------------------------------------------------- -// Last modified: 1 June 2010 +// Last modified: 10 October 2011 // --------------------------------------------------------------------------- // Parses command line arguments and creates a help menu // --------------------------------------------------------------------------- @@ -11,19 +10,21 @@ // The Mosaik suite's command line parser class: COptions // (c) 2006 - 2009 Michael Str�mberg // Marth Lab, Department of Biology, Boston College -// Dual licenced under the GNU General Public License 2.0+ license or as -// a commercial license with the Marth Lab. +// Re-licensed under MIT License with author's permission. // -// * Modified to fit BamTools code-style, otherwise code is same. (DB) +// * Modified slightly to fit BamTools, otherwise code is same. +// * (BamTools namespace, added stdin/stdout) (DB) // *************************************************************************** #ifndef BAMTOOLS_OPTIONS_H #define BAMTOOLS_OPTIONS_H +#include "utils/bamtools_variant.h" +#include "utils/utils_global.h" + #include #include #include -#include "bamtools_variant.h" #ifndef WIN32 #include @@ -32,8 +33,8 @@ namespace BamTools { #define ARGUMENT_LENGTH 35 -#define DESC_LENGTH_FIRST_ROW 50 -#define DESC_LENGTH 39 +#define DESC_LENGTH_FIRST_ROW 30 +#define DESC_LENGTH 42 #define MAX_LINE_LENGTH 78 #ifdef WIN32 @@ -45,7 +46,7 @@ namespace BamTools { #define strtoui64 strtoull #endif -struct Option { +struct UTILS_EXPORT Option { // data members std::string Argument; @@ -62,7 +63,7 @@ struct Option { { } }; -struct OptionValue { +struct UTILS_EXPORT OptionValue { // data members bool* pFoundArgument; @@ -83,12 +84,12 @@ struct OptionValue { { } }; -struct OptionGroup { +struct UTILS_EXPORT OptionGroup { std::string Name; std::vector