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__lib_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/objutils/macro_lib.cpp Source File

38 #define _TRACE(arg) ((void)0) 50

m_LastError.resize(0);

56

x_InitializeMacrosNameMap();

82

macro_names.push_back(it->GetName());

89  return

(it ==

m_MacroByName

.

end

()) ? 0 : (*it).second.GetNCPointerOrNull();

98  return

list<string>();

128  return

list<string>();

136  string

store_filename = filename;

137  if

(

NStr::EndsWith

(filename,

"/synonyms.txt"

) || filename ==

"synonyms.txt"

) {

138

store_filename =

"synonyms.txt"

;

167  const string

kWord =

"word: "

;

170  bool

syn_line =

false

;

171

list<string> syn_list;

173  while

(!line_reader->

AtEOF

()) {

178

phrase = line.

substr

(kWord.length(),

NPOS

);

191

syn_list.push_back(line);

196  if

(!phrase.empty() && !syn_list.empty()) {

202  m_LastError

=

"Problem with reading file:"

+ filename;

Class for parsed macro representation.

const_iterator end() const

const_iterator find(const key_type &key) const

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void Error(CExceptionArgs_Base &args)

string ReportAll(TDiagPostFlags flags=eDPF_Exception) const

Report all exceptions.

void Info(CExceptionArgs_Base &args)

string m_LastError

String, holding the last error.

bool AppendToLibrary(const string &filename)

Function parses the file with macros and stores the results internally in a map.

const list< string > GetSynonymListForPhrase(const string &phrase) const

Function returns the synonym list of a given phrase.

TMacroLibrary m_MacroLibrary

bool StoreSynonymList(const string &filename)

Function builds a map of words and their corresponding synonyms.

vector< TStrSynList > m_SynonymMaps

const TStrSynList GetSynonymList(const string &filename) const

CMacroRep * GetMacroRep(const string &macro_name) const

Function gets the macro representation to let the gui resolve "ask" and "choice" variables.

vector< string > m_FileList

void x_InitializeMacrosNameMap()

TMacroNameMap m_MacroByName

void GetMacroNames(vector< string > &macro_names) const

Function builds a list of macro names in the library to use for example in the toolbar.

const string & GetErrorMessage() const

Get error message in case previous command was unsuccessful.

bool AppendToLibrary(const string &filename, CMacroLib::TMacroLibrary &lib)

Parses a file containing macros and appends the results to a map.

map< string, list< string > > TStrSynList

CTempString GetCurrentLine(void) const

static CRef< ILineReader > New(const string &filename)

Return a new ILineReader object corresponding to the given filename, taking "-" (but not "....

virtual bool AtEOF(void) const =0

Indicates (negatively) whether there is any more input.

#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.

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

Check if a string ends with a specified suffix value.

static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string (in-place)

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

Check if a string starts with a specified prefix value.

CTempString substr(size_type pos) const

Obtain a substring from this string, beginning at a given offset.

@ eNocase

Case insensitive compare.

Lightweight interface for getting lines of data with minimal memory copying.

Macro engine for macro execution.

Macro library for storing parsed macros.


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