A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/macro__parse__itemdata_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/macro_parse_itemdata.cpp Source File

85

descr +=

" entire text"

;

90

descr +=

" just after"

;

93

descr +=

" starting with"

;

100

descr +=

" 'numbers'"

;

103

descr +=

" 'letters'"

;

114

descr +=

" up to and including"

;

121

descr +=

" 'numbers'"

;

124

descr +=

" 'letters'"

;

171  TConstraints

& constraints,

bool

remove_constraint)

const 174  string

resolve_fnc, var_name = path;

180  if

(!resolve_fnc.empty()) {

183

}

else if

(path.find(

','

) !=

NPOS

) {

184

vector<string> tokens;

188

var_name = tokens[1];

192  return

make_pair(resolve_fnc, var_name);

200  bool

remove_constraint =

true

;

207  function

+=

source

.first;

208  function

+= dest.first;

223  function

+=

"("

+

source

.second +

");"

;

227  string

parsed_text =

"text"

;

243

parsed_fnc +=

"("

+ src_field +

", "

;

255

left_del =

"eDigits"

;

258

left_del =

"eLetters"

;

262

parsed_fnc += left_del +

", "

+

m_IncludeLeft

.first +

", "

;

270

right_del =

"eDigits"

;

273

right_del =

"eLetters"

;

283

parsed_fnc +=

");\n"

;

295  return

empty_before && empty_after;

327  x_LoadPanel

(parent,

"ParseStringSourceQual"

, args);

345  string

rt_var =

"src"

;

348  string

src_resolve_fnc, src_var_name = path;

351  if

(path.find(

','

) !=

NPOS

) {

352

vector<string> tokens;

358  if

(!src_resolve_fnc.empty()) {

370  if

(dest.find(

','

) !=

NPOS

) {

371

vector<string> tokens;

378  function

+= src_resolve_fnc;

392  if

(path.find(

','

) !=

NPOS

) {

393  function

+= CMacroFunction_RemoveModifier::GetFuncName();

394  function

+=

"("

+ rt_var +

");"

;

398  function

+=

"("

+ src_var_name +

");"

;

403  string

parsed_text =

"text"

;

439  x_LoadPanel

(parent,

"ParseToStringSourceQual"

, args);

481  if

(dest.find(

','

) !=

NPOS

) {

482

vector<string> tokens;

491  if

(src_path ==

"localid"

) {

493  function

= rt_var +

" = "

+ CMacroFunction_LocalID::GetFuncName() +

"();\n"

;

495  else if

(src_path ==

"defline"

) {

498  function

+=

"(\"descr..title\");\n"

;

539  x_LoadPanel

(parent, CMacroFunction_ParseToDBLink::GetFuncName(), args);

580  if

(dest.find(

','

) !=

NPOS

) {

581

vector<string> tokens;

590  if

(src_path ==

"localid"

) {

592  function

= rt_var +

" = "

+ CMacroFunction_LocalID::GetFuncName() +

"();\n"

;

594  else if

(src_path ==

"defline"

) {

595

rt_var =

"\"descr..title\""

;

604  function

+= CMacroFunction_ParseToDBLink::GetFuncName();

616  return

{ CMacroFunction_ParseToDBLink::GetFuncName(),

618

CMacroFunction_LocalID::GetFuncName() };

623  return

{ CMacroFunction_ParseToDBLink::GetFuncName() };

657  bool

modified = (new_target !=

m_Target

);

690  bool

remove_constraint =

true

;

697  if

(src_path ==

"localid"

) {

699  function

= rt_var +

" = "

+ CMacroFunction_LocalID::GetFuncName() +

"();\n"

;

700  function

+= dest.first;

702  else if

(src_path ==

"defline"

) {

705  function

+=

"(\"descr..title\");\n"

;

706  function

+= dest.first;

714  function

+= dest.first;

731

CMacroFunction_Resolve::GetFuncName(),

733

CMacroFunction_LocalID::GetFuncName(),

748  x_LoadPanel

(parent,

"ParseStringProteinQual"

, args);

780  function

+=

source

.first;

781  function

+= dest.first;

796  function

+=

"("

+

source

.second +

");"

;

800  string

parsed_text =

"text"

;

816  return

{ CMacroFunction_Resolve::GetFuncName(),

821

CMacroFunction_UpdatemRNAProduct::GetFuncName() };

857  bool

modified = (new_target !=

m_Target

);

886  if

(from_field.empty() || to_field.empty())

889  if

((from_field ==

"ncRNA class"

|| to_field ==

"ncRNA class"

) && !

NStr::EqualNocase

(rna_type,

"ncRNA"

))

892  if

(from_field ==

"codons recognized"

)

900  string

src_feat =

"rna"

;

905

from_field = rna_type +

" "

+ from_field;

908  string

dest_feat =

"rna"

;

913

to_field = rna_type +

" "

+ to_field;

917  bool

remove_constraint =

true

;

918  string

src_var =

"src"

;

921  if

(src_feat == dest_feat && src_feat ==

"rna"

) {

924  if

(!

source

.first.empty())

925  function

+=

source

.first;

926  if

(!dest.first.empty())

927  function

+= dest.first;

940  function

+= CMacroFunction_RemoveRnaProduct::GetFuncName() +

"();"

;

944  if

(!

source

.first.empty()) {

948  function

+=

source

.second;

955  string

parsed_text =

"text"

;

958  if

(to_field ==

"tRNA codons recognized"

) {

959  function

+= CMacroFunction_SetCodonsRecognized::GetFuncName();

960  function

+=

"("

+ parsed_text +

");"

;

977  if

(!

source

.first.empty())

978  function

+=

source

.first;

980  if

(dest_path.find(

','

) !=

NPOS

) {

981

vector<string> tokens;

985

dest_path = tokens[1];

990  function

+=

"(\""

+ src_feat +

"\", "

+

source

.second +

", \""

+ dest_feat +

"\", "

+ dest_path +

", "

;

999  if

(src_feat ==

"gene"

) {

1000  function

+= CMacroFunction_RmvRelFeatQual::GetFuncName();

1001  function

+=

"(\"gene\", "

+

source

.second +

");"

;

1005  function

+= CMacroFunction_RemoveRnaProduct::GetFuncName() +

"();"

;

1009  if

(!

source

.first.empty()) {

1010  function

+= src_var;

1013  function

+=

source

.second;

1021  string

parsed_text =

"text"

;

1022  if

(src_feat ==

"rna"

) {

1025  function

+=

"("

+ parsed_text +

", \""

+ dest_feat +

"\", "

+ dest_path +

", "

;

1034  function

+=

"(\""

+ src_feat +

"\", "

+

source

.second +

", "

;

1037  if

(dest_feat ==

"rna"

) {

1047  else if

(dest_feat ==

"gene"

) {

1049  function

+=

"("

+ parsed_text +

", \""

+ dest_feat +

"\", "

+ dest_path +

", "

;

1064  return

{ CMacroFunction_Resolve::GetFuncName(),

1068

CMacroFunction_RemoveRnaProduct::GetFuncName(),

1070

CMacroFunction_RmvRelFeatQual::GetFuncName(),

1074

CMacroFunction_SetCodonsRecognized::GetFuncName()};

1100  x_LoadPanel

(parent,

"ParseStringFeatQual"

, args);

1118  bool

modified = (new_target !=

m_Target

);

1142  if

(src_feat != dest_feat) {

1156  if

(src_feat.empty() || src_field.empty() || dest_field.empty())

return kEmptyStr

;

1165  string

src_var =

"src"

;

1168  if

(src_feat == dest_feat) {

1173  if

(!

source

.first.empty())

1174  function

+=

source

.first;

1175  if

(!dest.first.empty())

1176  function

+= dest.first;

1189  if

(!

source

.first.empty()) {

1190  function

+= src_var;

1193  function

+=

source

.second;

1199  string

parsed_text =

"text"

;

1215  if

(!

source

.first.empty())

1216  function

+=

source

.first;

1218  if

(dest_path.find(

','

) !=

NPOS

) {

1219

vector<string> tokens;

1223

dest_path = tokens[1];

1227  function

+=

"("

+

source

.second +

", \""

+ dest_feat +

"\", \""

+ dest_path +

"\", "

;

1237  if

(!

source

.first.empty()) {

1238  function

+= src_var;

1241  function

+=

source

.second;

1247  string

parsed_text =

"text"

;

1250  function

+=

"("

+ parsed_text +

", \""

+ dest_feat +

"\", \""

+ dest_path +

"\", "

;

1263  return

{ CMacroFunction_Resolve::GetFuncName(),

1264

CMacroFunction_GeneQual::GetFuncName(),

1271

CMacroFunction_UpdatemRNAProduct::GetFuncName() };

1293  x_LoadPanel

(parent,

"ParseStringProteinQual"

, args);

1309  bool

modified = (new_target !=

m_Target

);

1324  string

src_feat, src_field;

1326  string

dest_feat, dest_field;

1328  if

(src_feat != dest_feat) {

1339  string

src_feat, src_field;

1341  string

dest_feat, dest_field;

1349  string

src_var =

"src"

;

1352  if

(src_feat == dest_feat) {

1358  if

(!

source

.first.empty())

1359  function

+=

source

.first;

1360  if

(!dest.first.empty())

1361  function

+= dest.first;

1374  if

(!

source

.first.empty()) {

1375  function

+= src_var;

1378  function

+=

source

.second;

1384  string

parsed_text =

"text"

;

1400  if

(!

source

.first.empty())

1401  function

+=

source

.first;

1403  if

(dest_path.find(

','

) !=

NPOS

) {

1404

vector<string> tokens;

1408

dest_path = tokens[1];

1413  function

+=

"("

+

source

.second +

", \""

+ dest_feat +

"\", \""

+ dest_path +

"\", "

;

1423  if

(!

source

.first.empty()) {

1424  function

+= src_var;

1427  function

+=

source

.second;

1433  string

parsed_text =

"text"

;

1436  function

+=

"("

+ parsed_text +

", \""

+ dest_feat +

"\", \""

+ dest_path +

"\", "

;

1449  return

{ CMacroFunction_Resolve::GetFuncName(),

1456

CMacroFunction_UpdatemRNAProduct::GetFuncName() };

1479  x_LoadPanel

(parent,

"ParseBsrcToStructCommQual"

, args);

1505

descr +=

"database name"

;

1508

descr +=

"field names"

;

1525  string

rt_var =

"src"

;

1528  string

src_resolve_fnc, src_var_name = path;

1531  if

(path.find(

','

) !=

NPOS

) {

1532

vector<string> tokens;

1538  if

(!src_resolve_fnc.empty()) {

1551  function

+= src_resolve_fnc;

1557  function

+=

"("

+ src_var_name +

", "

+ dest;

1558  if

(!dest_field_name.empty()) {

1560  function

+=

", "

+ dest_field_name;

1570  if

(path.find(

','

) !=

NPOS

) {

1571  function

+= CMacroFunction_RemoveModifier::GetFuncName();

1572  function

+=

"("

+ rt_var +

");"

;

1576  function

+=

"("

+ src_var_name +

");"

;

1581  string

parsed_text =

"text"

;

1584  function

+=

"("

+ parsed_text +

", "

+ dest;

1585  if

(!dest_field_name.empty()) {

1587  function

+=

", "

+ dest_field_name;

EMacroFieldType m_FieldType

for actions such as appply/edit/etc.

vector< string > GetFeatureTypes(bool for_removal=false, bool to_create=false, bool include_all=false) const

vector< string > GetRNATypes() const

string GetAsnPathToFieldName(const string &field, EMacroFieldType type, const string &target=kEmptyStr)

const vector< string > & GetParseToBsrcKeywords() const

static string s_GetGUIMappedStructCommField(const string &value)

const vector< string > & GetParseToCdsGeneProtKeywords() const

vector< string > GetncRNAClassTypes(bool include_any=true) const

static CMacroEditorContext & GetInstance()

vector< string > GetFeatQualifiers() const

const vector< string > & GetBsrcKeywords() const

vector< string > GetFieldNames(EMacroFieldType type) const

virtual void x_AddParamPanel(wxWindow *parent)

CParseBsrcToStructCommTreeItemData()

virtual vector< string > GetFunctionNames() const

virtual string GetFunction(TConstraints &constraints) const

virtual const vector< string > & GetKeywords() const

virtual vector< string > GetMainFunctions() const

virtual string GetMacroDescription() const

virtual string GetFunction(TConstraints &constraints) const

virtual const vector< string > & GetKeywords() const

virtual vector< string > GetFunctionNames() const

virtual void x_AddParamPanel(wxWindow *parent)

virtual string GetFunction(TConstraints &constraints) const

virtual vector< string > GetFunctionNames() const

virtual bool UpdateTarget()

virtual string GetMacroDescription() const

CParseCdsGeneProtTreeItemdata()

virtual void x_AddParamPanel(wxWindow *parent)

virtual string GetVariables()

virtual vector< string > GetMainFunctions() const

virtual vector< string > GetFunctionNames() const

virtual string GetVariables()

virtual vector< string > GetMainFunctions() const

virtual string GetFunction(TConstraints &constraints) const

virtual string GetMacroDescription() const

virtual void x_AddParamPanel(wxWindow *parent)

virtual bool UpdateTarget()

CParseFeatQualTreeItemData()

virtual string GetMacroDescription() const

virtual void x_AddParamPanel(wxWindow *parent)

virtual string GetFunction(TConstraints &constraints) const

virtual vector< string > GetFunctionNames() const

CParseProteinQualTreeItemData()

virtual vector< string > GetFunctionNames() const

string x_GetParsedTextFunction(const string &src_field, const string &parsed_text) const

pair< string, string > x_GetResolveFuncForMultValQuals(const string &field, const string &rt_var, TConstraints &constraints, bool remove_constraint) const

virtual string GetFunction(TConstraints &constraints) const

string x_GetParsedTextDescription() const

virtual void x_AddParamPanel(wxWindow *parent)

virtual string GetVariables()

virtual vector< string > GetMainFunctions() const

pair< string, bool > m_IncludeLeft

CParseQualTreeItemData(const string &description, EMacroFieldType type)

bool x_ParseEntireText() const

virtual string GetMacroDescription() const

void x_GetParsedTextFncCore(string &parsed_fnc) const

pair< string, bool > m_IncludeRight

pair< string, bool > m_CaseSensitive

virtual vector< string > GetFunctionNames() const

CParseRNAQualTreeItemData()

virtual string GetMacroDescription() const

virtual vector< string > GetMainFunctions() const

virtual void x_AddParamPanel(wxWindow *parent)

virtual bool UpdateTarget()

virtual string GetFunction(TConstraints &constraints) const

virtual string GetVariables()

virtual const vector< string > & GetKeywords() const

CParseToBsrcTreeItemData()

virtual void x_AddParamPanel(wxWindow *parent)

virtual vector< string > GetMainFunctions() const

virtual string GetFunction(TConstraints &constraints) const

virtual vector< string > GetFunctionNames() const

virtual const vector< string > & GetKeywords() const

CParseToCdsGeneProtTreeItemData()

virtual bool UpdateTarget()

virtual string GetFunction(TConstraints &constraints) const

virtual void x_AddParamPanel(wxWindow *parent)

virtual vector< string > GetFunctionNames() const

virtual string GetVariables()

virtual string GetVariables()

virtual void x_AddParamPanel(wxWindow *parent)

virtual vector< string > GetMainFunctions() const

virtual string GetFunction(TConstraints &constraints) const

CParseToDBLinkTreeItemData()

virtual vector< string > GetFunctionNames() const

CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...

void x_LoadPanel(wxWindow *parent, const string &panel_name, const TArgumentsVector &arguments)

unique_ptr< CMacroPanelLoader > m_Panel

constructed panel for specifying function arguments

vector< pair< string, string > > TConstraints

bool Empty(const CNcbiOstrstream &src)

static CTempString GetFuncName()

static const char * sm_SeqForFeat

static CTempString GetFuncName()

static CTempString GetFuncName()

static const char * sm_SeqForDescr

class CMacroFunction_Sequence_For_Seqdesc SEQUENCE_FOR_SEQDESC(field_name) SEQUENCE_FOR_SEQFEAT(field...

static CTempString GetFuncName()

static CTempString GetFuncName()

static CTempString GetFuncName()

static CTempString GetFuncName()

static CTempString GetFuncName()

static CTempString GetFuncName()

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)

Check if a string ends with a specified suffix value.

static const string BoolToString(bool value)

Convert bool to string.

static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)

Check if a string starts with a specified prefix value.

static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

vector< macro::SArgMetaData > TArgumentsVector

pair< string, string > GetResolveFuncForDestCdsGeneProtQuals(const string &fieldname, const string &rt_var, TConstraints &constraints, bool remove_constraint)

void UpdateConstraintsForDualCdsGeneProt(TConstraints &constraints, const string &src_feat)

void OnRemoveFromParsedField(CArgumentList &list, CArgument &arg)

void OnRightDigitsLettersInParsePanels(CArgumentList &list, CArgument &arg)

void OnLeftDigitsLettersInParsePanels(CArgumentList &list, CArgument &arg)

void OnStructCommFieldDblChanged(CArgumentList &list, CArgument &arg)

bool MultipleValuesAllowed(const string &field)

void UpdateConstraintsForFeatures(TConstraints &constraints, const string &feature)

EMacroFieldType GetSourceTypeInDoublePanel(const CArgumentList &arg_list, EDirType dir)

string GetResolveFuncForMultiValuedQual(const string &field, const string &rt_var, TConstraints &constraints, bool remove_constraint)

pair< string, string > GetResolveFuncForRNAQuals(const string &fieldname, const string &rt_var, TConstraints &constraints, bool remove_constraint)

string GetResolveFuncForQual(const string &container, const string &field, const string &rt_var, TConstraints &constraints, bool remove_constraint=true)

Generates the definition of rt_var based on input "field".

string GetUpdatemRNADescription(const CArgument &arg)

void AddConstraintIgnoreNewText(const string &field, TConstraints &constraints, const CArgumentList &arg_list, const string &target=kEmptyStr)

CTempString UpdateTargetForDualFeatures(const string &feature, const string &from_field)

pair< string, string > GetResolveFuncForSrcCdsGeneProtQuals(const string &fieldname, const string &rt_var, TConstraints &constraints, bool remove_constraint)

CTempString UpdateTargetForRnas(const string &rna_type)

void WrapInQuotes(string &str)

string GetEditableFieldForPair(const string &field, const string &rt_var, bool is_feature)

void OnProteinNameDouble(CArgumentList &list, CArgument &arg)

string GetCapitalizationTypeFromChoice(const string &cap_change)

pair< string, string > GetResolveFuncForDestFeatQuals(const string &feature, const string &field, const string &rt_var, TConstraints &constraints, bool remove_constraint)

pair< string, string > GetResolveFuncForSrcFeatQuals(const string &feature, const string &field, const string &rt_var, TConstraints &constraints, bool remove_constraint)

void OnExistingTextChanged(CArgumentList &list, CArgument &arg)

string GetHandleOldValue(const string &type)

void OnRnaTypeChanged(CArgumentList &list, CArgument &arg)

void UpdateConstraintsForRnas(TConstraints &constraints, const CArgumentList &arg_list)

string GetDelimiterChar(const string &del)

void UpdateFeatureType(string &feature, const string &field)

CTempString UpdateTargetForCdsGeneProt(const string &fieldname)

void OnProductDouble(CArgumentList &list, CArgument &arg)

void AppendUpdatemRNAFnc(bool update_mrna, string &function)

void GetFeatureAndField(const string &field_name, string &feature, string &field)

string GetExistingTextDescr(const CArgumentList &arg_list)

string GetUpdatemRNAVar(const CArgumentList &arg_list)

const string kWholeWordParse

const string kDigitsRight

const string kLetterRight

const TArgumentsVector & GetOptionalArgs()

const TArgumentsVector & GetParseArgs()

const string kExistingText

const TArgumentsVector & GetDualBsrcArgs()

const string kCaseInsensParse

const string kStrCommField

const CharType(& source)[N]

void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)


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