// ***************************************************************************
// SamHeaderValidator.h (c) 2010 Derek Barnett
// Marth Lab, Department of Biology, Boston College
-// All rights reserved.
// ---------------------------------------------------------------------------
-// Last modified: 13 January 2011 (DB)
+// Last modified: 6 October 2011 (DB)
// ---------------------------------------------------------------------------
// Provides functionality for validating SamHeader data
// ***************************************************************************
//
// We mean it.
+#include <iostream>
#include <string>
#include <vector>
// SamHeaderValidator interface
public:
+
+ // prints error & warning messages
+ void PrintMessages(std::ostream& stream);
+
// validates SamHeader data, returns true/false accordingly
- // prints error & warning messages to stderr when @verbose is true
- bool Validate(bool verbose = false);
+ bool Validate(void);
// internal methods
private:
// error reporting
void AddError(const std::string& message);
void AddWarning(const std::string& message);
- void PrintErrorMessages(void);
- void PrintWarningMessages(void);
+ void PrintErrorMessages(std::ostream& stream);
+ void PrintWarningMessages(std::ostream& stream);
// data members
private: