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 //----------------------------------------------------- writeMessage ----------- 00048 void ContigLink_t::writeMessage (Message_t & msg) const 00049 { 00050 Link_t::writeMessage (msg); 00051 00052 try { 00053 00054 msg . setMessageCode (ContigLink_t::NCODE); 00055 00056 // put ContigLink_t specifics here 00057 } 00058 catch (ArgumentException_t) { 00059 00060 msg . clear( ); 00061 throw; 00062 } 00063 } 00064 00065 00066 //----------------------------------------------------- writeRecord ------------ 00067 void ContigLink_t::writeRecord (ostream & fix, ostream & var) const 00068 { 00069 Link_t::writeRecord (fix, var); 00070 00071 // put ContigLink_t specifics here 00072 }