() {
return "Edit unindexed object"; };
90 T* actual_obj =
dynamic_cast<T*
>(obj);
93 LOG_POST(
Error<<
"Error: attempt to edit wrong kind of object");
97 const T* tnew_obj =
dynamic_cast<const T*
>(new_obj);
99 LOG_POST(
Error<<
"Error: attempt to edit object with object of different type");
107orig_obj->Assign(*actual_obj);
109m_UnindexedObjects.push_back(sobj);
116 constobjects::CBioseq* orig_bioseq =
dynamic_cast<constobjects::CBioseq*
>(obj.
object.
GetPointer());
117 if( ! orig_bioseq) {
118 LOG_POST(
Error<<
"Error: attempt to edit non-CBioseq object" 123objects::CBioseq* actual_bioseq = (objects::CBioseq*) (orig_bioseq);
125 constobjects::CBioseq* new_bioseq =
dynamic_cast<constobjects::CBioseq*
>(new_obj);
127 LOG_POST(
Error<<
"Error: attempt to edit non-CBioseq object" 133sbioseq.
handle= obj.
scope->GetBioseqEditHandle(*orig_bioseq);
138m_Bioseqs.push_back(sbioseq);
154bioseq.
handle.SetInst(*inst);
169bioseq.
handle.SetInst(*inst);
180 CCmdChangeSeqdesc(
constobjects::CSeq_entry_Handle& seh,
constobjects::CSeqdesc& old_desc,
constobjects::CSeqdesc& new_desc)
181: m_Seh(seh), m_OldDesc(&old_desc), m_NewDesc(&new_desc)
User-defined methods of the data storage class.
vector< SBioseq > TBioseqs
TUnindexedObjects m_UnindexedObjects
virtual void Unexecute()
Undo (opposite to Execute())
void AddBioseq(SConstScopedObject &obj, const CObject *new_obj)
CChangeUnindexedObjectCommand()
vector< SUnindexedObject > TUnindexedObjects
virtual void Execute()
Do the editing action.
virtual string GetLabel()
void Add(CObject *obj, const CObject *new_obj)
objects::CSeq_entry_Handle m_Seh
CCmdChangeSeqdesc(const objects::CSeq_entry_Handle &seh, const objects::CSeqdesc &old_desc, const objects::CSeqdesc &new_desc)
CConstRef< objects::CSeqdesc > m_NewDesc
CConstRef< objects::CSeqdesc > m_OldDesc
Interface (functor) for object editing.
virtual void Unexecute()=0
Undo (opposite to Execute())
CChangeUnindexedObjectCommand< objects::CSubmit_block > CChangeSubmitBlockCommand
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
CRef< objects::CScope > scope
CConstRef< CObject > object
string GetLabel(const CSeq_id &id)
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIOBJUTILS_EXPORT
Defines to provide correct exporting from DLLs in Windows.
string Execute(const string &cmmd, const vector< string > &args, const string &data=kEmptyStr)
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
CRef< objects::CBioseq > orig_bioseq
objects::CBioseq_EditHandle handle
CConstRef< objects::CBioseq > new_bioseq
CRef< objects::CBioseq > actual_bioseq
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4