46 #include <wx/filename.h>
52 : m_Params(params), m_FileNames(
filenames)
63 return "Loading VCF (Variant Call Format) Files";
81 const wxString& fn = *it;
99 bool has_name =
false;
104 CSeq_annot::TDesc::Tdata::const_iterator desc_iter =
data.begin();
105 for ( ; desc_iter !=
data.end(); ++desc_iter) {
106 if ((*desc_iter)->IsTitle() ) {
107 label = (*desc_iter)->GetTitle();
110 if ((*desc_iter)->IsName() ) {
111 label = (*desc_iter)->GetName();
119 wxFileName wx_fn(fn);
120 string fileName =
ToStdString(wx_fn.GetFullName());
133 catch (
const exception& e) {
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CMapAssemblyParams GetMapAssembly() const
string GetAssemblyAcc() const
bool GetUseMapping() const
void x_CreateMapper(const string &assembly)
void x_UpdateMap(objects::CSeq_annot &annot)
bool x_ShowMappingDlg(IObjectLoader::TObjects &objects)
void SetCanceler(ICanceled *=nullptr)
void x_ShowErrorsDlg(const wxString &title)
void x_UpdateHTMLResults(const wxString &object, objects::ILineErrorListener *errCont, const string &exception="", const string &error_msg="", const wxString &objectName=wxT("File:"))
void SetNameDesc(const string &name)
Simple implementation of ILineReader for i(o)streams.
CRef< CSeq_annot > ReadSeqAnnot(ILineReader &, ILineErrorListener *=nullptr) override
Read an object from a given line reader, render it as a single Seq-annot, if possible.
Interface for testing cancellation request in a long lasting operation.
vector< SObject > TObjects
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const string & GetMsg(void) const
Get message string.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
virtual string GetDescription() const
virtual TObjects & GetObjects()
virtual bool PreExecute()
virtual bool Execute(ICanceled &canceled)
virtual bool PostExecute()
vector< wxString > m_FileNames
CVcfObjectLoader(const CBedLoadParams ¶ms, const vector< wxString > &filenames)
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
virtual bool IsCanceled(void) const =0
static const char label[]
const Tdata & Get(void) const
Get the member data.
const TDesc & GetDesc(void) const
Get the Desc member data.
bool CanGetDesc(void) const
Check if it is safe to call GetDesc method.
bool CanGet(void) const
Check if it is safe to call Get method.
list< CRef< CAnnotdesc > > Tdata
Lightweight interface for getting lines of data with minimal memory copying.
string ToStdString(const wxString &s)