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

Search Toolkit Book for CTableReaderMacro

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

+ Collaboration diagram for CTableReaderMacro:

Classes

struct  SColumnDelimiters
 
struct  SOneMacroData
 

Public Types

using TVecMacroNames = CMacroWorker::TVecMacroNames
 

Public Member Functions

 CTableReaderMacro ()
 
 ~CTableReaderMacro ()
 
TVecMacroNames CreateMacros (const wxString &filename, CRef< objects::CUser_object > column_properties, const SColumnDelimiters &del_options, CConstraintPanel *panel=nullptr, bool test=false)
 
bool RunMacro (const TVecMacroNames &macros, objects::CSeq_entry_Handle entry, ICommandProccessor *cmd_processor)
 
 CTableReaderMacro (const CTableReaderMacro &)=delete
 
CTableReaderMacrooperator= (const CTableReaderMacro &)=delete
 

Static Public Member Functions

static bool s_LooksLikeHeader (const string &value)
 

Private Member Functions

string x_GetVariables (const SColumnDelimiters &del_options, bool list_update_mrna=false) const
 
void x_GatherValuesAndMatchField ()
 
string x_GetIterator (const string &qual_type, EMacroFieldType &field_type, const string &qualifier, bool apply=false)
 
void x_GetMatchFieldConstraint (const SOneMacroData &data, const string &delimiter, TStringPairsVector &constraints)
 
TStringPairsVector x_GetStringConstraint (const string &target)
 
string x_GetFunction (SOneMacroData &data, TStringPairsVector &constraints)
 
string x_GetMacro (SOneMacroData &data, const SColumnDelimiters &del_options)
 
string x_GetCreateProtFeatsMacro ()
 

Private Attributes

string m_Filename
 
CConstRef< objects::CUser_object > m_ColProperties
 
SFieldFromTable m_MatchField
 
EMacroFieldType m_MatchFieldType { EMacroFieldType::eNotSet }
 
CConstraintPanelm_ConstraintPnl { nullptr }
 
vector< SOneMacroDatam_MacroVec
 

Detailed Description

Definition at line 49 of file table_reader_macro.hpp.

Member Typedef Documentation

◆ TVecMacroNames

Definition at line 52 of file table_reader_macro.hpp.

Constructor & Destructor Documentation

◆ CTableReaderMacro() [1/2]

CTableReaderMacro::CTableReaderMacro ( )
inline

Definition at line 74 of file table_reader_macro.hpp.

◆ ~CTableReaderMacro()

CTableReaderMacro::~CTableReaderMacro ( )
inline

Definition at line 75 of file table_reader_macro.hpp.

◆ CTableReaderMacro() [2/2]

CTableReaderMacro::CTableReaderMacro ( const CTableReaderMacro )
delete

Member Function Documentation

◆ CreateMacros()

CTableReaderMacro::TVecMacroNames CTableReaderMacro::CreateMacros ( const wxString &  filename,
CRef< objects::CUser_object >  column_properties,
const SColumnDelimiters del_options,
CConstraintPanel panel = nullptr,
bool  test = false 
)

◆ operator=()

CTableReaderMacro& CTableReaderMacro::operator= ( const CTableReaderMacro )
delete

◆ RunMacro()

bool CTableReaderMacro::RunMacro ( const TVecMacroNames macros,
objects::CSeq_entry_Handle  entry,
ICommandProccessor cmd_processor 
)

◆ s_LooksLikeHeader()

bool CTableReaderMacro::s_LooksLikeHeader ( const string value)
static

◆ x_GatherValuesAndMatchField()

void CTableReaderMacro::x_GatherValuesAndMatchField ( )
private

◆ x_GetCreateProtFeatsMacro()

string CTableReaderMacro::x_GetCreateProtFeatsMacro ( )
private

Definition at line 184 of file table_reader_macro.cpp.

Referenced by CreateMacros().

◆ x_GetFunction()

string CTableReaderMacro::x_GetFunction ( SOneMacroData data,
TStringPairsVector constraints 
)
private

◆ x_GetIterator()

string CTableReaderMacro::x_GetIterator ( const string qual_type,
EMacroFieldType field_type,
const string qualifier,
bool  apply = false 
)
private

◆ x_GetMacro()

string CTableReaderMacro::x_GetMacro ( SOneMacroData data,
const SColumnDelimiters del_options 
)
private

◆ x_GetMatchFieldConstraint()

void CTableReaderMacro::x_GetMatchFieldConstraint ( const SOneMacroData data,
const string delimiter,
TStringPairsVector constraints 
)
private

◆ x_GetStringConstraint()

TStringPairsVector CTableReaderMacro::x_GetStringConstraint ( const string target)
private

◆ x_GetVariables()

string CTableReaderMacro::x_GetVariables ( const SColumnDelimiters del_options,
bool  list_update_mrna = false 
) const
private

Member Data Documentation

◆ m_ColProperties

CConstRef<objects::CUser_object> CTableReaderMacro::m_ColProperties
private

Definition at line 120 of file table_reader_macro.hpp.

Referenced by CreateMacros(), and x_GatherValuesAndMatchField().

◆ m_ConstraintPnl

CConstraintPanel* CTableReaderMacro::m_ConstraintPnl { nullptr }
private

Definition at line 125 of file table_reader_macro.hpp.

Referenced by CreateMacros(), and x_GetStringConstraint().

◆ m_Filename

string CTableReaderMacro::m_Filename
private

Definition at line 119 of file table_reader_macro.hpp.

Referenced by CreateMacros(), and x_GetVariables().

◆ m_MacroVec

vector<SOneMacroData> CTableReaderMacro::m_MacroVec
private

Definition at line 127 of file table_reader_macro.hpp.

Referenced by CreateMacros(), and x_GatherValuesAndMatchField().

◆ m_MatchField

SFieldFromTable CTableReaderMacro::m_MatchField
private

◆ m_MatchFieldType

EMacroFieldType CTableReaderMacro::m_MatchFieldType { EMacroFieldType::eNotSet }
private

The documentation for this class was generated from the following files:
Modified on Tue Feb 27 05:55:54 2024 by modify_doxy.py rev. 669887