• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ LoadData函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: m_mapRect

/***********************
 * Constructor
 **********************/
ObjectManager::ObjectManager( 
  const TiXmlElement *root, 
  const IntRect &mapRect,
  int tileSize,
  lua_State *L 
) : m_mapRect( mapRect ), m_tileSize( tileSize ) {
  Object::SetMapRect( mapRect );
  Object::SetTileSize( tileSize );
  LoadData( root, L );
}
开发者ID:bwright,项目名称:NT-Engine,代码行数:13,代码来源:ObjectManager.cpp


示例2: ClearData

bool LoadTemplate::ProcessLoad()
{
	ClearData();

	if (!LoadData())
		return false;

	AfterLoadData();	// 完成数据加载后整理数据
	return true;
}
开发者ID:singmelody,项目名称:Test,代码行数:10,代码来源:LoadTemplate.cpp


示例3: LoadData

BOOL CPropPageSMS::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) 
{
	// TODO: Add your specialized code here and/or call the base class
	
 	if (PSN_SETACTIVE == ((LPNMHDR)lParam)->code)
	{		// just changed tabs
		LoadData();
	}
//	return TRUE;
 	return CPropertyPage::OnNotify(wParam, lParam, pResult);
}
开发者ID:youxidonxx,项目名称:PCSW,代码行数:11,代码来源:PropPageSMS.cpp


示例4: ASSERT

void
BlockEditDialog::OnReadNext(void)
{
    ASSERT(fpDiskFS != NULL);
    if (fBlock == fpDiskFS->GetDiskImg()->GetNumBlocks() - 1)
        return;

    fBlock++;
    SetSpinner(IDC_DISKEDIT_TRACKSPIN, fBlock);
    LoadData();
}
开发者ID:rostamn739,项目名称:ciderpress,代码行数:11,代码来源:DiskEditDialog.cpp


示例5: LoadData

BOOL ConfigFile::Create(CTSTR lpConfigFile)
{
    strFileName = lpConfigFile;

    if(LoadFile(XFILE_CREATEALWAYS))
        LoadData();
    else
        return 0;

    return 1;
}
开发者ID:373137461,项目名称:OBS,代码行数:11,代码来源:ConfigFile.cpp


示例6: LoadData

