1 #ifndef GUI_OBJUTILS___MACRO_FN_ENTRY__HPP
2 #define GUI_OBJUTILS___MACRO_FN_ENTRY__HPP
75 virtual void TheFunction();
79 virtual bool x_ValidArguments()
const;
89 static short s_RemoveSingleItemSet(objects::CSeq_entry_Handle& seh);
104 static CRef<CCmdComposite> s_AutodefSeqEntryNoTitle(
const objects::CSeq_entry_Handle& seh,
const objects::CAutoDefOptions& options);
105 static CRef<CCmdComposite> s_AutodefSequenceNoTitle(
const objects::CSeq_entry_Handle& seh,
const objects::CBioseq_Handle& target,
const objects::CAutoDefOptions& options);
107 static void s_AutodefBioseqsNoTitle(
const objects::CSeq_entry_Handle& seh, objects::CAutoDefWithTaxonomy& autodef,
110 static void s_AutodefSetsNoTitle(
const objects::CSeq_entry_Handle& seh, objects::CAutoDefWithTaxonomy& autodef,
CRef<CCmdComposite> composite_cmd);
112 static void s_AddAutodefOptions(
const objects::CAutoDef& autodef,
const objects::CBioseq_Handle& bsh,
CRef<CCmdComposite> composite_cmd);
119 void x_AddModifiersToOptions(objects::CAutoDefOptions& opts);
120 bool x_IsRequested(
const objects::CAutoDefAvailableModifier& modifier);
121 string x_GetDescription();
133 using TModifiers = objects::CAutoDefSourceDescription::TAvailableModifierVector;
134 static void s_ConfigureAutodefOptionsForID(
TModifiers& modifiers, objects::CSeq_entry_Handle seh);
144 static void s_SelectModifiersforAutodefID(objects::CAutoDef& autodef,
TModifiers& modifiers, objects::CSeq_entry_Handle seh);
170 void x_AddModifiersToOptions(objects::CAutoDefOptions& opts);
171 bool x_IsRequested(
const objects::CAutoDefAvailableModifier& modifier);
172 bool x_IsComplete(
const objects::CBioseq_Handle bsh);
184 void s_RenormalizeNucProtSets(objects::CSeq_entry_Handle seh,
Int4&
count);
236 EMatch x_GetMatchType();
Base class for all serializable objects.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Base class for any user function that performs editing operations on ASN.1 data.
Include a standard set of the NCBI C++ Toolkit most basic headers.
virtual void TheFunction()=0
Function implementation.
DECLARE_FUNC_CLASS_WITH_FNCNAME(CMacroFunction_SetPubAuthorMI)
static CTempString GetFuncName()
CMacroFunction_AutodefComplete(EScopeEnum func_scope)
static CTempString GetFuncName()
static CTempString GetFuncName()
static CTempString GetFuncName()
map< objects::CBioseq_Handle, set< objects::CSeq_feat_Handle > > m_ProductToCds
CMacroFunction_DeltaSeqToRaw(EScopeEnum func_scope)
static CTempString GetFuncName()
CMacroFunction_RemoveSingleItemSet(EScopeEnum func_scope)
CMacroFunction_RenormalizeNucProtSet(EScopeEnum func_scope)
virtual void x_ResetState()
Reset the state of member variables that are set directly/indirectly from function arguments.
static CTempString GetFuncName()
map< objects::CBioseq_Handle, set< objects::CSeq_feat_Handle > > m_ProductToCds
vector< CRef< objects::CSeq_entry > > m_Proteins
CMacroFunction_UpdateProteinSeqs(EScopeEnum func_scope)
CMacroFunction_Autodef(EScopeEnum func_scope)
CMacroFunction_FixSpelling(EScopeEnum func_scope)
CMacroFunction_AutodefId(EScopeEnum func_scope)
static CTempString GetFuncName()
static CTempString GetFuncName()
static CTempString GetFuncName()
CMacroFunction_CreateProteinFeats(EScopeEnum func_scope)
CMacroFunction_RefreshDefline(EScopeEnum func_scope)
virtual bool x_ValidArguments() const =0
Tests the number and the type of function arguments.
objects::CAutoDefSourceDescription::TAvailableModifierVector TModifiers
static CTempString GetFuncName()
@ eMatchId
match protein by protein_id
int32_t Int4
4-byte (32-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.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define NCBI_GUIOBJUTILS_EXPORT
static bool s_IsSingletonSet(const CBioseq_set_Handle &bioseq_set)