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

NCBI C++ ToolKit: src/gui/widgets/loaders/winmask_files.cpp Source File

48 #include <wx/filename.h> 60

, m_UseEnvPath(

true

)

134  const string

& env_path =

env

.Get(

"WINDOW_MASKER_PATH"

);

135  if

(!env_path.empty())

136

path = wxString::FromUTF8(env_path.c_str());

142  const string

& wm_path = reg.

Get

(

"WINDOW_MASKER"

,

"WINDOW_MASKER_PATH"

);

143  if

(!wm_path.empty())

144

path = wxString::FromUTF8(wm_path.c_str());

149

wxString internal_path =

wxT

(

"\\\\SNOWMAN\\gbench\\data\\window-masker"

);

150  if

(wxFileName::DirExists(internal_path)){

151

path = internal_path;

156

path.Replace(

wxT

(

"/"

),

wxT

(

"\\"

));

170  bool

succeeded =

false

;

173

wxString dir_path =

GetPath

();

174  if

(dir_path.empty())

182  bool

cont = dir.GetFirst(&dirName, wxEmptyString, wxDIR_DIRS);

185  if

(dirName.ToLong(&tax_id) && tax_id)

186

ids.push_back((

int

)tax_id);

188

cont = dir.GetNext(&dirName);

191

}

NCBI_CATCH

(

"CWinMaskerFileStorage::GetWinMaskerTaxIdsSync()"

);

197 static const

wxChar*

kFtpUrl

=

wxT

(

"ftp://ftp.ncbi.nlm.nih.gov/toolbox/gbench/data/window-masker2/"

);

215  bool

success =

true

;

218  bool

cont = dir.GetFirst(&entry);

220

wxString fullPath = wxFileName(path, entry).GetFullPath();

221  if

(wxFileName::DirExists(fullPath)) {

226  if

(!wxRemoveFile(fullPath))

229

cont = dir.GetNext(&entry);

232  if

(!wxFileName::Rmdir(path))

245  if

(wxFileName::DirExists(path) && !

s_RmDir

(path)) {

246  LOG_POST

(

Error

<<

"Failed to delte direciory for window masker files:"

<< path.ToUTF8());

260  if

(!wxFileName::DirExists(path) && !::wxMkdir(path)) {

261  LOG_POST

(

Error

<<

"Failed to create direciory for window masker files:"

<< path.ToUTF8());

CAppJobNotification Notification send by CAppJobEventTranslator.

Job to download list of files By default it extracts the downloaded tarball archives.

CEvent - generic event implementation TODO TODO - Attachments.

CRegistryWriteView GetWriteView(const string &section)

get a read-write view at a particular level.

static CGuiRegistry & GetInstance()

access the application-wide singleton

CRegistryReadView GetReadView(const string &section) const

get a read-only view at a particular level.

static CNcbiApplication * Instance(void)

Singleton method.

class CRegistryReadView provides a nested hierarchical view at a particular key.

bool GetBool(const string &key, bool default_val=false) const

void Set(const string &key, int val)

access a named key at this level, with no recursion

static wxString ResolvePath(const wxString &path, const wxString &rel_name)

Utility function to hide the platform specifics of locating our standard directories and files.

virtual ~CWinMaskerFileStorage()

bool x_ClearDownloads() const

void SaveSettings() const

void GetTaxIds(vector< int > &ids)

void x_OnJobNotification(CEvent *evt)

static CWinMaskerFileStorage & GetInstance()

access the application-wide singleton

void SetRegistryPath(const string &path)

CAppJobDispatcher::TJobID m_JobId

wxString GetEnvPath() const

wxString GeFtpUrl() const

friend class CWinMaskFilesDlg

void x_DownloadFiles(const vector< string > &files)

void x_DownloadFileList(vector< string > &files)

wxString x_GetDownloadPath() const

const CNcbiRegistry & GetConfig(void) const

Get the application's cached configuration parameters (read-only).

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

#define NCBI_CATCH(message)

Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.

static CAppJobDispatcher & GetInstance()

bool DeleteJob(TJobID job_id)

when a Job is deleted the listener is not notified

TJobID StartJob(IAppJob &job, const string &engine_name, IEngineParams *params=NULL)

Starts a Job on the specified engine in "passive mode" - no notifications or progress reports will be...

#define ON_EVENT(type, id, handler)

#define END_EVENT_MAP()

Ends definition of Command Map.

#define BEGIN_EVENT_MAP(thisClass, baseClass)

Begins definition of Command Map for CEventHandler-derived class.

TJobState GetState() const

static void GetDirContent(vector< string > &content, const string &ftp_url)

void Reset(void)

Reset reference object.

virtual const string & Get(const string &section, 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.

#define DEFINE_STATIC_MUTEX(id)

Define static mutex and initialize it.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

static bool s_RmDir(const wxString &path)

static const wxChar * kFtpUrl

static const char * kUseEnvPath


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