42 const string& config_name)
50 CDir project_dir(dir);
51 if ( !project_dir.
Exists() ) {
70 if ( is.gcount() > 0 &&
str.size() ==
str.capacity()) {
74 str.append(
buf, is.gcount());
86 if ( run_path.empty() ) {
89 GetApp().GetBuildType().GetTypeStr());
94 GetApp().GetBuildType().GetTypeStr());
102 if (
GetApp().GetSite().ResolveDefine(
"SYBASE_PATH", sb_path )) {
123 list<string> std_features;
125 ITERATE(list<string>, s, std_features) {
146 os.write(
str.data(),
str.size());
154 "Configuration file modified");
157 "Configuration file unchanged");
static const set< string > & GetEnabledPackages(const string &config_name)
static const set< string > & GetDisabledPackages(const string &config_name)
void GetStandardFeatures(list< string > &features) const
CProjBulderAppException –.
const CMsvcSite & GetSite(void)
string GetProjectTreeRoot(void) const
bool CreateConfigurableFile(const string &src_path, const string &dst_path, const string &config_name)
string ConfigurableFileSuffix(const string &config_name)
The NCBI C++ standard methods for dealing with std::string.
std::ofstream out("events_result.xml")
main entry point for tests
const CNcbiEnvironment & GetEnvironment(void) const
Get the application's cached environment.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const string & Get(const string &name, bool *found=NULL) const
Get environment value by name.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
bool CreatePath(TCreateFlags flags=fCreate_Default) const
Create the directory path recursively possibly more than one at a time.
virtual bool Exists(void) const
Check if directory "dirname" exists.
static string ConcatPath(const string &first, const string &second)
Concatenate two parts of the path for the current OS.
static void SplitPath(const string &path, string *dir=0, string *base=0, string *ext=0)
Split a path string into its basic components.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
NCBI_NS_STD::string::size_type SIZE_TYPE
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.
bool PromoteIfDifferent(const string &present_path, const string &candidate_path, const string &ignore)
std::istream & in(std::istream &in_, double &x_)
CProjBulderApp & GetApp(void)
access to App singleton
#define PTB_INFO_EX(file, err_code, msg)
#define PTB_WARNING_EX(file, err_code, msg)
static const char * str(char *buf, int n)
static const char *const features[]