当前位置: 首页>>代码示例>>C++>>正文


C++ Archive::Read方法代码示例

本文整理汇总了C++中Archive::Read方法的典型用法代码示例。如果您正苦于以下问题:C++ Archive::Read方法的具体用法?C++ Archive::Read怎么用?C++ Archive::Read使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Archive的用法示例。


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

示例1: DeSerialize

void TagsOptionsData::DeSerialize(Archive &arch)
{
	arch.Read(wxT("m_ccFlags"), m_ccFlags);
	arch.Read(wxT("m_prepFile"), m_prepFile);
	arch.Read(wxT("m_fileSpec"), m_fileSpec);
	arch.Read(wxT("m_languages"), m_languages);
}
开发者ID:BackupTheBerlios,项目名称:codelite-svn,代码行数:7,代码来源:tags_options_data.cpp

示例2: Load

	void ShaderManager::Load(Archive& archive, Renderer* renderer)
	{
		RemoveAll();

		UINT count;
		archive.Read(&count);

		for (UINT x = 0; x < count; ++x)
		{
			std::string name;
			archive.Read(&name);

			ULONG size;
			archive.Read(&size);

			ULONG bound;
			archive.Read(&bound);

			char* comp_source = (char*)malloc(bound);
			archive.Read(comp_source, bound);

			char* source = (char*)malloc(size + 1);
			source[size] = 0;

			uncompress(reinterpret_cast<Bytef*>(source), &size, reinterpret_cast<Bytef*>(comp_source), bound);

			Debug::Log(STREAM("Compiling '" << name << "'..."));

			Add(name, std::shared_ptr<Shader>(renderer->CreateShaderFromMemory(source)));

			free(comp_source);
		}
	}
开发者ID:jmclaine,项目名称:Sentinel_GameEngine,代码行数:33,代码来源:ShaderManager.cpp

示例3: DeSerialize

void CopyrightsConfigData::DeSerialize(Archive& arch)
{
	arch.Read(wxT("m_templateFilename"), m_templateFilename);
	arch.Read(wxT("m_fileMasking"), m_fileMasking);
	arch.Read(wxT("m_backupFiles"), m_backupFiles);
	arch.Read(wxT("m_ignoreString"), m_ignoreString);
}
开发者ID:05storm26,项目名称:codelite,代码行数:7,代码来源:copyrightsconfigdata.cpp

示例4: Load

		void Label::Load(Archive& archive)
		{
			Component::Drawable::Load(archive);

			archive.Read(&mText);
			archive.Read(&mColor);
		}
开发者ID:jmclaine,项目名称:Sentinel_GameEngine,代码行数:7,代码来源:Label.cpp

示例5: DeSerialize

void QuickDebugInfo::DeSerialize(Archive& arch)
{
	arch.Read(wxT("m_arguments"), m_arguments);
	arch.Read(wxT("m_exeFilepaths"), m_exeFilepaths);
	arch.Read(wxT("m_selectedDbg"), m_selectedDbg);
	arch.Read(wxT("m_startCmds"), m_startCmds);
	arch.Read(wxT("m_wds"), m_wds);
}
开发者ID:05storm26,项目名称:codelite,代码行数:8,代码来源:quickdebuginfo.cpp

示例6: DeSerialize

