83 return "Validator job";
89 string jobName =
"Validating";
90 string err_msg, logMsg = jobName +
" - exception in Run() ";
101 }
catch (std::exception& e) {
109 if (!err_msg.empty()) {
123 validator::CValidator Validator(*
om);
124 Uint4 validator_opts =
125 validator::CValidator::eVal_do_tax_lookup |
126 validator::CValidator::eVal_remote_fetch |
127 validator::CValidator::eVal_far_fetch_cds_products |
128 validator::CValidator::eVal_far_fetch_mrna_products |
129 validator::CValidator::eVal_val_exons |
130 validator::CValidator::eVal_need_isojta |
131 validator::CValidator::eVal_use_entrez;
134 validator_opts |= validator::CValidator::eVal_indexer_version;
139 validator_opts |= validator::CValidator::eVal_val_align;
143 validator_opts |= validator::CValidator::eVal_inference_accns;
146 TConstScopedObjects::size_type nInputObjects(
m_InputObjects.size());
147 for(TConstScopedObjects::size_type iInputObjects = 0;
148 iInputObjects < nInputObjects;
150 const type_info& ObjType(
typeid(*(
m_InputObjects[iInputObjects].
object.GetPointer())));
154 ValidError = Validator.Validate(*pSeq_entry,
162 ValidError = Validator.Validate(seh, validator_opts);
172 ValidError = Validator.Validate(ah, validator_opts);
175 ValidError = Validator.Validate(*
dynamic_cast<const CSeq_feat*
>(
m_InputObjects[iInputObjects].
object.GetPointer()),
180 ValidError = Validator.Validate(*
dynamic_cast<const CBioSource*
>(
m_InputObjects[iInputObjects].
object.GetPointer()),
185 ValidError = Validator.Validate(*
dynamic_cast<const CPubdesc*
>(
m_InputObjects[iInputObjects].
object.GetPointer()),
189 if (ObjType ==
typeid(
CSeq_id)) {
199 if(ValidError && ValidError->
TotalSize()) {
201 ValidErrs.insert(ValidErrs.end(), errs.begin(), errs.end());
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAppJobError Default implementation for IAppJobError - encapsulates a text error message.
@Pubdesc.hpp User-defined methods of the data storage class.
namespace ncbi::objects::
TConstScopedObjects m_InputObjects
virtual CConstIRef< IAppJobError > GetError()
Returns IAppJobError object describing internal error that caused the Job to fail.
virtual EJobState Run()
Function that does all the useful work, called by the Engine.
virtual string GetDescr() const
Returns a human readable description of the Job (optional)
virtual CRef< CObject > GetResult()
Returns the Job Result.
CRef< objects::CUser_object > m_Params
CRef< CAppJobError > m_Error
CTableDataValidateJob(const TConstScopedObjects &objects, const objects::CUser_object *params)
virtual CConstIRef< IAppJobProgress > GetProgress()
return progress object, the function shall be synchronized internally.
CRef< CObject > m_ResultErrs
static bool GetDoInference(const objects::CUser_object ¶ms)
static bool GetDoAlignment(const objects::CUser_object ¶ms)
SIZE_TYPE TotalSize() const
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
virtual const char * what(void) const noexcept
Standard report (includes full backlog).
virtual bool IsCanceled() const override
EJobState
Job states (describe FSM)
CLockerGuard x_GetGuard()
vector< SConstScopedObject > TConstScopedObjects
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
CSeq_entry_Handle GetParentEntry(void) const
Return a handle for the parent seq-entry of the bioseq.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
CSeq_entry_Handle GetTopLevelEntry(void) const
Get top level Seq-entry handle.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
T & GetData(void)
Get data as a reference.
void Reset(void)
Reset reference object.
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TErrs & GetErrs(void) const
Get the Errs member data.
vector< CRef< CValidErrItem > > TErrs
CRef< objects::CObjectManager > om