/** ** Copyright (c) 2007-2009 Illumina, Inc. ** ** This software is covered by the "Illumina Genome Analyzer Software ** License Agreement" and the "Illumina Source Code License Agreement", ** and certain third party copyright/licenses, and any user of this ** source file is bound by the terms therein (see accompanying files ** Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ** Illumina_Source_Code_License_Agreement.pdf and third party ** copyright/license notices). ** ** \file ElandOutput.cpp ** ** \brief Implementation for the ElandOutput class. ** ** ** \author Mohamed Zerara **/ #include #include #include #include "common/ElandOutput.hh" //namespace gac = casava::common; namespace casava { namespace common { ElandOutput::ElandOutput() : readID_(), read_(), nhood_(), details_() { } ElandOutput::~ElandOutput() { } ElandOutput::ElandOutput(const ElandOutput &rhs) : readID_(rhs.readID_), read_(rhs.read_), nhood_(rhs.nhood_), details_(rhs.details_) { } ElandOutput &ElandOutput::operator=(const ElandOutput &rhs) { if(this == &rhs) return *this; readID_ = rhs.readID_; read_ = rhs.read_; nhood_ = rhs.nhood_; details_ = rhs.details_; return *this; } const std::string &ElandOutput::getReadID() { return readID_; } const std::string &ElandOutput::getRead() { return read_; } const std::string &ElandOutput::getNhood() { return nhood_; } const std::string &ElandOutput::getDetails() { return details_; } std::istream & operator>>(std::istream& is, ElandOutput& eland) { is >> eland.readID_ >> eland.read_ >> eland.nhood_ >> eland.details_; return is; } std::ostream & operator<<(std::ostream &os, ElandOutput &eland) { os << "readId_ - " << eland.readID_ << "; read_ - " << eland.read_ << "; nhood_ - " << eland.nhood_ << "; details_ - " << eland.details_ << std::endl; return os; } } }