ContigLink_AMOS.cc

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 #include "ContigLink_AMOS.hh"
00011 using namespace AMOS;
00012 using namespace std;
00013 
00014 
00015 
00016 
00017 //================================================ ContigLink_t ================
00018 const NCode_t ContigLink_t::NCODE = M_CONTIGLINK;
00019 
00020 
00021 //----------------------------------------------------- readMessage ------------
00022 void ContigLink_t::readMessage (const Message_t & msg)
00023 {
00024   Link_t::readMessage (msg);
00025 
00026   try {
00027     Link_t::setNodeType (NULL_NCODE);
00028   }
00029   catch (ArgumentException_t) {
00030     
00031     clear( );
00032     throw;
00033   }
00034 
00035 }
00036 
00037 
00038 //----------------------------------------------------- readRecord -------------
00039 void ContigLink_t::readRecord (istream & fix, istream & var)
00040 {
00041   Link_t::readRecord (fix, var);
00042 
00043   Link_t::setNodeType (NULL_NCODE);
00044 }
00045 
00046 
00047 //----------------------------------------------------- readRecordFix ----------
00048 void ContigLink_t::readRecordFix (istream & fix)
00049 {
00050   Link_t::readRecordFix (fix);
00051 
00052   Link_t::setNodeType (NULL_NCODE);
00053 }
00054 
00055 
00056 //----------------------------------------------------- writeMessage -----------
00057 void ContigLink_t::writeMessage (Message_t & msg) const
00058 {
00059   Link_t::writeMessage (msg);
00060 
00061   try {
00062 
00063     msg . setMessageCode (ContigLink_t::NCODE);
00064 
00065     // put ContigLink_t specifics here
00066   }
00067   catch (ArgumentException_t) {
00068 
00069     msg . clear( );
00070     throw;
00071   }
00072 }
00073 
00074 
00075 //----------------------------------------------------- writeRecord ------------
00076 void ContigLink_t::writeRecord (ostream & fix, ostream & var) const
00077 {
00078   Link_t::writeRecord (fix, var);
00079 
00080   // put ContigLink_t specifics here
00081 }

Generated on Mon Feb 22 17:36:27 2010 for libAMOS by  doxygen 1.4.7