62 m_header_not_set(
true),
70 out.WriteFileHeader(seq_submit_type_info);
75 out.BeginClass(seq_submit_class_type);
83 out.BeginClassMember(data_info->
GetId());
89 out.BeginChoice(data_choice_type);
95 out.BeginChoiceVariant(data_choice_type, data_variant_info->
GetId());
98 out.BeginContainer(data_container_type);
106 out.BeginChoice(entry_choice_type);
110 out.BeginChoiceVariant(entry_choice_type, entry_variant_info->
GetId());
113 out.BeginClass(entry_class_type);
125 out.BeginClassMember(seqset_class_info->
GetId());
128 out.BeginContainer(seqset_container_type);
144 for (
auto annot : entry.
SetAnnot()) {
145 if (annot->IsFtable()) {
154 _ASSERT(annot.
IsFtable() &&
"annot should be a feature table at this point");
158 for (
auto feat : annot.
SetData().SetFtable()) {
171 int id = obj_id.
GetId();
181 for (
auto xref : feat.
SetXref()) {
183 if (xref->IsSetId() && xref->GetId().IsLocal() && xref->GetId().GetLocal().IsId()) {
187 int id = obj_id.
GetId();
198 out.EndContainerElement();
214 string header = obj_in->ReadFileHeader();
216 if (header !=
"Seq-submit") {
243 if ((*entry)->GetSet().IsSetSeq_set()) {
247 cleanup.BasicCleanup(**internal_entry);
271 out.EndClassMember();
274 out.EndChoiceVariant();
276 out.EndContainerElement();
279 out.EndChoiceVariant();
282 out.EndClassMember();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
bool IsFtable(void) const
bool IsSetAnnot(void) const
namespace ncbi::objects::
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
void AdjustLocalIds(CSeq_entry &entry)
bool CompleteProcessing()
bool ProcessFile(const string &path)
CSubmissionCollector(CNcbiOstream &out)
static void cleanup(void)
std::ofstream out("events_result.xml")
main entry point for tests
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
@ eNoOwnership
No ownership is assumed.
const CMemberId & GetId(void) const
TTypeInfo GetTypeInfo(void) const
virtual const CTypeInfo * GetThisTypeInfo(void) const =0
static const TObjectType * SafeCast(TTypeInfo type)
@ eSerial_AsnText
ASN.1 text.
pair< TObjectPtr, TTypeInfo > ObjectInfo(C &obj)
const CMemberInfo * GetMemberInfo(void) const
CMemberIterator FindMember(const string &memberName) const
Find class member by its name.
TTypeInfo GetTypeInfo(void) const
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
const CChoiceTypeInfo * GetChoiceTypeInfo(void) const
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
TTypeInfo GetPointedType(void) const
const CMemberInfo * GetMemberInfo(TMemberIndex index) const
const CVariantInfo * GetVariantInfo(TMemberIndex index) const
bool IsId(void) const
Check if variant Id is selected.
TId & SetId(void)
Select the variant.
TId GetId(void) const
Get the variant data.
TXref & SetXref(void)
Assign a value to Xref data member.
const TId & GetId(void) const
Get the Id member data.
const TLocal & GetLocal(void) const
Get the variant data.
bool IsSetXref(void) const
cite other relevant features Check if a value has been assigned to Xref data member.
bool IsLocal(void) const
Check if variant Local is selected.
void SetId(TId &value)
Assign a value to Id data member.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
TSet & SetSet(void)
Select the variant.
bool IsSetSeq_set(void) const
Check if a value has been assigned to Seq_set data member.
bool IsSet(void) const
Check if variant Set is selected.
list< CRef< CSeq_entry > > TSeq_set
TSeq_set & SetSeq_set(void)
Assign a value to Seq_set data member.
@ eClass_genbank
converted genbank
void SetData(TData &value)
Assign a value to Data data member.
bool IsSetData(void) const
Check if a value has been assigned to Data data member.
list< CRef< CSeq_entry > > TEntrys
const TData & GetData(void) const
Get the Data member data.
void SetData(TData &value)
Assign a value to Data data member.
const TSub & GetSub(void) const
Get the Sub member data.
bool IsEntrys(void) const
Check if variant Entrys is selected.
static void StartWriting(CObjectOStream &out, const CSeq_submit &seq_submit)
static void WriteContainerElement(CObjectOStream &out, const CSeq_entry &entry)
std::istream & in(std::istream &in_, double &x_)