BOOL CDialogFramesRecording::OnInitDialog() 
{
	CDialog::OnInitDialog();
	LoadData();

	bCurrentCheckRecordFrames = m_bCheckRecordFrames;
	UpdateEnableControls();
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
开发者ID:AlexeySmolin,项目名称:LIGGGHTS-MCA,代码行数:11,代码来源:DialogFramesRecording.cpp


示例7: assertRetVal

bool ff::LoadData<ff::String>(IDataReader *pReader, StringOut data)
{
	DWORD nBytes = 0;
	assertRetVal(LoadData(pReader, nBytes), false);

	const BYTE* sz = LoadBytes(pReader, (size_t)nBytes);
	assertRetVal(sz, false);
	data.assign((const wchar_t *)sz, (nBytes / sizeof(wchar_t)) - 1);

	return true;
}
开发者ID:FerretFaceGames,项目名称:ffcore,代码行数:11,代码来源:DataPersist.cpp


示例8: disconnect

//******************************************************
void cCutSet::Finished()
{
	disconnect(CLoadThread,SIGNAL(Set(int,QString)),this,SLOT(Set(int,QString)));
	disconnect(CLoadThread,SIGNAL(Finished()),this,SLOT(Finished()));
	
	mFiles.clear();
	pushButtonCut1->setEnabled(true);
	pushButtonBrowse1->setEnabled(true);
	lineEditDirectory->setEnabled(true);
	LoadData();
}
开发者ID:roeland-frans,项目名称:q-rap,代码行数:12,代码来源:cCutSet.cpp


示例9: main

//-----------------------------------------------------------------------------
// MAIN
//-----------------------------------------------------------------------------
int main (int argc, char *argv[])
{
struct rect_list_element *list_head;
int                      ret_code;
	list_head = NULL;
	ret_code = LoadData (list_head);
	if (ret_code != TRUE)
		return -1;
	SortRectangleList (list_head);
	DeleteRectangleList (list_head);
	return 0;
}
开发者ID:biolog,项目名称:timus-1147,代码行数:15,代码来源:main.c


示例10: LoadDataInAllPages

//---------------------------------------------------------------------------
void LoadDataInAllPages(int idstud)
{
 if (dllInstances)
 {
   for (int i=0;i<dllInstances->Count;i++)
   {
    dllInstance=dllInstances->Items[i];
    LoadData = (TLoadData *)GetProcAddress(dllInstance, "_LoadData");
    if (LoadData) LoadData(DefIniFileName,idstud,(TForm*)(Pages->Items[i]));
   }
 }
}
开发者ID:txe,项目名称:ieml,代码行数:13,代码来源:UnitWorkDLL.cpp


示例11: SetGlobalVal

BOOL	CCommonSetDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	
	// TODO:  在此添加额外的初始化
	m_Grid.SetEditable(FALSE);
	SetGlobalVal();
	LoadData();
	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
开发者ID:youxidonxx,项目名称:MTSW,代码行数:12,代码来源:CommonSetDlg.cpp


示例12: GalleryConfig

/** \fn     GalleryView::MenuSettings(MythMenu *)
 *  \brief  Adds a new settings menu entry into the main menu
 *  \param  mainMenu Parent that will hold the menu entry
 *  \return void
 */
void GalleryView::MenuSettings()
{
    GalleryConfig *config = new GalleryConfig(m_mainStack, "galleryconfig");
    connect(config, SIGNAL(configSaved()), this, SLOT(LoadData()));

    if (config->Create())
    {
        m_mainStack->AddScreen(config);
    }
    else
        delete config;
}
开发者ID:JGunning,项目名称:OpenAOL-TV,代码行数:17,代码来源:galleryview.cpp


示例13: wxUnusedVar

void CMakeHelpTab::OnReload(wxCommandEvent& event)
{
    wxUnusedVar(event);

    wxASSERT(m_plugin->GetCMake());
    if(!m_plugin->GetCMake()->IsOk()) {
        wxMessageBox(_("CMake application path is invalid!"), wxMessageBoxCaptionStr, wxOK | wxCENTER | wxICON_ERROR);
        return;
    }

    LoadData(true);
}
开发者ID:292388900,项目名称:codelite,代码行数:12,代码来源:CMakeHelpTab.cpp


示例14: LoadData

BOOL KActiveSettings::Init()
{
	BOOL bResult  = false;
	BOOL bRetCode = false;
	
	bRetCode = LoadData();
    KGLOG_PROCESS_ERROR(bRetCode);

	bResult = true;
Exit0:
	return bResult;
}
开发者ID:zhengguo07q,项目名称:GameWorld,代码行数:12,代码来源:KActiveSettings.cpp


示例15: LoadData

BOOL KPlayerValueInfoList::Init()
{
	BOOL bResult  = false;
	BOOL bRetCode = false;
	
	bRetCode = LoadData();
    KGLOG_PROCESS_ERROR(bRetCode);

	bResult = true;
Exit0:
	return bResult;
}
开发者ID:zhengguo07q,项目名称:GameWorld,代码行数:12,代码来源:KPlayerValueInfoList.cpp


示例16: LoadData

BOOL DiskEditDialog::PreTranslateMessage(MSG* pMsg)
{
    if (pMsg->message == WM_KEYDOWN &&
         pMsg->wParam == VK_RETURN)
    {
        //LOGI("RETURN!");
        LoadData();
        return TRUE;
    }

    return CDialog::PreTranslateMessage(pMsg);
}
开发者ID:rostamn739,项目名称:ciderpress,代码行数:12,代码来源:DiskEditDialog.cpp


示例17: AdjustControlSize

BOOL CSettingGitConfig::OnInitDialog()
{
	ISettingsPropPage::OnInitDialog();

	m_cSafeCrLf.AddString(_T(""));
	m_cSafeCrLf.AddString(_T("false"));
	m_cSafeCrLf.AddString(_T("true"));
	m_cSafeCrLf.AddString(_T("warn"));

	AdjustControlSize(IDC_CHECK_AUTOCRLF);
	AdjustControlSize(IDC_CHECK_QUOTEPATH);
	AdjustControlSize(IDC_CHECK_INHERIT_NAME);
	AdjustControlSize(IDC_CHECK_INHERIT_EMAIL);
	AdjustControlSize(IDC_CHECK_INHERIT_KEYID);
	GITSETTINGS_ADJUSTCONTROLSIZE

	InitGitSettings(this, false, &m_tooltips);

	if (!m_bGlobal || m_bIsBareRepo)
		this->GetDlgItem(IDC_EDITLOCALGITCONFIG)->EnableWindow(TRUE);
	else
		this->GetDlgItem(IDC_EDITLOCALGITCONFIG)->EnableWindow(FALSE);

	if (m_bIsBareRepo)
	{
		this->GetDlgItem(IDC_EDITLOCALGITCONFIG)->SetWindowText(CString(MAKEINTRESOURCE(IDS_PROC_GITCONFIG_EDITLOCALGONCFIG)));
		this->GetDlgItem(IDC_EDITTGITCONFIG)->SetWindowText(CString(MAKEINTRESOURCE(IDS_PROC_GITCONFIG_VIEWTGITCONFIG)));
	}

	if (!CAppUtils::IsAdminLogin())
	{
		((CButton *)this->GetDlgItem(IDC_EDITSYSTEMGITCONFIG))->SetShield(TRUE);
		this->GetDlgItem(IDC_VIEWSYSTEMGITCONFIG)->ShowWindow(SW_SHOW);
	}

	if (PathIsDirectory(g_Git.GetGitGlobalXDGConfigPath()))
		this->GetDlgItem(IDC_EDITGLOBALXDGGITCONFIG)->ShowWindow(SW_SHOW);

	this->UpdateData(FALSE);

	if (m_UserName.IsEmpty() && m_UserEmail.IsEmpty())
	{
		// preselect "global" and remove check in "inherit" checkboxes if no username and email are set on first open
		m_iConfigSource = CFG_SRC_GLOBAL;
		CheckRadioButton(IDC_RADIO_SETTINGS_EFFECTIVE, IDC_RADIO_SETTINGS_SYSTEM, IDC_RADIO_SETTINGS_EFFECTIVE + m_iConfigSource);
		m_cSaveTo.SelectString(0, CString(MAKEINTRESOURCE(IDS_CONFIG_GLOBAL)));
		LoadData();
		m_bInheritUserName = FALSE;
		m_bInheritEmail = FALSE;
		EnDisableControls();
	}
	return TRUE;
}
开发者ID:tribis,项目名称:TortoiseGit,代码行数:53,代码来源:SettingGitConfig.cpp


示例18: while

void MultiversoSkipGramMixture::TrainNeuralNetwork()
{
    std::queue<DataBlock*>datablock_queue;
    int data_block_count = 0;

    multiverso::Multiverso::BeginTrain();

    for (int curr_epoch = 0; curr_epoch < m_option->epoch; ++curr_epoch)
    {
        m_reader->Open(m_option->train_file);
        while (1)
        {
            ++data_block_count;
            DataBlock *data_block = new (std::nothrow)DataBlock();
            assert(data_block != nullptr);
            clock_t start = clock();
            LoadData(data_block, m_reader, m_option->data_block_size);
            if (data_block->Size() <= 0)
            {
                delete data_block;
                break;
            }
            multiverso::Log::Info("Rank%d Load%d^thDataBlockTime:%lfs\n", m_process_id, data_block_count,
                                  (clock() - start) / (double)CLOCKS_PER_SEC);
            multiverso::Multiverso::BeginClock();
            PushDataBlock(datablock_queue, data_block);
            multiverso::Multiverso::EndClock();
        }

        m_reader->Close();

        multiverso::Multiverso::BeginClock();

        DataBlock *output_data_block = new DataBlock(); //Add a special data_block for dumping model files
        output_data_block->AddTable(kInputEmbeddingTableId);
        output_data_block->AddTable(kEmbeddingOutputTableId);
        output_data_block->AddTable(kWordSensePriorTableId);
        output_data_block->SetEpochId(curr_epoch);

        ++data_block_count;
        multiverso::Multiverso::PushDataBlock(output_data_block);
        multiverso::Multiverso::EndClock();
    }

    multiverso::Log::Info("Rank %d pushed %d blocks\n", multiverso::Multiverso::ProcessRank(), data_block_count);

    multiverso::Multiverso::EndTrain();

    //After EndTrain, all the datablock are done,
    //we remove all the datablocks
    RemoveDoneDataBlock(datablock_queue);
}
开发者ID:technologiclee,项目名称:distributed_skipgram_mixture,代码行数:52,代码来源:multiverso_skipgram_mixture.cpp


示例19: locker

bool RSSEditor::Create(void)
{
    QMutexLocker locker(&m_lock);

    // Load the theme for this screen
    bool foundtheme = LoadWindowFromXML("netvision-ui.xml", "rsseditor", this);

    if (!foundtheme)
        return false;

    bool err = false;
    UIUtilE::Assign(this, m_sites, "sites", &err);
    UIUtilE::Assign(this, m_new, "new", &err);
    UIUtilE::Assign(this, m_delete, "delete", &err);
    UIUtilE::Assign(this, m_edit, "edit", &err);

    UIUtilW::Assign(this, m_image, "preview");
    UIUtilW::Assign(this, m_title, "title");
    UIUtilW::Assign(this, m_desc, "description");
    UIUtilW::Assign(this, m_url, "url");
    UIUtilW::Assign(this, m_author, "author");

    if (err)
    {
        LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'rsseditor'");
        return false;
    }

    connect(m_sites, SIGNAL(itemClicked(MythUIButtonListItem*)),
            this, SLOT(SlotEditSite(void)));

    connect(m_delete, SIGNAL(Clicked(void)),
            SLOT(SlotDeleteSite(void)));
    connect(m_edit, SIGNAL(Clicked(void)),
            SLOT(SlotEditSite(void)));
    connect(m_new, SIGNAL(Clicked(void)),
            SLOT(SlotNewSite(void)));

    connect(m_sites, SIGNAL(itemSelected(MythUIButtonListItem *)),
            SLOT(SlotItemChanged(void)));

    BuildFocusList();

    LoadData();

    if (m_sites->GetCount() == 0)
        SetFocusWidget(m_new);
    else
        SlotItemChanged();

    return true;
}
开发者ID:DaveDaCoda,项目名称:mythtv,代码行数:52,代码来源:rsseditor.cpp


示例20: new

		void TextureManager::ReloadAssets()
		{
			const ResourcePool<Texture>::Iterator end = resPool->End();
			for(ResourcePool<Texture>::Iterator iter = resPool->Begin(); iter != end; ++iter) {
				Texture *tex = iter.Ptr();
				Rid rid = tex->rid;
				if(rid != RID_NONE) {
					tex->~Texture();
					new(tex) Texture();
					LoadData(tex, rid);
				}
			}
		}
开发者ID:ericroy,项目名称:maki-engine,代码行数:13,代码来源:MakiTextureManager.cpp



注:本文中的LoadData函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ LoadDatabase函数代码示例发布时间:2022-05-30
下一篇:
C++ LoadDBC_assert_print函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap