NCBI C++ ToolKit
Functions
NMacroStats Namespace Reference

Functions

void ReportUsage (const wxString &dialog_name, const string &action_name)
 Report events in the macro_flow_editor and in the macro_editor. More...
 
void ReportMacroExecution ()
 Report when a macro is executed. More...
 
void SaveScriptCreated (const string &macro)
 Save macro created by the editor. More...
 
void SaveScriptFromLibrary (const string &macro)
 Save macro obtained from the library. More...
 
void SaveScriptToFile (const string &macro, const string &filename)
 Save macro to a file. More...
 
void ReportMacroToBeUpdated (const string &username, const string &filename, const string &action)
 Report attempt to update a local macro script. More...
 

Function Documentation

◆ ReportMacroExecution()

void NMacroStats::ReportMacroExecution ( )

Report when a macro is executed.

Definition at line 66 of file report_dialog.cpp.

References ReportUsage().

Referenced by CMacroWorker::ExecuteMacros(), and CMacroFlowEditor::RunScript().

◆ ReportMacroToBeUpdated()

void NMacroStats::ReportMacroToBeUpdated ( const string username,
const string filename,
const string action 
)

Report attempt to update a local macro script.

Definition at line 103 of file report_dialog.cpp.

References REPORT_USAGE.

Referenced by s_UpdateMacros().

◆ ReportUsage()

void NMacroStats::ReportUsage ( const wxString &  dialog_name,
const string action_name 
)

◆ SaveScriptCreated()

void NMacroStats::SaveScriptCreated ( const string macro)

Save macro created by the editor.

Definition at line 93 of file report_dialog.cpp.

References SaveScriptToFile().

Referenced by CMacroEditor::OnAcceptClick().

◆ SaveScriptFromLibrary()

void NMacroStats::SaveScriptFromLibrary ( const string macro)

Save macro obtained from the library.

Definition at line 98 of file report_dialog.cpp.

References SaveScriptToFile().

Referenced by CMacroFlowEditor::OnTreectrlItemActivated(), and CMacroFlowEditor::OnTreectrlItemDrop().

◆ SaveScriptToFile()

void NMacroStats::SaveScriptToFile ( const string macro,
const string filename 
)

Save macro to a file.

Definition at line 71 of file report_dialog.cpp.

References CDirEntry::ConcatPathEx(), CDir::Create(), Error(), CDir::Exists(), Get(), LOG_POST, out(), and ToStdString().

Referenced by SaveScriptCreated(), and SaveScriptFromLibrary().

Modified on Thu Feb 29 12:23:14 2024 by modify_doxy.py rev. 669887