55 : m_Info(tse.x_GetScopeInfo().GetScopeLock(tse,
info))
104 if (
info.HasParent_Info() ) {
116 if (
info.HasParent_Info() ) {
363 "object is not in editing mode");
379 if (
info.HasParent_Info() ) {
397 processor.
run(
new TCommand(*
this));
406 processor.
run(
new TCommand(*
this,v));
415 processor.
run(
new TCommand(*
this));
424 processor.
run(
new TCommand(*
this, v));
433 processor.
run(
new TCommand(*
this));
442 processor.
run(
new TCommand(*
this, v));
451 processor.
run(
new TCommand(*
this));
460 processor.
run(
new TCommand(*
this, v));
469 processor.
run(
new TCommand(*
this));
478 processor.
run(
new TCommand(*
this, v));
487 processor.
run(
new TCommand(*
this));
496 processor.
run(
new TCommand(*
this,v));
505 processor.
run(
new TCommand(*
this));
514 processor.
run(
new TCommand(*
this,v));
524 "TDescr& CBioseq_set_EditHandle::SetDescr(): "
525 "method can not be called if a transaction is required");
535 return processor.
run(
new TCommand(*
this, d));
544 return processor.
run(
new TCommand(*
this, d));
559 processor.
run(
new TCommand(*
this, v));
bool IsSetDescr(void) const
bool HasAnnots(void) const
CRef< CSeqdesc > RemoveSeqdesc(const CSeqdesc &d)
CRef< CSeqdesc > ReplaceSeqdesc(const CSeqdesc &old_desc, CSeqdesc &new_desc)
const TDescr & GetDescr(void) const
void AddSeq_descr(const TDescr &v)
bool AddSeqdesc(CSeqdesc &d)
bool CanGetDescr(void) const
CBioseq_set_EditHandle –.
const TDate & GetDate(void) const
bool IsSetClass(void) const
const TRelease & GetRelease(void) const
bool IsEmptySeq_set(void) const
bool CanGetClass(void) const
bool CanGetLevel(void) const
bool CanGetRelease(void) const
CConstRef< TObject > GetBioseq_setCore(void) const
bool IsSetDate(void) const
CConstRef< TObject > GetCompleteBioseq_set(void) const
void SetRelease(TRelease &v)
int GetEntryIndex(const CSeq_entry_Info &entry) const
bool CanGetColl(void) const
TClass GetClass(void) const
bool IsSetLevel(void) const
bool CanGetDate(void) const
const TColl & GetColl(void) const
bool CanGetId(void) const
bool IsSetColl(void) const
TLevel GetLevel(void) const
const TId & GetId(void) const
bool IsSetRelease(void) const
CMDReturn< CMD >::TReturn run(CMD *cmd)
Base class for all object manager exceptions.
@Seq_descr.hpp User-defined methods of the data storage class.
const CBioseq_set_Info & GetParentBioseq_set_Info(void) const
bool CanBeEdited(void) const
Return true if this TSE handle is local to scope and can be edited.
bool HasParent_Info(void) const
virtual const CBioObjectId & GetBioObjectId(void) const
IEditSaver * GetEditSaver(const Handle &handle)
static DLIST_TYPE *DLIST_NAME() last(DLIST_LIST_TYPE *list)
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
CBioseq_EditHandle GetEditHandle(const CBioseq_Handle &seq)
Get editable Biosec handle by regular one.
CBioseq_set_EditHandle GetEditHandle(void) const
Get 'edit' version of handle.
void x_RealSetDescr(TDescr &v) const
void ResetColl(void) const
CSeq_entry_Handle GetComplexityLevel(CBioseq_set::EClass cls) const
Go up to a certain complexity level (or the nearest level of the same priority if the required class ...
void x_RealResetClass(void) const
const TColl & GetColl(void) const
friend class CSeq_entry_Handle
bool CanGetDescr(void) const
const CTSE_Handle & GetTSE_Handle(void) const
void ResetDate(void) const
bool CanGetRelease(void) const
bool IsSetColl(void) const
TClass GetClass(void) const
bool CanGetDate(void) const
void x_Detach(void) const
CRef< CSeqdesc > x_RealReplaceSeqdesc(const CSeqdesc &old_desc, CSeqdesc &new_desc) const
CSeq_annot_EditHandle TakeAnnot(const CSeq_annot_EditHandle &annot) const
Remove the annotation from its location and attach to current one.
void x_RealSetLevel(TLevel v) const
CBioseq_set::TLevel TLevel
CRef< CSeqdesc > ReplaceSeqdesc(const CSeqdesc &old_desc, CSeqdesc &new_desc) const
void SetRelease(TRelease &v) const
CRef< CSeqdesc > x_RealRemoveSeqdesc(const CSeqdesc &d) const
bool CanGetClass(void) const
void x_RealSetColl(TColl &v) const
void SetClass(TClass v) const
CBioseq_EditHandle AttachBioseq(CBioseq &seq, int index=-1) const
Attach a bioseq.
bool IsSetDescr(void) const
void ResetDescr(void) const
void x_RealSetClass(TClass v) const
CScope & GetScope(void) const
Get scope this handle belongs to.
static const TComplexityTable & sx_GetComplexityTable(void)
bool IsEmptySeq_set(void) const
Check if the bioseq set is empty.
void x_RealAddSeq_descr(TDescr &v) const
bool AddSeqdesc(CSeqdesc &d) const
CSeq_entry_EditHandle TakeEntry(const CSeq_entry_EditHandle &entry, int index=-1) const
Remove seq-entry from its location and attach to current one.
bool IsSetDate(void) const
bool CanGetColl(void) const
void Remove(void) const
Remove this Seq-entry from parent, or scope if it's top level Seq-entry.
void SetId(TId &id) const
CSeq_annot_EditHandle AttachAnnot(CSeq_annot &annot) const
Attach an annotation.
void AddSeq_descr(TDescr &v) const
const TDate & GetDate(void) const
CConstRef< CBioseq_set > GetCompleteBioseq_set(void) const
Return the complete bioseq-set object.
CBioseq_set_Handle GetParentBioseq_set(void) const
Return a handle for the parent Bioseq-set, or null handle.
const CBioObjectId & GetBioObjectId(void) const
Get unique object id.
CSeq_annot_EditHandle TakeAnnot(const CSeq_annot_EditHandle &annot) const
Remove the annotation from its location and attach to current one.
void Remove(ERemoveMode mode=eRemoveSeq_entry) const
Remove current seqset-entry from its location.
const CSeq_entry_Info & x_GetInfo(void) const
void ResetClass(void) const
TSeq SelectSeq(CBioseq &seq) const
Make the empty Seq-entry be in seq state with specified Bioseq object.
static TComplexityTable sm_ComplexityTable
bool x_RealAddSeqdesc(CSeqdesc &d) const
void SetColl(TColl &v) const
void x_RealResetRelease(void) const
CBioseq_EditHandle CopyBioseq(const CBioseq_Handle &seq, int index=-1) const
Attach a copy of the bioseq.
CBioseq_set::TRelease TRelease
CSeq_entry_Handle GetParentEntry(void) const
Return a handle for the parent seq-entry of the bioseq.
CSeq_entry_Handle GetExactComplexityLevel(CBioseq_set::EClass cls) const
Return level with exact complexity, or empty handle if not found.
CBioseq_set_EditHandle(void)
bool CanGetLevel(void) const
void SetLevel(TLevel v) const
CSeq_entry_EditHandle AttachEntry(CSeq_entry &entry, int index=-1) const
Attach an existing seq-entry.
TSeq CopySeq(const CBioseq_Handle &seq) const
Make the empty Seq-entry be in seq state with specified Bioseq object.
void x_RealResetLevel(void) const
const CBioseq_set_Info & x_GetInfo(void) const
bool IsSetClass(void) const
CBioseq_set_Info & x_GetInfo(void) const
CScope_Impl & x_GetScopeImpl(void) const
const TDescr & GetDescr(void) const
CRef< CSeqdesc > RemoveSeqdesc(const CSeqdesc &d) const
bool IsSetRelease(void) const
CSeq_entry_EditHandle CopyEntry(const CSeq_entry_Handle &entry, int index=-1) const
Attach a copy of the existing seq-entry.
void x_RealResetDescr(void) const
void ResetRelease(void) const
CBioseq_EditHandle TakeBioseq(const CBioseq_EditHandle &seq, int index=-1) const
Remove bioseq from its location and attach to current one.
CSeq_annot_EditHandle AttachAnnot(CSeq_annot &annot) const
Attach an annotation.
CSeq_entry_EditHandle GetParentEntry(void) const
Navigate object tree.
CSeq_entry_EditHandle AddNewEntry(int index) const
Create new empty seq-entry.
TLevel GetLevel(void) const
void ResetLevel(void) const
void SetDate(TDate &v) const
void x_RealSetId(TId &id) const
const TRelease & GetRelease(void) const
friend class CSeq_entry_EditHandle
CSeq_annot_EditHandle CopyAnnot(const CSeq_annot_Handle &annot) const
Attach a copy of the annotation.
CSeq_entry_Handle GetTopLevelEntry(void) const
Return a handle for the top-level seq-entry.
void Reset(void)
Reset handle and make it not to point to any seq-entry.
CSeq_annot_EditHandle CopyAnnot(const CSeq_annot_Handle &annot) const
Attach a copy of the annotation.
CSeq_entry_Handle GetParentEntry(void) const
Get parent Seq-entry handle.
bool CanGetId(void) const
TSeq TakeSeq(const TSeq &seq) const
Make the empty Seq-entry be in seq state with moving bioseq object from the argument seq.
bool IsSetLevel(void) const
void x_RealSetRelease(TRelease &v) const
CConstRef< CBioseq_set > GetBioseq_setCore(void) const
Return core data for the bioseq-set.
TDescr & SetDescr(void) const
int GetSeq_entry_Index(const CSeq_entry_Handle &handle) const
const TObjectInfo & GetObjectInfo(void) const
void x_RealResetDate(void) const
void x_RealResetId(void) const
bool HasAnnots(void) const
void x_RealResetColl(void) const
void x_RealSetDate(TDate &v) const
const TId & GetId(void) const
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
#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.