#include <Universal_AMOS.hh>
Inheritance diagram for AMOS::Universal_t:
Public Member Functions | |
Universal_t () | |
Constructs an empty Universal_t object. | |
Universal_t (const Universal_t &source) | |
Copy constructor. | |
virtual | ~Universal_t () |
Virtual destructor. | |
virtual void | clear () |
Clears all object data, reinitializes the object. | |
const std::string & | getComment () const |
Get the comment string. | |
const Status_t | getStatus () const |
Get the status value. | |
virtual NCode_t | getNCode () const |
Get the AMOS NCode type identifier. | |
virtual void | readMessage (const Message_t &msg) |
Reads in data from a Message object. | |
void | setComment (const std::string &comment) |
Set the comment string. | |
void | setStatus (Status_t status) |
Set the status value. | |
virtual void | writeMessage (Message_t &msg) const |
Writes data to a Message object. | |
const std::string & | getEID () const |
Get the external ID. | |
ID_t | getIID () const |
Get the internal ID. | |
bool | isRemoved () const |
Check if the object is waiting to be removed from the bank. | |
bool | isModified () const |
Check if the object has been modified. | |
bool | isFlagA () const |
Check the value of flag A. | |
bool | isFlagB () const |
Check the value of flag B. | |
void | setEID (const std::string &eid) |
Set the external ID. | |
void | setFlagA (bool flag) |
Set flag A. | |
void | setFlagB (bool flag) |
Set flag B. | |
void | setIID (ID_t iid) |
Set the internal ID. | |
Static Public Attributes | |
const NCode_t | NCODE = M_UNIVERSAL |
The NCode type identifier for this object. | |
Protected Member Functions | |
virtual void | readRecord (std::istream &fix, std::istream &var) |
Read selected class members from a biserial record. | |
virtual void | writeRecord (std::ostream &fix, std::ostream &var) const |
Write selected class members to a biserial record. | |
Protected Attributes | |
ID_t | iid_m |
internal ID (integer AMOS identifier) | |
std::string | eid_m |
external ID (anything you want sans newlines) | |
BankFlags_t | flags_m |
bank flags, derived classes may use "nibble" |
All AMOS objects that can be read as Messages and stored in a Bank should be derived from this class. In addition, the single comment field in this class can be used for storage of any data that a type does not yet exist for, perhaps in XML format or similar.
Definition at line 34 of file Universal_AMOS.hh.
|
Constructs an empty Universal_t object. Set IID to NULL_ID, comment to empty string and all flags to false. Definition at line 72 of file Universal_AMOS.hh. References AMOS::NULL_STATUS. |
|
Copy constructor. Definition at line 81 of file Universal_AMOS.hh. |
|
Virtual destructor. Definition at line 90 of file Universal_AMOS.hh. |
|
Clears all object data, reinitializes the object.
Reimplemented from AMOS::IBankable_t.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 97 of file Universal_AMOS.hh. References AMOS::NULL_STATUS. Referenced by AMOS::Sequence_t::clear(), AMOS::Scaffold_t::clear(), AMOS::Overlap_t::clear(), AMOS::Link_t::clear(), AMOS::Library_t::clear(), AMOS::Layout_t::clear(), AMOS::Kmer_t::clear(), AMOS::Index_t::clear(), AMOS::Group_t::clear(), AMOS::Fragment_t::clear(), readMessage(), and writeMessage(). |
|
Get the comment string.
Referenced by AMOS::operator<<(). |
|
Get the external ID.
References AMOS::IBankable_t::eid_m. Referenced by AMOS::Contig_t::writeUMD(). |
|
Get the internal ID.
References AMOS::ID_t, and AMOS::IBankable_t::iid_m. Referenced by AMOS::Index_t::buildContigFeature(), AMOS::Index_t::buildContigScaffold(), AMOS::Index_t::buildReadContig(), AMOS::Index_t::buildReadLibrary(), AMOS::Index_t::buildScaffoldFeature(), and AMOS::operator<<(). |
|
Get the AMOS NCode type identifier.
Implements AMOS::IBankable_t.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 128 of file Universal_AMOS.hh. References AMOS::NCode_t. |
|
Get the status value.
References AMOS::Status_t. |
|
Check the value of flag A.
References AMOS::IBankable_t::flags_m. Referenced by writeMessage(), and AMOS::Overlap_t::writeMessage(). |
|
Check the value of flag B.
References AMOS::IBankable_t::flags_m. Referenced by writeMessage(), and AMOS::Overlap_t::writeMessage(). |
|
Check if the object has been modified.
References AMOS::IBankable_t::flags_m. |
|
Check if the object is waiting to be removed from the bank.
References AMOS::IBankable_t::flags_m. |
|
|
Read selected class members from a biserial record. Reads the fixed and variable length streams from a biserial record and initializes the class members to the values stored within. Used in translating a biserial IBankable object, and needed to retrieve objects from a bank.
Implements AMOS::IBankable_t.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 46 of file Universal_AMOS.hh. Referenced by AMOS::Sequence_t::readRecord(), AMOS::Scaffold_t::readRecord(), AMOS::Overlap_t::readRecord(), AMOS::Link_t::readRecord(), AMOS::Library_t::readRecord(), AMOS::Layout_t::readRecord(), AMOS::Kmer_t::readRecord(), AMOS::Index_t::readRecord(), AMOS::Group_t::readRecord(), AMOS::Fragment_t::readRecord(), and AMOS::Feature_t::readRecord(). |
|
Set the comment string.
|
|
Set the external ID. Will only use the characters up to but not including the first newline.
References AMOS::IBankable_t::eid_m, and AMOS::NL_CHAR. Referenced by AMOS::Contig_t::readUMD(). |
|
Set flag A. Has no effect on the actual object in memory other than setting a flag. This is one of two user accessible flags to be used as needed, the other is flag B.
References AMOS::IBankable_t::flags_m. Referenced by readMessage(), and AMOS::Overlap_t::readMessage(). |
|
Set flag B. Has no effect on the actual object in memory other than setting a flag. This is one of two user accessible flags to be used as needed, the other is flag A.
References AMOS::IBankable_t::flags_m. Referenced by readMessage(), and AMOS::Overlap_t::readMessage(). |
|
Set the internal ID.
References AMOS::ID_t, and AMOS::IBankable_t::iid_m. |
|
Set the status value.
References AMOS::Status_t. Referenced by readMessage(). |
|
Writes data to a Message object. Writes the data contained in a Messagable object to a Message object. All previous data in the Message will be cleared or overwritten.
Implements AMOS::IMessagable_t.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 72 of file Universal_AMOS.cc. References clear(), AMOS::F_COMMENT, AMOS::F_EID, AMOS::F_FLAG, AMOS::F_IID, AMOS::F_STATUS, AMOS::IBankable_t::isFlagA(), AMOS::IBankable_t::isFlagB(), AMOS::NULL_ID, AMOS::NULL_STATUS, and AMOS::NULL_STRING. Referenced by AMOS::Sequence_t::writeMessage(), AMOS::Scaffold_t::writeMessage(), AMOS::Overlap_t::writeMessage(), AMOS::Link_t::writeMessage(), AMOS::Library_t::writeMessage(), AMOS::Layout_t::writeMessage(), AMOS::Kmer_t::writeMessage(), AMOS::Index_t::writeMessage(), AMOS::Group_t::writeMessage(), AMOS::Fragment_t::writeMessage(), and AMOS::Feature_t::writeMessage(). |
|
Write selected class members to a biserial record. Writes the fixed and variable length streams to a biserial record. Used in generating a biserial IBankable object, and needed to commit objects to a bank. Should not write the flags, EID, or IID of the object because the bank will handle the storage of these fields on its own.
Implements AMOS::IBankable_t.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 54 of file Universal_AMOS.hh. Referenced by AMOS::Sequence_t::writeRecord(), AMOS::Scaffold_t::writeRecord(), AMOS::Overlap_t::writeRecord(), AMOS::Link_t::writeRecord(), AMOS::Library_t::writeRecord(), AMOS::Layout_t::writeRecord(), AMOS::Kmer_t::writeRecord(), AMOS::Index_t::writeRecord(), AMOS::Group_t::writeRecord(), AMOS::Fragment_t::writeRecord(), and AMOS::Feature_t::writeRecord(). |
|
external ID (anything you want sans newlines) Definition at line 66 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::getEID(), and AMOS::IBankable_t::setEID(). |
|
bank flags, derived classes may use "nibble" Definition at line 68 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::isFlagA(), AMOS::IBankable_t::isFlagB(), AMOS::IBankable_t::isModified(), AMOS::IBankable_t::isRemoved(), AMOS::IBankable_t::setFlagA(), and AMOS::IBankable_t::setFlagB(). |
|
internal ID (integer AMOS identifier) Definition at line 64 of file Bank_AMOS.hh. Referenced by AMOS::IBankable_t::clear(), AMOS::IBankable_t::getIID(), AMOS::IBankable_t::IBankable_t(), and AMOS::IBankable_t::setIID(). |
|
The NCode type identifier for this object.
Reimplemented in AMOS::Contig_t, AMOS::ContigEdge_t, AMOS::ContigLink_t, AMOS::Edge_t, AMOS::Feature_t, AMOS::Fragment_t, AMOS::Group_t, AMOS::Index_t, AMOS::Kmer_t, AMOS::Layout_t, AMOS::Library_t, AMOS::Link_t, AMOS::Overlap_t, AMOS::Read_t, AMOS::Scaffold_t, AMOS::ScaffoldEdge_t, AMOS::ScaffoldLink_t, and AMOS::Sequence_t. Definition at line 18 of file Universal_AMOS.cc. |