41 #ifndef OBJECTS_VALERR_VALIDERRITEM_BASE_HPP
42 #define OBJECTS_VALERR_VALIDERRITEM_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
97 eObjectType_seqentry = 1,
98 eObjectType_bioseq = 2,
99 eObjectType_bioseqset = 3,
100 eObjectType_seqdesc = 4,
101 eObjectType_seqannot = 5,
102 eObjectType_annotdesc = 6,
103 eObjectType_seqfeat = 7,
104 eObjectType_seqalign = 8,
105 eObjectType_seqgraph = 9,
106 eObjectType_seqsub = 10,
107 eObjectType_submitblock = 11
165 bool IsSetSev(
void)
const;
172 bool CanGetSev(
void)
const;
181 TSev GetSev(
void)
const;
202 bool IsSetErrIndex(
void)
const;
209 bool CanGetErrIndex(
void)
const;
212 void ResetErrIndex(
void);
239 bool IsSetMsg(
void)
const;
246 bool CanGetMsg(
void)
const;
255 const TMsg& GetMsg(
void)
const;
277 bool IsSetObjDesc(
void)
const;
284 bool CanGetObjDesc(
void)
const;
287 void ResetObjDesc(
void);
293 const TObjDesc& GetObjDesc(
void)
const;
315 bool IsSetAccession(
void)
const;
322 bool CanGetAccession(
void)
const;
325 void ResetAccession(
void);
353 bool IsSetFeatureId(
void)
const;
360 bool CanGetFeatureId(
void)
const;
363 void ResetFeatureId(
void);
391 bool IsSetSeqOffset(
void)
const;
398 bool CanGetSeqOffset(
void)
const;
401 void ResetSeqOffset(
void);
428 bool IsSetObjectType(
void)
const;
435 bool CanGetObjectType(
void)
const;
438 void ResetObjectType(
void);
465 bool IsSetErrorName(
void)
const;
472 bool CanGetErrorName(
void)
const;
475 void ResetErrorName(
void);
503 bool IsSetErrorGroup(
void)
const;
510 bool CanGetErrorGroup(
void)
const;
513 void ResetErrorGroup(
void);
541 bool IsSetAccnver(
void)
const;
548 bool CanGetAccnver(
void)
const;
551 void ResetAccnver(
void);
557 const TAccnver& GetAccnver(
void)
const;
579 bool IsSetVersion(
void)
const;
586 bool CanGetVersion(
void)
const;
589 void ResetVersion(
void);
616 bool IsSetLocation(
void)
const;
623 bool CanGetLocation(
void)
const;
626 void ResetLocation(
void);
632 const TLocation& GetLocation(
void)
const;
654 bool IsSetProduct_loc(
void)
const;
661 bool CanGetProduct_loc(
void)
const;
664 void ResetProduct_loc(
void);
692 bool IsSetBioseq(
void)
const;
699 bool CanGetBioseq(
void)
const;
702 void ResetBioseq(
void);
730 bool IsSetLocus_tag(
void)
const;
737 bool CanGetLocus_tag(
void)
const;
740 void ResetLocus_tag(
void);
768 bool IsSetObj_content(
void)
const;
775 bool CanGetObj_content(
void)
const;
778 void ResetObj_content(
void);
800 virtual void Reset(
void);
963 m_Msg = std::forward<CValidErrItem_Base::TMsg>(
value);
1527 m_Bioseq = std::forward<CValidErrItem_Base::TBioseq>(
value);
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
static string UnassignedString(void)
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.
#define NCBI_VALERR_EXPORT
bool IsSetObjDesc(void) const
Check if a value has been assigned to ObjDesc data member.
TSeqOffset GetSeqOffset(void) const
Get the SeqOffset member data.
bool CanGetObj_content(void) const
Check if it is safe to call GetObj_content method.
TObj_content & SetObj_content(void)
Assign a value to Obj_content data member.
TObjDesc & SetObjDesc(void)
Assign a value to ObjDesc data member.
TErrorGroup & SetErrorGroup(void)
Assign a value to ErrorGroup data member.
TFeatureId & SetFeatureId(void)
Assign a value to FeatureId data member.
bool CanGetVersion(void) const
Check if it is safe to call GetVersion method.
TVersion GetVersion(void) const
Get the Version member data.
CValidErrItem_Base(const CValidErrItem_Base &)
bool IsSetFeatureId(void) const
Check if a value has been assigned to FeatureId data member.
Tparent::CMemberIndex< E_memberIndex, 18 > TmemberIndex
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
bool CanGetSev(void) const
Check if it is safe to call GetSev method.
bool CanGetProduct_loc(void) const
Check if it is safe to call GetProduct_loc method.
const TAccnver & GetAccnver(void) const
Get the Accnver member data.
bool IsSetErrorName(void) const
Check if a value has been assigned to ErrorName data member.
void ResetSev(void)
Reset Sev data member.
TMsg & SetMsg(void)
Assign a value to Msg data member.
bool IsSetMsg(void) const
Check if a value has been assigned to Msg data member.
bool IsSetSev(void) const
Check if a value has been assigned to Sev data member.
void ResetSeqOffset(void)
Reset SeqOffset data member.
bool CanGetErrorGroup(void) const
Check if it is safe to call GetErrorGroup method.
bool IsSetLocation(void) const
Check if a value has been assigned to Location data member.
bool IsSetAccnver(void) const
Check if a value has been assigned to Accnver data member.
const TProduct_loc & GetProduct_loc(void) const
Get the Product_loc member data.
const TObjDesc & GetObjDesc(void) const
Get the ObjDesc member data.
const TObj_content & GetObj_content(void) const
Get the Obj_content member data.
const TLocation & GetLocation(void) const
Get the Location member data.
bool CanGetFeatureId(void) const
Check if it is safe to call GetFeatureId method.
void ResetErrIndex(void)
Reset ErrIndex data member.
bool CanGetLocus_tag(void) const
Check if it is safe to call GetLocus_tag method.
TSev GetSev(void) const
Get the Sev member data.
const TErrorGroup & GetErrorGroup(void) const
Get the ErrorGroup member data.
const TMsg & GetMsg(void) const
Get the Msg member data.
bool IsSetVersion(void) const
Check if a value has been assigned to Version data member.
TSev & SetSev(void)
Assign a value to Sev data member.
TBioseq & SetBioseq(void)
Assign a value to Bioseq data member.
bool IsSetAccession(void) const
Check if a value has been assigned to Accession data member.
bool CanGetBioseq(void) const
Check if it is safe to call GetBioseq method.
TProduct_loc & SetProduct_loc(void)
Assign a value to Product_loc data member.
TErrIndex & SetErrIndex(void)
Assign a value to ErrIndex data member.
const TLocus_tag & GetLocus_tag(void) const
Get the Locus_tag member data.
bool IsSetObj_content(void) const
Check if a value has been assigned to Obj_content data member.
bool IsSetSeqOffset(void) const
Check if a value has been assigned to SeqOffset data member.
bool CanGetAccession(void) const
Check if it is safe to call GetAccession method.
bool CanGetErrorName(void) const
Check if it is safe to call GetErrorName method.
bool CanGetAccnver(void) const
Check if it is safe to call GetAccnver method.
TErrorName & SetErrorName(void)
Assign a value to ErrorName data member.
bool IsSetLocus_tag(void) const
Check if a value has been assigned to Locus_tag data member.
TAccession & SetAccession(void)
Assign a value to Accession data member.
bool IsSetProduct_loc(void) const
Check if a value has been assigned to Product_loc data member.
TLocus_tag & SetLocus_tag(void)
Assign a value to Locus_tag data member.
TObjectType & SetObjectType(void)
Assign a value to ObjectType data member.
const TBioseq & GetBioseq(void) const
Get the Bioseq member data.
TAccnver & SetAccnver(void)
Assign a value to Accnver data member.
TSeqOffset & SetSeqOffset(void)
Assign a value to SeqOffset data member.
bool CanGetSeqOffset(void) const
Check if it is safe to call GetSeqOffset method.
CValidErrItem_Base & operator=(const CValidErrItem_Base &)
bool IsSetErrIndex(void) const
Check if a value has been assigned to ErrIndex data member.
void ResetVersion(void)
Reset Version data member.
bool IsSetObjectType(void) const
Check if a value has been assigned to ObjectType data member.
TErrIndex GetErrIndex(void) const
Get the ErrIndex member data.
void ResetObjectType(void)
Reset ObjectType data member.
bool IsSetErrorGroup(void) const
Check if a value has been assigned to ErrorGroup data member.
const TAccession & GetAccession(void) const
Get the Accession member data.
bool CanGetObjDesc(void) const
Check if it is safe to call GetObjDesc method.
bool CanGetMsg(void) const
Check if it is safe to call GetMsg method.
bool CanGetErrIndex(void) const
Check if it is safe to call GetErrIndex method.
DECLARE_INTERNAL_TYPE_INFO()
const TFeatureId & GetFeatureId(void) const
Get the FeatureId member data.
TObjectType GetObjectType(void) const
Get the ObjectType member data.
bool IsSetBioseq(void) const
Check if a value has been assigned to Bioseq data member.
TVersion & SetVersion(void)
Assign a value to Version data member.
TLocation & SetLocation(void)
Assign a value to Location data member.
const TErrorName & GetErrorName(void) const
Get the ErrorName member data.
bool CanGetObjectType(void) const
Check if it is safe to call GetObjectType method.
CBioseq_Info & GetBioseq(CTSE_Info &tse, const CBioObjectId &id)
const CConstRef< CSeq_id > GetAccession(const CSeq_id_Handle &id_handle)