41 const string& file_full_path)
66 s.erase(s.size()-1,1);
68 s.erase(s.size()-1,1);
89 s.erase(s.size()-1,1);
107 if (strline.find(
" update-only") !=
NPOS)
111 if (strline.empty()) {
144 if (!
CDirEntry(file_full_path).IsFile()) {
152 string key(
"#define TAGS");
171 bool include_ok =
false;
180 list<string> splitmask, splitdir;
183 if (splitmask.size() > splitdir.size()) {
184 splitmask.resize(splitdir.size());
187 if (
r.IsMatch(proj_dir)) {
204 "skipped because of this rule in LST file: " << *s);
static EMsvcPlatform GetMsvcPlatform(void)
CProjBulderAppException –.
const string & GetBuildRoot(void) const
list< string > m_listEnabled
string ConvertToMask(const string &name)
CProjectsLstFileFilter(void)
void InitFromFile(const string &file_full_path)
virtual bool CheckProject(const string &project_base_dir, bool *weak=0) const
void InitFromString(const string &subtree)
static string GetAllowedTagsInfo(const string &file_full_path)
list< string > m_listDisabled
static const char * str(char *buf, int n)
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
string GetDir(EIfEmptyPath mode=eIfEmptyPath_Current) const
Get the directory component for this directory entry.
static bool IsAbsolutePath(const string &path)
Check if a "path" is absolute for the current OS.
static string AddTrailingPathSeparator(const string &path)
Add trailing path separator, if needed.
static string CreateRelativePath(const string &path_from, const string &path_to)
Create a relative path between two points in the file system specified by their absolute paths.
static string ConcatPathEx(const string &first, const string &second)
Concatenate two parts of the path for any OS.
static string ConvertToOSPath(const string &path)
Convert "path" on any OS to the current OS-dependent path.
static char GetPathSeparator(void)
Get path separator symbol specific for the current platform.
bool IsMatch(CTempString str, TMatch flags=fMatch_default)
Check existence substring which match a specified pattern.
virtual const string & Get(const string §ion, const string &name, TFlags flags=0) const
Get the parameter value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CNcbiIstream & NcbiGetlineEOL(CNcbiIstream &is, string &str, string::size_type *count=NULL)
Read from "is" to "str" the next line (taking into account platform specifics of End-of-Line)
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive compare of a substring with another string.
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 void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a 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 string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
@ fSplit_MergeDelimiters
Merge adjacent delimiters.
const struct ncbi::grid::netcache::search::fields::KEY key
Defines unified interface to application:
std::istream & in(std::istream &in_, double &x_)
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
CProjBulderApp & GetApp(void)
access to App singleton
#define PTB_INFO_EX(file, err_code, msg)
C++ wrappers for the Perl-compatible regular expression (PCRE) library.