您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetAppName函数代码示例

51自学网 2021-06-01 21:03:46
  C++
这篇教程C++ GetAppName函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetAppName函数的典型用法代码示例。如果您正苦于以下问题:C++ GetAppName函数的具体用法?C++ GetAppName怎么用?C++ GetAppName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetAppName函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wxSetEnv

bool Springsettings::OnInit(){	wxSetEnv( _T("UBUNTU_MENUPROXY"), _T("0") );    //this triggers the Cli Parser amongst other stuff    if (!wxApp::OnInit())        return false;	SetAppName(_T("SpringSettings"));	const wxString configdir = TowxString(SlPaths::GetConfigfileDir());	if ( !wxDirExists(configdir) )		wxMkdir(configdir);	if (!m_crash_handle_disable) {	#if wxUSE_ON_FATAL_EXCEPTION		wxHandleFatalExceptions( true );	#endif	#if defined(__WXMSW__) && defined(ENABLE_DEBUG_REPORT)		//this undocumented function acts as a workaround for the dysfunctional		// wxUSE_ON_FATAL_EXCEPTION on msw when mingw is used (or any other non SEH-capable compiler )		SetUnhandledExceptionFilter(filter);	#endif	}    //initialize all loggers	//TODO non-constant parameters	wxLogChain* logchain  = 0;	wxLogWindow* loggerwin = InitializeLoggingTargets( 0, m_log_console, m_log_file_path, m_log_window_show, m_log_verbosity, logchain );	//this needs to called _before_ mainwindow instance is created#ifdef __WXMSW__	wxString path = wxPathOnly( wxStandardPaths::Get().GetExecutablePath() ) + wxFileName::GetPathSeparator() + _T("locale");#else	#if defined(LOCALE_INSTALL_DIR)		wxString path ( _T(LOCALE_INSTALL_DIR) );	#else		// use a dummy name here, we're only interested in the base path		wxString path = wxStandardPaths::Get().GetLocalizedResourcesDir(_T("noneWH"),wxStandardPaths::ResourceCat_Messages);		path = path.Left( path.First(_T("noneWH") ) );	#endif#endif	m_translationhelper = new wxTranslationHelper( GetAppName().Lower(), path );    SetSettingsStandAlone( true );	// configure unitsync paths before trying to load	SlPaths::ReconfigureUnitsync();	//unitsync first load, NEEDS to be blocking	LSL::usync().ReloadUnitSyncLib();	settings_frame* frame = new settings_frame(NULL,GetAppName());    SetTopWindow(frame);    frame->Show();    if ( loggerwin ) { // we got a logwindow, lets set proper parent win        loggerwin->GetFrame()->SetParent( frame );    }    return true;}
开发者ID:renemilk,项目名称:springlobby,代码行数:60,


示例2: GetTmpFile

void GmUifApp::RemoveById (ubyte4 LogId){	wxString tmpfile = GetTmpFile (GetAppName ());	try {		GmUnitedIndexFile uif (tmpfile, 0);		const vector<GmUifRootEntry*> & roots = m_app.GetAllRootEntries ();		GmSetDeleteFlagHandler handler (LogId);		for (size_t index = 0; index < roots.size (); ++index) {			GmUifRootPairT tree;			GmAutoClearRootPairTree act (tree);			m_app.GetUifRootTree (*roots[index], tree);			for (size_t tindex = 0; tindex < tree.second->size (); ++tindex) {				GmUifSourcePairT * pNode = (*tree.second)[tindex];				TraverseTree (pNode->second, &handler, pNode->first->SourceName, GmUifAppHanldeFileType ());			}			ClearEmptyRootTreePair (tree);			const GmUifRootEntry & entry = *tree.first;			AddTheseTreeToUifFile (*tree.second, uif, (GmRootEntryType)entry.EntryType									, entry.EntryDataType, entry.TraverseMtd, entry.EntryTime);		}		uif.Close ();		m_app.Close ();		if (wxRemoveFile (GetAppName ()))			wxRenameFile (tmpfile, GetAppName ());	}	catch (...) {		wxRemoveFile (tmpfile);		throw;	}}
开发者ID:tanganam,项目名称:gimu,代码行数:32,


示例3: wxConfigBase

// constructor supports creation of wxFileConfig objects of any typewxFileConfig::wxFileConfig(const wxString& appName, const wxString& vendorName,                           const wxString& strLocal, const wxString& strGlobal,                           long style)            : wxConfigBase(::GetAppName(appName), vendorName,                           strLocal, strGlobal,                           style),              m_strLocalFile(strLocal), m_strGlobalFile(strGlobal){  // Make up names for files if empty  if ( m_strLocalFile.IsEmpty() && (style & wxCONFIG_USE_LOCAL_FILE) )  {    m_strLocalFile = GetLocalFileName(GetAppName());  }  if ( m_strGlobalFile.IsEmpty() && (style & wxCONFIG_USE_GLOBAL_FILE) )  {    m_strGlobalFile = GetGlobalFileName(GetAppName());  }  // Check if styles are not supplied, but filenames are, in which case  // add the correct styles.  if ( !m_strLocalFile.IsEmpty() )    SetStyle(GetStyle() | wxCONFIG_USE_LOCAL_FILE);  if ( !m_strGlobalFile.IsEmpty() )    SetStyle(GetStyle() | wxCONFIG_USE_GLOBAL_FILE);  // if the path is not absolute, prepend the standard directory to it  // UNLESS wxCONFIG_USE_RELATIVE_PATH style is set  if ( !(style & wxCONFIG_USE_RELATIVE_PATH) )  {      if ( !m_strLocalFile.IsEmpty() && !wxIsAbsolutePath(m_strLocalFile) )      {          wxString strLocal = m_strLocalFile;          m_strLocalFile = GetLocalDir();          m_strLocalFile << strLocal;      }      if ( !m_strGlobalFile.IsEmpty() && !wxIsAbsolutePath(m_strGlobalFile) )      {          wxString strGlobal = m_strGlobalFile;          m_strGlobalFile = GetGlobalDir();          m_strGlobalFile << strGlobal;      }  }  SetUmask(-1);  Init();}
开发者ID:TimofonicJunkRoom,项目名称:plucker,代码行数:51,


示例4: GetAppName

void GSTitle::Draw2d(){  GSGui::Draw2d();#ifdef SHOW_ENV_INFO  // Draw env info, etc.  static GuiText t;  t.SetSize(Vec2f(1.0f, 0.1f));  t.SetJust(GuiText::AMJU_JUST_LEFT);  t.SetDrawBg(true);  t.SetLocalPos(Vec2f(-1.0f, 0.8f));  std::string s = "SaveDir: " + GetAppName();  t.SetText(s);  t.Draw();  t.SetLocalPos(Vec2f(-1.0f, 0.7f));  s = "Server: " + GetServer();  t.SetText(s);  t.Draw();  t.SetLocalPos(Vec2f(-1.0f, 0.6f));  s = "Env: " + GetEnv();  t.SetText(s);  t.Draw();#endif}
开发者ID:jason-amju,项目名称:amjulib,代码行数:28,


示例5: setlocale

bool WallFollowing::OnStartUp(){	setlocale(LC_ALL, "C");	list<string> sParams;	m_MissionReader.EnableVerbatimQuoting(false);	if(m_MissionReader.GetConfiguration(GetAppName(), sParams))	{		list<string>::iterator p;		for(p = sParams.begin() ; p != sParams.end() ; p++)		{			string original_line = *p;			string param = stripBlankEnds(toupper(biteString(*p, '=')));			string value = stripBlankEnds(*p);			if(param == "FOO")			{				//handled			}						else if(param == "BAR")			{				//handled			}		}	}	m_timewarp = GetMOOSTimeWarp();	RegisterVariables();		return(true);}
开发者ID:dvinc,项目名称:moos-ivp-ENSTABretagne,代码行数:31,


示例6: wxRegConfig

wxConfigBase* Pcsx2App::OpenInstallSettingsFile(){	// Implementation Notes:	//	// As of 0.9.8 and beyond, PCSX2's versioning should be strong enough to base ini and	// plugin compatibility on version information alone.  This in turn allows us to ditch	// the old system (CWD-based ini file mess) in favor of a system that simply stores	// most core application-level settings in the registry.	ScopedPtr<wxConfigBase> conf_install;#ifdef __WXMSW__	conf_install = new wxRegConfig();#else	// FIXME!!  Linux / Mac	// Where the heck should this information be stored?	wxDirName usrlocaldir( PathDefs::GetUserLocalDataDir() );	//wxDirName usrlocaldir( wxStandardPaths::Get().GetDataDir() );	if( !usrlocaldir.Exists() )	{		Console.WriteLn( L"Creating UserLocalData folder: " + usrlocaldir.ToString() );		usrlocaldir.Mkdir();	}	wxFileName usermodefile( GetAppName() + L"-reg.ini" );	usermodefile.SetPath( usrlocaldir.ToString() );	conf_install = OpenFileConfig( usermodefile.GetFullPath() );#endif	return conf_install.DetachPtr();}
开发者ID:adi6190,项目名称:pcsx2,代码行数:32,


示例7: OnStartUp

bool SimGPS::OnStartUp(){  list<string> sParams;  m_MissionReader.EnableVerbatimQuoting(false);  if(m_MissionReader.GetConfiguration(GetAppName(), sParams)) {    list<string>::iterator p;    for(p=sParams.begin(); p!=sParams.end(); p++) {      string original_line = *p;      string param = stripBlankEnds(toupper(biteString(*p, '=')));      string value = stripBlankEnds(*p);            if(param == "GPS_COVARIANCE") {        GPS_covariance = read_matrix(value);      }      if(param == "MAX_DEPTH"){	max_depth = atof(value.c_str());      }      if(param == "ADD_NOISE"){	add_noise = (tolower(value) == "true");      }      if(param == "BACKGROUND_MODE"){	if (tolower(value) == "true")	  in_prefix = "NAV";	else	  in_prefix = "SIM";      }    }  }    distribution = normal_distribution<double>(0.0,sqrt(GPS_covariance(0,0)));  RegisterVariables();	  return(true);}
开发者ID:liampaull,项目名称:AUVCSLAM,代码行数:34,


示例8: GetAppName

void TestApp::OnInitialize(u32 width, u32 height){	mWindow.Initialize(GetInstance(), GetAppName(), width, height);	HookWindow(mWindow.GetWindowHandle());	mTimer.Initialize();	mGraphicsSystem.Initialize(mWindow.GetWindowHandle(), false);	SimpleDraw::Initialize(mGraphicsSystem);		const u32 windowWidth = mGraphicsSystem.GetWidth();	const u32 windowHeight = mGraphicsSystem.GetHeight();	mCamera.Setup(Math::kPiByTwo, (f32)windowWidth / (f32)windowHeight, 0.01f, 1000.0f);	mCamera.SetPosition(Math::Vector3(0.0f, 2.0f, 1.0f));	mCamera.SetLookAt(Math::Vector3(0.0f, 1.0f, 0.0f));	mRenderer.Initialize(mGraphicsSystem);	mModel.Load(mGraphicsSystem, "../Data/Models/soldier1.txt");		mAnimationController.Initialize(mModel);	//AnimationClip clip;	//mAnimationController.StartClip(clip, true);	mAnimationController.StartClip(*mModel.mAnimations[0], true);}
开发者ID:bretthuff22,项目名称:Animation,代码行数:26,


示例9: destfn

void MusikApp::OnFatalException (){    wxDebugReportCompress report;    // add all standard files: currently this means just a minidump and an    // XML file with system info and stack trace    report.AddAll(wxDebugReport::Context_Exception);     // create a copy of our preferences file to include it in the report    wxFileName destfn(report.GetDirectory(), _T("musik.ini"));    wxCopyFile(wxFileConfig::GetLocalFileName(CONFIG_NAME),destfn.GetFullPath());    report.AddFile(destfn.GetFullName(), _T("Current Preferences Settings"));    // calling Show() is not mandatory, but is more polite    if ( wxDebugReportPreviewStd().Show(report) )    {        if ( report.Process() )        {#ifdef USE_WXEMAIL            wxMailMessage mail(GetAppName() +  _T(" Crash-Report"),_T("[email
C++ GetAppPath函数代码示例
C++ GetAppClass函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。