|
NCBI C++ ToolKit
|
Search Toolkit Book for CValidErrItem
#include <objects/valerr/ValidErrItem.hpp>
Inheritance diagram for CValidErrItem:
Collaboration diagram for CValidErrItem:Public Member Functions | |
| CValidErrItem () | |
| ~CValidErrItem () | |
| EDiagSev | GetSeverity () const |
| const string | GetErrCode () const |
| const string | GetErrGroup () const |
| const string | GetVerbose () const |
| const CSerialObject & | GetObject () const |
| bool | IsSetObject () const |
| void | SetObject (const CSerialObject &obj) |
| bool | IsSetContext () const |
| const CSeq_entry & | GetContext () const |
| void | SetContext (CConstRef< CSeq_entry > ctx) |
| void | SetFeatureObjDescFromFields () |
| CValidErrItem (EDiagSev sev, unsigned int ec, const string &msg, const string &obj_desc, const CSerialObject *obj, const CSeq_entry *context, const string &acc, const int ver, const int seq_offset=0) | |
Public Member Functions inherited from CValidErrItem_Base | |
| CValidErrItem_Base (void) | |
| virtual | ~CValidErrItem_Base (void) |
| DECLARE_INTERNAL_TYPE_INFO () | |
| bool | IsSetSev (void) const |
| Check if a value has been assigned to Sev data member. More... | |
| bool | CanGetSev (void) const |
| Check if it is safe to call GetSev method. More... | |
| void | ResetSev (void) |
| Reset Sev data member. More... | |
| TSev | GetSev (void) const |
| Get the Sev member data. More... | |
| void | SetSev (TSev value) |
| Assign a value to Sev data member. More... | |
| TSev & | SetSev (void) |
| Assign a value to Sev data member. More... | |
| bool | IsSetErrIndex (void) const |
| Check if a value has been assigned to ErrIndex data member. More... | |
| bool | CanGetErrIndex (void) const |
| Check if it is safe to call GetErrIndex method. More... | |
| void | ResetErrIndex (void) |
| Reset ErrIndex data member. More... | |
| TErrIndex | GetErrIndex (void) const |
| Get the ErrIndex member data. More... | |
| void | SetErrIndex (TErrIndex value) |
| Assign a value to ErrIndex data member. More... | |
| TErrIndex & | SetErrIndex (void) |
| Assign a value to ErrIndex data member. More... | |
| bool | IsSetMsg (void) const |
| Check if a value has been assigned to Msg data member. More... | |
| bool | CanGetMsg (void) const |
| Check if it is safe to call GetMsg method. More... | |
| void | ResetMsg (void) |
| Reset Msg data member. More... | |
| const TMsg & | GetMsg (void) const |
| Get the Msg member data. More... | |
| void | SetMsg (const TMsg &value) |
| Assign a value to Msg data member. More... | |
| void | SetMsg (TMsg &&value) |
| TMsg & | SetMsg (void) |
| Assign a value to Msg data member. More... | |
| bool | IsSetObjDesc (void) const |
| Check if a value has been assigned to ObjDesc data member. More... | |
| bool | CanGetObjDesc (void) const |
| Check if it is safe to call GetObjDesc method. More... | |
| void | ResetObjDesc (void) |
| Reset ObjDesc data member. More... | |
| const TObjDesc & | GetObjDesc (void) const |
| Get the ObjDesc member data. More... | |
| void | SetObjDesc (const TObjDesc &value) |
| Assign a value to ObjDesc data member. More... | |
| void | SetObjDesc (TObjDesc &&value) |
| TObjDesc & | SetObjDesc (void) |
| Assign a value to ObjDesc data member. More... | |
| bool | IsSetAccession (void) const |
| Check if a value has been assigned to Accession data member. More... | |
| bool | CanGetAccession (void) const |
| Check if it is safe to call GetAccession method. More... | |
| void | ResetAccession (void) |
| Reset Accession data member. More... | |
| const TAccession & | GetAccession (void) const |
| Get the Accession member data. More... | |
| void | SetAccession (const TAccession &value) |
| Assign a value to Accession data member. More... | |
| void | SetAccession (TAccession &&value) |
| TAccession & | SetAccession (void) |
| Assign a value to Accession data member. More... | |
| bool | IsSetFeatureId (void) const |
| Check if a value has been assigned to FeatureId data member. More... | |
| bool | CanGetFeatureId (void) const |
| Check if it is safe to call GetFeatureId method. More... | |
| void | ResetFeatureId (void) |
| Reset FeatureId data member. More... | |
| const TFeatureId & | GetFeatureId (void) const |
| Get the FeatureId member data. More... | |
| void | SetFeatureId (const TFeatureId &value) |
| Assign a value to FeatureId data member. More... | |
| void | SetFeatureId (TFeatureId &&value) |
| TFeatureId & | SetFeatureId (void) |
| Assign a value to FeatureId data member. More... | |
| bool | IsSetSeqOffset (void) const |
| Check if a value has been assigned to SeqOffset data member. More... | |
| bool | CanGetSeqOffset (void) const |
| Check if it is safe to call GetSeqOffset method. More... | |
| void | ResetSeqOffset (void) |
| Reset SeqOffset data member. More... | |
| TSeqOffset | GetSeqOffset (void) const |
| Get the SeqOffset member data. More... | |
| void | SetSeqOffset (TSeqOffset value) |
| Assign a value to SeqOffset data member. More... | |
| TSeqOffset & | SetSeqOffset (void) |
| Assign a value to SeqOffset data member. More... | |
| bool | IsSetObjectType (void) const |
| Check if a value has been assigned to ObjectType data member. More... | |
| bool | CanGetObjectType (void) const |
| Check if it is safe to call GetObjectType method. More... | |
| void | ResetObjectType (void) |
| Reset ObjectType data member. More... | |
| TObjectType | GetObjectType (void) const |
| Get the ObjectType member data. More... | |
| void | SetObjectType (TObjectType value) |
| Assign a value to ObjectType data member. More... | |
| TObjectType & | SetObjectType (void) |
| Assign a value to ObjectType data member. More... | |
| bool | IsSetErrorName (void) const |
| Check if a value has been assigned to ErrorName data member. More... | |
| bool | CanGetErrorName (void) const |
| Check if it is safe to call GetErrorName method. More... | |
| void | ResetErrorName (void) |
| Reset ErrorName data member. More... | |
| const TErrorName & | GetErrorName (void) const |
| Get the ErrorName member data. More... | |
| void | SetErrorName (const TErrorName &value) |
| Assign a value to ErrorName data member. More... | |
| void | SetErrorName (TErrorName &&value) |
| TErrorName & | SetErrorName (void) |
| Assign a value to ErrorName data member. More... | |
| bool | IsSetErrorGroup (void) const |
| Check if a value has been assigned to ErrorGroup data member. More... | |
| bool | CanGetErrorGroup (void) const |
| Check if it is safe to call GetErrorGroup method. More... | |
| void | ResetErrorGroup (void) |
| Reset ErrorGroup data member. More... | |
| const TErrorGroup & | GetErrorGroup (void) const |
| Get the ErrorGroup member data. More... | |
| void | SetErrorGroup (const TErrorGroup &value) |
| Assign a value to ErrorGroup data member. More... | |
| void | SetErrorGroup (TErrorGroup &&value) |
| TErrorGroup & | SetErrorGroup (void) |
| Assign a value to ErrorGroup data member. More... | |
| bool | IsSetAccnver (void) const |
| Check if a value has been assigned to Accnver data member. More... | |
| bool | CanGetAccnver (void) const |
| Check if it is safe to call GetAccnver method. More... | |
| void | ResetAccnver (void) |
| Reset Accnver data member. More... | |
| const TAccnver & | GetAccnver (void) const |
| Get the Accnver member data. More... | |
| void | SetAccnver (const TAccnver &value) |
| Assign a value to Accnver data member. More... | |
| void | SetAccnver (TAccnver &&value) |
| TAccnver & | SetAccnver (void) |
| Assign a value to Accnver data member. More... | |
| bool | IsSetVersion (void) const |
| Check if a value has been assigned to Version data member. More... | |
| bool | CanGetVersion (void) const |
| Check if it is safe to call GetVersion method. More... | |
| void | ResetVersion (void) |
| Reset Version data member. More... | |
| TVersion | GetVersion (void) const |
| Get the Version member data. More... | |
| void | SetVersion (TVersion value) |
| Assign a value to Version data member. More... | |
| TVersion & | SetVersion (void) |
| Assign a value to Version data member. More... | |
| bool | IsSetLocation (void) const |
| Check if a value has been assigned to Location data member. More... | |
| bool | CanGetLocation (void) const |
| Check if it is safe to call GetLocation method. More... | |
| void | ResetLocation (void) |
| Reset Location data member. More... | |
| const TLocation & | GetLocation (void) const |
| Get the Location member data. More... | |
| void | SetLocation (const TLocation &value) |
| Assign a value to Location data member. More... | |
| void | SetLocation (TLocation &&value) |
| TLocation & | SetLocation (void) |
| Assign a value to Location data member. More... | |
| bool | IsSetProduct_loc (void) const |
| Check if a value has been assigned to Product_loc data member. More... | |
| bool | CanGetProduct_loc (void) const |
| Check if it is safe to call GetProduct_loc method. More... | |
| void | ResetProduct_loc (void) |
| Reset Product_loc data member. More... | |
| const TProduct_loc & | GetProduct_loc (void) const |
| Get the Product_loc member data. More... | |
| void | SetProduct_loc (const TProduct_loc &value) |
| Assign a value to Product_loc data member. More... | |
| void | SetProduct_loc (TProduct_loc &&value) |
| TProduct_loc & | SetProduct_loc (void) |
| Assign a value to Product_loc data member. More... | |
| bool | IsSetBioseq (void) const |
| Check if a value has been assigned to Bioseq data member. More... | |
| bool | CanGetBioseq (void) const |
| Check if it is safe to call GetBioseq method. More... | |
| void | ResetBioseq (void) |
| Reset Bioseq data member. More... | |
| const TBioseq & | GetBioseq (void) const |
| Get the Bioseq member data. More... | |
| void | SetBioseq (const TBioseq &value) |
| Assign a value to Bioseq data member. More... | |
| void | SetBioseq (TBioseq &&value) |
| TBioseq & | SetBioseq (void) |
| Assign a value to Bioseq data member. More... | |
| bool | IsSetLocus_tag (void) const |
| Check if a value has been assigned to Locus_tag data member. More... | |
| bool | CanGetLocus_tag (void) const |
| Check if it is safe to call GetLocus_tag method. More... | |
| void | ResetLocus_tag (void) |
| Reset Locus_tag data member. More... | |
| const TLocus_tag & | GetLocus_tag (void) const |
| Get the Locus_tag member data. More... | |
| void | SetLocus_tag (const TLocus_tag &value) |
| Assign a value to Locus_tag data member. More... | |
| void | SetLocus_tag (TLocus_tag &&value) |
| TLocus_tag & | SetLocus_tag (void) |
| Assign a value to Locus_tag data member. More... | |
| bool | IsSetObj_content (void) const |
| Check if a value has been assigned to Obj_content data member. More... | |
| bool | CanGetObj_content (void) const |
| Check if it is safe to call GetObj_content method. More... | |
| void | ResetObj_content (void) |
| Reset Obj_content data member. More... | |
| const TObj_content & | GetObj_content (void) const |
| Get the Obj_content member data. More... | |
| void | SetObj_content (const TObj_content &value) |
| Assign a value to Obj_content data member. More... | |
| void | SetObj_content (TObj_content &&value) |
| TObj_content & | SetObj_content (void) |
| Assign a value to Obj_content data member. More... | |
| virtual void | Reset (void) |
| Reset the whole object. More... | |
Public Member Functions inherited from CSerialObject | |
| CSerialObject (void) | |
| virtual | ~CSerialObject (void) |
| virtual const CTypeInfo * | GetThisTypeInfo (void) const =0 |
| virtual void | Assign (const CSerialObject &source, ESerialRecursionMode how=eRecursive) |
| Set object to copy of another one. More... | |
| virtual bool | Equals (const CSerialObject &object, ESerialRecursionMode how=eRecursive) const |
| Check if both objects contain the same values. More... | |
| virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
| Define method for dumping debug information. More... | |
| void | ThrowUnassigned (TMemberIndex index) const |
| void | ThrowUnassigned (TMemberIndex index, const char *file_name, int file_line) const |
| bool | HasNamespaceName (void) const |
| Check if object data type has namespace name. More... | |
| const string & | GetNamespaceName (void) const |
| Get namespace name. More... | |
| bool | HasNamespacePrefix (void) const |
| Check if data type has namespace prefix. More... | |
| const string & | GetNamespacePrefix (void) const |
| Get namespace prefix. More... | |
Public Member Functions inherited from CObject | |
| CObject (void) | |
| Constructor. More... | |
| CObject (const CObject &src) | |
| Copy constructor. More... | |
| virtual | ~CObject (void) |
| Destructor. More... | |
| CObject & | operator= (const CObject &src) THROWS_NONE |
| Assignment operator. More... | |
| bool | CanBeDeleted (void) const THROWS_NONE |
| Check if object can be deleted. More... | |
| bool | IsAllocatedInPool (void) const THROWS_NONE |
| Check if object is allocated in memory pool (not system heap) More... | |
| bool | Referenced (void) const THROWS_NONE |
| Check if object is referenced. More... | |
| bool | ReferencedOnlyOnce (void) const THROWS_NONE |
| Check if object is referenced only once. More... | |
| void | AddReference (void) const |
| Add reference to object. More... | |
| void | RemoveReference (void) const |
| Remove reference to object. More... | |
| void | ReleaseReference (void) const |
| Remove reference without deleting object. More... | |
| virtual void | DoNotDeleteThisObject (void) |
| Mark this object as not allocated in heap – do not delete this object. More... | |
| virtual void | DoDeleteThisObject (void) |
| Mark this object as allocated in heap – object can be deleted. More... | |
| void * | operator new (size_t size) |
| Define new operator for memory allocation. More... | |
| void * | operator new[] (size_t size) |
| Define new[] operator for 'array' memory allocation. More... | |
| void | operator delete (void *ptr) |
| Define delete operator for memory deallocation. More... | |
| void | operator delete[] (void *ptr) |
| Define delete[] operator for memory deallocation. More... | |
| void * | operator new (size_t size, void *place) |
| Define new operator. More... | |
| void | operator delete (void *ptr, void *place) |
| Define delete operator. More... | |
| void * | operator new (size_t size, CObjectMemoryPool *place) |
| Define new operator using memory pool. More... | |
| void | operator delete (void *ptr, CObjectMemoryPool *place) |
| Define delete operator. More... | |
Public Member Functions inherited from CDebugDumpable | |
| CDebugDumpable (void) | |
| virtual | ~CDebugDumpable (void) |
| void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
| void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
| void | DumpToConsole (void) const |
Static Public Member Functions | |
| static size_t | GetErrCount () |
| static const string & | ConvertSeverity (EDiagSev sev) |
| static const string & | ConvertErrCode (unsigned int) |
| static const string & | ConvertErrGroup (unsigned int) |
| static unsigned int | ConvertToErrCode (const string &str) |
Static Public Member Functions inherited from CValidErrItem_Base | |
| static const NCBI_NS_NCBI::CEnumeratedTypeValues *ENUM_METHOD_NAME() | ESev (void) |
| Access to ESev's attributes (values, names) as defined in spec. More... | |
| static const NCBI_NS_NCBI::CEnumeratedTypeValues *ENUM_METHOD_NAME() | EObjectType (void) |
| Access to EObjectType's attributes (values, names) as defined in spec. More... | |
Static Public Member Functions inherited from CSerialObject | |
| static void | SetVerifyDataThread (ESerialVerifyData verify) |
| static void | SetVerifyDataGlobal (ESerialVerifyData verify) |
| static string | UnassignedString (void) |
| static CStringUTF8 | UnassignedStringUTF8 (void) |
| static char | UnassignedByte (void) |
Static Public Member Functions inherited from CObject | |
| static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
| Define method to throw null pointer exception. More... | |
| static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
| static EAllocFillMode | GetAllocFillMode (void) |
| static void | SetAllocFillMode (EAllocFillMode mode) |
| static void | SetAllocFillMode (const string &value) |
| Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
| static void | EnableDebugDump (bool on) |
Private Types | |
| typedef CValidErrItem_Base | Tparent |
Private Member Functions | |
| CValidErrItem (const CValidErrItem &value)=delete | |
| CValidErrItem & | operator= (const CValidErrItem &value)=delete |
Private Attributes | |
| CConstRef< CSerialObject > | m_Object |
| CConstRef< CSeq_entry > | m_Ctx |
Static Private Attributes | |
| static const string | sm_Terse [] |
| static const string | sm_Verbose [] |
Definition at line 815 of file ValidErrItem.hpp.
|
private |
Definition at line 817 of file ValidErrItem.hpp.
|
inline |
Definition at line 885 of file ValidErrItem.hpp.
| CValidErrItem::~CValidErrItem | ( | ) |
Definition at line 2530 of file ValidErrItem.cpp.
| CValidErrItem::CValidErrItem | ( | EDiagSev | sev, |
| unsigned int | ec, | ||
| const string & | msg, | ||
| const string & | obj_desc, | ||
| const CSerialObject * | obj, | ||
| const CSeq_entry * | context, | ||
| const string & | acc, | ||
| const int | ver, | ||
| const int | seq_offset = 0 |
||
| ) |
Definition at line 2463 of file ValidErrItem.cpp.
References ConvertErrCode(), ConvertErrGroup(), ctx, NStr::IntToString(), m_Ctx, msg(), CConstRef< C, Locker >::Reset(), CValidErrItem_Base::SetAccession(), CValidErrItem_Base::SetAccnver(), CValidErrItem_Base::SetErrIndex(), CValidErrItem_Base::SetErrorGroup(), CValidErrItem_Base::SetErrorName(), CValidErrItem_Base::SetMsg(), CValidErrItem_Base::SetObjDesc(), SetObject(), CValidErrItem_Base::SetSeqOffset(), CValidErrItem_Base::SetSev(), and CValidErrItem_Base::SetVersion().
|
privatedelete |
Definition at line 2638 of file ValidErrItem.cpp.
References eErr_MAX, and eErr_UNKNOWN.
Referenced by CValidError::AddValidErrItem(), IMessageHandler::AddValidErrItem(), CValidMessageHandler::AddValidErrItem(), BOOST_AUTO_TEST_CASE(), CValidErrItem(), g_FormatValStats(), GetErrCode(), and CValidErrorFormat::GetSubmitterFormatErrorGroupTitle().
Definition at line 2547 of file ValidErrItem.cpp.
References eErr_MAX, IS_IN, kSeqGraph, and kUnknown.
Referenced by CValidError::AddValidErrItem(), IMessageHandler::AddValidErrItem(), CValidMessageHandler::AddValidErrItem(), ConvertToErrCode(), CValidErrItem(), g_FormatValStats(), and GetErrGroup().
Definition at line 2628 of file ValidErrItem.cpp.
References eDiagSevMax.
Referenced by g_FormatErrItem(), g_FormatValStats(), CTableDataValidate::GetStringValue(), CAlignmentAssistant::OnValidate(), CExpectedError::Print(), CExpectedError::PrintSeenError(), CTable2AsnValidator::ValReportErrors(), CTable2AsnValidator::ValReportErrorStats(), and CValidatePanel::x_DisplayList().
Definition at line 2651 of file ValidErrItem.cpp.
References ConvertErrGroup(), eErr_MAX, NStr::EndsWith(), NStr::Equal(), and str().
Referenced by CValidErrorSuppress::SetSuppressedCodes().
|
inline |
Definition at line 905 of file ValidErrItem.hpp.
References m_Ctx.
Definition at line 2535 of file ValidErrItem.cpp.
References ConvertErrCode(), and CValidErrItem_Base::GetErrIndex().
Referenced by CValidError_CI::Filter(), g_FormatErrItem(), IMessageHandler::Ignore(), CExpectedError::Match(), CStandardFormat::operator()(), CSpacedFormat::operator()(), CTabbedFormat::operator()(), CXmlFormat::operator()(), CExpectedError::PrintSeenError(), CExpectedError::Test(), CTable2AsnValidator::ValReportErrors(), and CValidatePanel::x_MatchFilter().
|
static |
Definition at line 2541 of file ValidErrItem.cpp.
Definition at line 2591 of file ValidErrItem.cpp.
References ConvertErrGroup(), and CValidErrItem_Base::GetErrIndex().
Referenced by g_FormatErrItem(), CStandardFormat::operator()(), CSpacedFormat::operator()(), CTabbedFormat::operator()(), CXmlFormat::operator()(), and CTable2AsnValidator::ValReportErrors().
| const CSerialObject & CValidErrItem::GetObject | ( | void | ) | const |
Definition at line 2610 of file ValidErrItem.cpp.
References m_Object.
|
inline |
Definition at line 891 of file ValidErrItem.hpp.
References CValidErrItem_Base::GetSev().
Referenced by IMessageHandler::Ignore(), CExpectedError::Match(), CStandardFormat::operator()(), CSpacedFormat::operator()(), CTabbedFormat::operator()(), CXmlFormat::operator()(), CExpectedError::PrintSeenError(), IMessageHandler::Report(), CExpectedError::Test(), and CValidatePanel::x_MatchSeverity().
Definition at line 2597 of file ValidErrItem.cpp.
References eErr_MAX, eErr_UNKNOWN, and CValidErrItem_Base::GetErrIndex().
|
inline |
Definition at line 899 of file ValidErrItem.hpp.
References m_Ctx, and CConstRef< C, Locker >::NotEmpty().
| bool CValidErrItem::IsSetObject | ( | ) | const |
Definition at line 2616 of file ValidErrItem.cpp.
References m_Object, and CConstRef< C, Locker >::NotEmpty().
|
privatedelete |
|
inline |
Definition at line 848 of file ValidErrItem.hpp.
| void CValidErrItem::SetFeatureObjDescFromFields | ( | ) |
Definition at line 2497 of file ValidErrItem.cpp.
References CValidErrItem_Base::GetBioseq(), CValidErrItem_Base::GetFeatureId(), CValidErrItem_Base::GetLocation(), CValidErrItem_Base::GetObj_content(), CValidErrItem_Base::GetProduct_loc(), CValidErrItem_Base::IsSetBioseq(), CValidErrItem_Base::IsSetFeatureId(), CValidErrItem_Base::IsSetLocation(), CValidErrItem_Base::IsSetObj_content(), CValidErrItem_Base::IsSetProduct_loc(), and CValidErrItem_Base::SetObjDesc().
| void CValidErrItem::SetObject | ( | const CSerialObject & | obj | ) |
Definition at line 2622 of file ValidErrItem.cpp.
References m_Object, and CConstRef< C, Locker >::Reset().
Referenced by CValidErrItem().
|
private |
Definition at line 875 of file ValidErrItem.hpp.
Referenced by CValidErrItem(), GetContext(), IsSetContext(), and SetContext().
|
private |
Definition at line 874 of file ValidErrItem.hpp.
Referenced by GetObject(), IsSetObject(), and SetObject().
Definition at line 877 of file ValidErrItem.hpp.
Definition at line 878 of file ValidErrItem.hpp.