NCBI C++ ToolKit
|
Search Toolkit Book for CProjectFileWriter
#include "projectfilewriter.hpp"
(Private to src/gui/app/project_tools
.)
Public Types | |
typedef CFormatGuess::EFormat | EFormat |
Public Member Functions | |
CProjectFileWriter (CRef< CScope > tScope) | |
void | AddToScope (CConstRef< CSerialObject > Object) |
bool | WriteFile (const string &Filename, CConstRef< CSerialObject > Object, EFormat Format) |
Private Member Functions | |
bool | x_WriteFile (CNcbiOstream &Out, CConstRef< CSerialObject > Object, EFormat Format) |
bool | x_WriteObject (CNcbiOstream &Out, CConstRef< CSerialObject > Object, ESerialDataFormat Format) |
bool | x_WriteGtf (CNcbiOstream &Out, CConstRef< CSerialObject > Object) |
TGi | x_FindParent (TGi Gi) |
TGi | x_GetAnnotId (CConstRef< CSeq_annot > Annot) |
TGi | x_GetGi (CConstRef< CSeq_id > Id) |
Private Attributes | |
CRef< CScope > | Scope |
Definition at line 51 of file projectfilewriter.hpp.
Definition at line 54 of file projectfilewriter.hpp.
Definition at line 91 of file projectfilewriter.cpp.
void CProjectFileWriter::AddToScope | ( | CConstRef< CSerialObject > | Object | ) |
Definition at line 97 of file projectfilewriter.cpp.
References CScope::AddBioseq(), CScope::AddSeq_annot(), CScope::AddTopLevelSeqEntry(), CSimpleOM::GetBioseqHandle(), CConstRef< C, Locker >::GetPointer(), CSerialObject::GetThisTypeInfo(), Handle, and Scope.
bool CProjectFileWriter::WriteFile | ( | const string & | Filename, |
CConstRef< CSerialObject > | Object, | ||
EFormat | Format | ||
) |
Definition at line 116 of file projectfilewriter.cpp.
References out(), Out(), and x_WriteFile().
Definition at line 215 of file projectfilewriter.cpp.
References CScope::eManualTSEs, CSeqMap::eSeqEnd, CSeqMap::eSeqRef, CScope::GetAllTSEs(), Handle, ITERATE, Map(), NULL, Scope, SSeqMapSelector::SetRange(), x_GetGi(), and ZERO_GI.
|
private |
Definition at line 254 of file projectfilewriter.cpp.
References CSeq_annot_Base::GetData(), CSeq_annot_Base::C_Data::GetFtable(), CSeq_loc::GetId(), CSeq_feat_Base::GetLocation(), ITERATE, x_GetGi(), and ZERO_GI.
Definition at line 270 of file projectfilewriter.cpp.
References CSeq_id_Base::e_Gi, CScope::GetBioseqHandle(), CSeq_id_Base::GetGi(), CSeq_id_Handle::GetSeqId(), Handle, ITERATE, Scope, CSeq_id_Base::Which(), and ZERO_GI.
Referenced by x_FindParent(), and x_GetAnnotId().
|
private |
Definition at line 130 of file projectfilewriter.cpp.
References CFormatGuess::eBinaryASN, CFormatGuess::eGtf, eSerial_AsnBinary, eSerial_AsnText, eSerial_Xml, CFormatGuess::eTextASN, eUnknown, CFormatGuess::eUnknown, CFormatGuess::eXml, NCBI_THROW, Out(), x_WriteGtf(), and x_WriteObject().
Referenced by WriteFile().
|
private |
Definition at line 187 of file projectfilewriter.cpp.
References eSerial_Xml, CScope::GetBioseqHandle(), CSeq_id_Handle::GetHandle(), CConstRef< C, Locker >::GetPointer(), CScope::GetSeq_annotHandle(), CSerialObject::GetThisTypeInfo(), Out(), Scope, CGff2Writer::WriteBioseqHandle(), CGff2Writer::WriteFooter(), CGtfWriter::WriteHeader(), CGff2Writer::WriteSeqAnnotHandle(), and x_WriteObject().
Referenced by x_WriteFile().
|
private |
Definition at line 171 of file projectfilewriter.cpp.
References Error(), LOG_POST, CObjectOStream::Open(), and Out().
Referenced by x_WriteFile(), and x_WriteGtf().
Definition at line 65 of file projectfilewriter.hpp.
Referenced by AddToScope(), x_FindParent(), x_GetGi(), and x_WriteGtf().