59 "Incompatible Seq-feat field value: "<<
value);
66 "Incompatible Seq-feat field value: "<<
value);
73 "Incompatible Seq-feat field value: "<<
value);
80 "Incompatible Seq-feat field value: "<<
value);
87 "Incompatible Seq-feat field value: vector<char>");
100 "Incompatible Seq-loc field value: "<<
value);
107 "Incompatible Seq-loc field value: "<<
value);
114 "Incompatible Seq-loc field value: "<<
value);
121 "Incompatible Seq-loc field value: "<<
value);
149 else if ( loc.
IsInt() ) {
154 "Incompatible fuzz field");
166 "Incompatible fuzz field");
176 feat.
SetQual().push_back(qual);
181 : name(fullname.substr(2))
199 if ( data2.
IsFields() &&
id.IsStr() &&
id.GetStr() == *it ) {
206 data->push_back(field);
208 next_data = &field->
SetData().SetFields();
214 data->push_back(field);
346 : m_SetFinalObject(
false)
350 switch (
type.GetTypeFamily() ) {
353 "Incompatible field: "<<
354 type.GetTypeInfo()->GetName()<<
" "<<field);
371 if ( !field.
empty() ) {
373 "Incompatible field: "<<
374 type.GetTypeInfo()->GetName()<<
"."<<field);
381 if ( field.
empty() ) {
386 size_t dot = field.
find(
'.');
390 field_name = field.
substr(0, dot);
391 next_field = field.
substr(dot+1);
398 type =
type.GetClassTypeInfo()->GetMemberInfo(index)
408 type.GetTypeInfo()->GetName()<<
"."<<
417 "Unknown variant: "<<
418 type.GetTypeInfo()->GetName()<<
"."<<
423 type =
type.GetChoiceTypeInfo()->GetVariantInfo(index)
438 obj = (*it)->GetNextObject(obj);
455 obj = (*it)->GetNextObject(obj);
473 obj = (*it)->GetNextObject(obj);
487 const string&
value)
const
490 obj = (*it)->GetNextObject(obj);
504 const vector<char>&
value)
const
507 obj = (*it)->GetNextObject(obj);
Annotation iterators exceptions.
@Gb_qual.hpp User-defined methods of the data storage class.
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
TMemberIndex m_VariantIndex
TMemberIndex m_MemberIndex
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
virtual CObjectInfo GetNextObject(const CObjectInfo &obj) const
virtual void SetBytes(CSeq_feat &feat, const vector< char > &value) const
CSeqTableSetAnyFeatField(const CTempString &field)
virtual void SetReal(CSeq_feat &feat, double value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetInt8(CSeq_feat &feat, Int8 value) const
virtual void SetInt(CSeq_feat &feat, int value) const
virtual void SetString(CSeq_loc &loc, const string &value) const
virtual void SetReal(CSeq_loc &loc, double value) const
virtual void SetBytes(CSeq_loc &loc, const vector< char > &value) const
virtual void SetInt(CSeq_loc &loc, int value) const
CSeqTableSetAnyLocField(const CTempString &field)
virtual void SetInt8(CSeq_loc &loc, Int8 value) const
CSeqTableSetAnyObjField(CObjectTypeInfo type, CTempString field)
vector< CConstRef< CSeqTableNextObject > > TNexters
void SetObjectField(CObjectInfo obj, int value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetInt(CSeq_feat &feat, int value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetInt8(CSeq_feat &feat, Int8 value) const
virtual void SetInt8(CSeq_feat &feat, Int8 value) const
virtual void SetInt(CSeq_feat &feat, int value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetBytes(CSeq_feat &feat, const vector< char > &value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetInt8(CSeq_feat &feat, Int8 value) const
virtual void SetInt(CSeq_feat &feat, int value) const
vector< string > TSubfields
CUser_field & x_SetField(CSeq_feat &feat) const
virtual void SetReal(CSeq_feat &feat, double value) const
CSeqTableSetExt(const CTempString &name)
virtual void SetString(CSeq_feat &feat, const string &value) const
virtual void SetInt8(CSeq_feat &feat, Int8 value) const
virtual void SetBytes(CSeq_feat &feat, const vector< char > &value) const
virtual void SetReal(CSeq_feat &feat, double value) const
virtual void SetInt(CSeq_feat &feat, int value) const
virtual void SetInt8(CSeq_loc &loc, Int8 value) const
virtual void SetInt(CSeq_loc &loc, int value) const
virtual void SetReal(CSeq_loc &loc, double value) const
virtual void SetString(CSeq_loc &loc, const string &value) const
virtual ~CSeqTableSetLocField()
virtual void SetInt(CSeq_loc &loc, int value) const
virtual void SetInt(CSeq_loc &loc, int value) const
virtual void SetString(CSeq_feat &feat, const string &value) const
namespace ncbi::objects::
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static DLIST_TYPE *DLIST_NAME() next(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define NCBI_THROW_FMT(exception_class, err_code, message)
The same as NCBI_THROW but with message processed as output to ostream.
size_t TMemberIndex
Type used for indexing class members and choice variants.
const TMemberIndex kInvalidMember
Special value returned from FindMember.
static C * Get(const CTypesIterator &it)
CObjectInfo AddNewPointedElement(void) const
add new pointer element, create new pointed object and return it
TObjectPtr GetObjectPtr(void) const
Get pointer to object.
const CPrimitiveTypeInfo * GetPrimitiveTypeInfo(void) const
CObjectInfo AddNewElement(void) const
Add and return new element object.
CObjectInfo SetChoiceVariant(TMemberIndex index) const
Select choice variant, if necessary, and return variant object.
CObjectInfo SetClassMember(TMemberIndex index) const
Create member if necessary and return member object.
CObjectInfo SetPointedObject(void) const
Create if necessary and return pointed object.
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
bool empty(void) const
Return true if the represented string is empty (i.e., the length is zero)
CTempString substr(size_type pos) const
Obtain a substring from this string, beginning at a given offset.
size_type find(const CTempString match, size_type pos=0) const
Find the first instance of the entire matching string within the current string, beginning at an opti...
static const size_type npos
void SetValueInt(TObjectPtr objectPtr, int value) const
virtual void SetValueInt8(TObjectPtr objectPtr, Int8 value) const
virtual void SetValueOctetString(TObjectPtr objectPtr, const vector< char > &value) const
virtual void SetValueDouble(TObjectPtr objectPtr, double value) const
virtual void SetValueString(TObjectPtr objectPtr, const string &value) const
TFields & SetFields(void)
Select the variant.
void SetTag(TTag &value)
Assign a value to Tag data member.
bool IsFields(void) const
Check if variant Fields is selected.
void SetLabel(TLabel &value)
Assign a value to Label data member.
void SetData(TData &value)
Assign a value to Data data member.
void SetDb(const TDb &value)
Assign a value to Db data member.
vector< CRef< CUser_field > > TData
void SetQual(const TQual &value)
Assign a value to Qual data member.
TDbxref & SetDbxref(void)
Assign a value to Dbxref data member.
void SetComment(const TComment &value)
Assign a value to Comment data member.
void SetExt(TExt &value)
Assign a value to Ext data member.
void SetData(TData &value)
Assign a value to Data data member.
void SetVal(const TVal &value)
Assign a value to Val data member.
TQual & SetQual(void)
Assign a value to Qual data member.
bool IsInt(void) const
Check if variant Int is selected.
bool IsPnt(void) const
Check if variant Pnt is selected.
const GenericPointer< typename T::ValueType > T2 value