NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
CMacroWorker Class Reference

Search Toolkit Book for CMacroWorker

#include <gui/packages/pkg_sequence_edit/macro_worker.hpp>

+ Collaboration diagram for CMacroWorker:

Public Types

typedef vector< stringTVecMacroNames
 
typedef vector< CRef< macro::CMacroRep > > TVecMacroRep
 

Public Member Functions

 CMacroWorker (objects::CSeq_entry_Handle entry, CConstRef< objects::CSeq_submit > submit, ICommandProccessor *cmdProccessor)
 
 ~CMacroWorker ()
 
bool ExecuteMacros (const vector< string > &macro_names, CNcbiOstrstream &log, bool add_user_object=false, bool resolve_vars=false)
 
bool ExecuteMacros (const string &filename, CNcbiOstrstream &log, bool add_user_object=false, bool resolve_vars=false)
 

Static Public Member Functions

static TVecMacroNames s_GetMacroSteps (const CTempString &macro_class)
 

Static Public Attributes

static const char * sm_AutofixGB = "AutofixGB"
 
static const char * sm_AutofixWGS = "AutofixWGS"
 
static const char * sm_AutofixTSA = "AutofixTSA"
 

Private Member Functions

 CMacroWorker (const CMacroWorker &)
 
CMacroWorkeroperator= (const CMacroWorker &)
 
bool x_ExecuteOneMacro (macro::CMacroRep &macro_rep, macro::CMacroEngine &engine, CNcbiOstrstream &log, bool resolve_vars=false)
 
bool x_ExecuteOneMacro (const string &macro_name, macro::CMacroEngine &engine, CNcbiOstrstream &log, bool resolve_vars=false)
 
void x_HandleOutput (const bool status, const bool add_user_object, const string &time)
 
bool x_ResolveVariables (CRef< macro::CMacroRep > macro_rep)
 

Private Attributes

objects::CSeq_entry_Handle m_Seh
 
CConstRef< objects::CSeq_submit > m_SeqSubmit
 
ICommandProccessorm_CmdProcessor
 
CRef< CMacroCmdCompositem_MacroCmd { nullptr }
 

Detailed Description

Definition at line 41 of file macro_worker.hpp.

Member Typedef Documentation

◆ TVecMacroNames

Definition at line 44 of file macro_worker.hpp.

◆ TVecMacroRep

typedef vector<CRef<macro::CMacroRep> > CMacroWorker::TVecMacroRep

Definition at line 45 of file macro_worker.hpp.

Constructor & Destructor Documentation

◆ CMacroWorker() [1/2]

CMacroWorker::CMacroWorker ( objects::CSeq_entry_Handle  entry,
CConstRef< objects::CSeq_submit >  submit,
ICommandProccessor cmdProccessor 
)
inline

Definition at line 51 of file macro_worker.hpp.

◆ ~CMacroWorker()

CMacroWorker::~CMacroWorker ( )
inline

Definition at line 54 of file macro_worker.hpp.

◆ CMacroWorker() [2/2]

CMacroWorker::CMacroWorker ( const CMacroWorker )
private

Member Function Documentation

◆ ExecuteMacros() [1/2]

bool CMacroWorker::ExecuteMacros ( const string filename,
CNcbiOstrstream log,
bool  add_user_object = false,
bool  resolve_vars = false 
)

◆ ExecuteMacros() [2/2]

bool CMacroWorker::ExecuteMacros ( const vector< string > &  macro_names,
CNcbiOstrstream log,
bool  add_user_object = false,
bool  resolve_vars = false 
)

◆ operator=()

CMacroWorker& CMacroWorker::operator= ( const CMacroWorker )
private

◆ s_GetMacroSteps()

CMacroWorker::TVecMacroNames CMacroWorker::s_GetMacroSteps ( const CTempString macro_class)
static

◆ x_ExecuteOneMacro() [1/2]

bool CMacroWorker::x_ExecuteOneMacro ( const string macro_name,
macro::CMacroEngine &  engine,
CNcbiOstrstream log,
bool  resolve_vars = false 
)
private

◆ x_ExecuteOneMacro() [2/2]

bool CMacroWorker::x_ExecuteOneMacro ( macro::CMacroRep &  macro_rep,
macro::CMacroEngine &  engine,
CNcbiOstrstream log,
bool  resolve_vars = false 
)
private

Referenced by ExecuteMacros().

◆ x_HandleOutput()

void CMacroWorker::x_HandleOutput ( const bool  status,
const bool  add_user_object,
const string time 
)
private

◆ x_ResolveVariables()

bool CMacroWorker::x_ResolveVariables ( CRef< macro::CMacroRep >  macro_rep)
private

Member Data Documentation

◆ m_CmdProcessor

ICommandProccessor* CMacroWorker::m_CmdProcessor
private

Definition at line 64 of file macro_worker.hpp.

Referenced by x_HandleOutput().

◆ m_MacroCmd

CRef<CMacroCmdComposite> CMacroWorker::m_MacroCmd { nullptr }
private

Definition at line 65 of file macro_worker.hpp.

Referenced by ExecuteMacros(), and x_HandleOutput().

◆ m_Seh

objects::CSeq_entry_Handle CMacroWorker::m_Seh
private

Definition at line 62 of file macro_worker.hpp.

Referenced by x_HandleOutput().

◆ m_SeqSubmit

CConstRef<objects::CSeq_submit> CMacroWorker::m_SeqSubmit
private

Definition at line 63 of file macro_worker.hpp.

◆ sm_AutofixGB

const char * CMacroWorker::sm_AutofixGB = "AutofixGB"
static

◆ sm_AutofixTSA

const char * CMacroWorker::sm_AutofixTSA = "AutofixTSA"
static

Definition at line 49 of file macro_worker.hpp.

Referenced by CEditingBtnsPanel::RunMacroWithReport().

◆ sm_AutofixWGS

const char * CMacroWorker::sm_AutofixWGS = "AutofixWGS"
static

Definition at line 48 of file macro_worker.hpp.

Referenced by CEditingBtnsPanel::RunMacroWithReport().


The documentation for this class was generated from the following files:
Modified on Tue May 28 05:51:58 2024 by modify_doxy.py rev. 669887