////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008 The Regents of the University of California
//
// This file is part of Qbox
//
// Qbox is distributed under the terms of the GNU General Public License
// as published by the Free Software Foundation, either version 2 of
// the License, or (at your option) any later version.
// See the file COPYING in the root directory of this distribution
// or .
//
////////////////////////////////////////////////////////////////////////////////
//
// SampleWriter.h
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SampleWriter.h,v 1.7 2008-09-08 16:26:36 fgygi Exp $
#ifndef SAMPLEWRITER_H
#define SAMPLEWRITER_H
#include "Context.h"
#include
class Sample;
class SampleWriter
{
private:
const Context& ctxt_;
public:
SampleWriter(const Context& ctxt);
void writeSample(const Sample& s, const std::string filename,
std::string description,
bool base64, bool atomsonly, bool serial, bool save_wfv);
};
class SampleWriterException
{
public:
std::string msg;
SampleWriterException(std::string s) : msg(s) {}
};
#endif