void DebuggerCmdData::DeSerialize(Archive &arch)
{
	arch.Read(wxT("m_name"), m_name);
	arch.Read(wxT("m_command"), m_command);
	if( arch.Read(wxT("m_dbgCommand"), m_dbgCommand) == false ) {
		m_dbgCommand = wxT("print");
	}
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:8,代码来源:debuggersettings.cpp

示例7: DeSerialize

// ------------------------------------------------------------
void SpellCheckerOptions::DeSerialize( Archive& arch )
{
    arch.Read( wxT( "m_dictionary" ), m_dictionary );
    arch.Read( wxT( "m_dictionaryPath" ), m_dictionaryPath );
    arch.Read( wxT( "m_scanStr" ), m_scanStr );
    arch.Read( wxT( "m_scanCPP" ), m_scanCPP );
    arch.Read( wxT( "m_scanC" ), m_scanC );
    arch.Read( wxT( "m_scanD1" ), m_scanD1 );
    arch.Read( wxT( "m_scanD2" ), m_scanD2 );
}
开发者ID:HTshandou,项目名称:codelite,代码行数:11,代码来源:spellcheckeroptions.cpp

示例8: DeSerialize

void SimpleRectValue::DeSerialize(Archive& arch)
{
    wxPoint pos;
    wxSize size;

    arch.Read(wxT("TopLeft"), pos);
    arch.Read(wxT("Size"), size);

    m_rect = wxRect(pos, size);
}
开发者ID:eranif,项目名称:codelite,代码行数:10,代码来源:editor_config.cpp

示例9: DeSerialize

void FindReplaceData::DeSerialize(Archive& arch)
{
	arch.Read(wxT("m_findString"),    m_findString);
	arch.Read(wxT("m_replaceString"), m_replaceString);
	arch.Read(wxT("m_flags"),         (long&)m_flags);
	arch.Read(wxT("m_searchPaths"),   m_searchPaths);

	long max_value(10);
	EditorConfigST::Get()->GetLongValue(wxT("MaxItemsInFindReplaceDialog"), max_value);

	TruncateArray(m_findString,    (size_t)max_value);
	TruncateArray(m_replaceString, (size_t)max_value);
	TruncateArray(m_searchPaths,   (size_t)max_value);
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:14,代码来源:findreplacedlg.cpp

示例10: Load

	void MeshPhysicsShape::Load(Archive& archive)
	{
		int count;
		archive.Read(&count);

		Vector3 v;
		for (int x = 0; x < count; ++x)
		{
			archive.Read(&v);
			AddPoint(v);
		}

		archive.Read(&v);
		SetScale(v);
	}
开发者ID:jmclaine,项目名称:Sentinel_GameEngine,代码行数:15,代码来源:PhysicsShape.cpp

示例11: Load

void SpriteDrawable::Load(Archive& archive)
{
    _ASSERT(mOwner);
    _ASSERT(mOwner->GetWorld());
    _ASSERT(mOwner->GetWorld()->mSpriteManager);

    Drawable::Load(archive);

    std::string name;
    archive.Read(&name);

    mSprite = mOwner->GetWorld()->mSpriteManager->Get(name);

    archive.Read(&mFrame);
    archive.Read(&mColor);
}
开发者ID:jmclaine,项目名称:Sentinel_GameEngine,代码行数:16,代码来源:SpriteDrawable.cpp

示例12: DeSerialize

void CppCheckSettings::DeSerialize(Archive& arch)
{
	arch.Read(wxT("option.style"),           m_Style);
	arch.Read(wxT("option.performance"),     m_Performance);
	arch.Read(wxT("option.portability"),     m_Portability);
	arch.Read(wxT("option.unusedFunctions"), m_UnusedFunctions);
	arch.Read(wxT("option.missingIncludes"), m_MissingIncludes);
	arch.Read(wxT("option.information"),     m_Information);
	arch.Read(wxT("option.posixStandards"),  m_PosixStandards);
	arch.Read(wxT("option.c99Standards"),    m_C99Standards);
	arch.Read(wxT("option.cpp11Standards"),  m_Cpp11Standards);
	arch.Read(wxT("option.force"),           m_Force);
	
	arch.Read(wxT("m_excludeFiles"),         m_excludeFiles);
	
	arch.Read(wxT("SuppressedWarningsStrings0"), m_SuppressedWarnings0);	// Unchecked ones
	arch.Read(wxT("SuppressedWarningsStrings1"), m_SuppressedWarnings1);	// Checked ones
}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:18,代码来源:cppcheck_settings.cpp

示例13: DeSerialize

void SessionEntry::DeSerialize(Archive& arch)
{
    arch.Read(wxT("m_selectedTab"), m_selectedTab);
    arch.Read(wxT("m_tabs"), m_tabs);
    arch.Read(wxT("m_workspaceName"), m_workspaceName);
    arch.Read(wxT("TabInfoArray"), m_vTabInfoArr);
    arch.Read(wxT("m_breakpoints"), (SerializedObject*)&m_breakpoints);
    // initialize tab info array from m_tabs if in config file wasn't yet tab info array
    if(m_vTabInfoArr.size() == 0 && m_tabs.GetCount() > 0) {
        for(size_t i = 0; i < m_tabs.GetCount(); i++) {
            TabInfo oTabInfo;
            oTabInfo.SetFileName(m_tabs.Item(i));
            oTabInfo.SetFirstVisibleLine(0);
            oTabInfo.SetCurrentLine(0);
            m_vTabInfoArr.push_back(oTabInfo);
        }
    }
}
开发者ID:stahta01,项目名称:codelite,代码行数:18,代码来源:sessionmanager.cpp

示例14: DeSerialize

void TagsOptionsData::DeSerialize(Archive &arch)
{
	arch.Read     (wxT("m_ccFlags"),           m_ccFlags);
	arch.Read     (wxT("m_ccColourFlags"),     m_ccColourFlags);
	arch.ReadCData(wxT("m_tokens"),            m_tokens);
	arch.ReadCData(wxT("m_types"),             m_types);
	arch.Read     (wxT("m_fileSpec"),          m_fileSpec);
	arch.Read     (wxT("m_languages"),         m_languages);
	arch.Read     (wxT("m_minWordLen"),        m_minWordLen);
	arch.Read     (wxT("m_parserSearchPaths"), m_parserSearchPaths);
	arch.Read     (wxT("m_parserEnabled"),     m_parserEnabled);
	arch.Read     (wxT("m_parserExcludePaths"),m_parserExcludePaths);
	arch.Read     (wxT("m_maxItemToColour"),   m_maxItemToColour);

	// since of build 3749, we *always* set CC_ACCURATE_SCOPE_RESOLVING to true
	m_ccFlags |= CC_ACCURATE_SCOPE_RESOLVING;
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:17,代码来源:tags_options_data.cpp

示例15: DeSerialize

void ContinousBuildConf::DeSerialize(Archive& arch)
{
	arch.Read(wxT("m_enabled"), m_enabled);
	arch.Read(wxT("m_parallelProcesses"), m_parallelProcesses);
}
开发者ID:05storm26,项目名称:codelite,代码行数:5,代码来源:continousbuildconf.cpp


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