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


C++ ConfigSection::Get方法代码示例

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


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

示例1: ApplyConfigSection

	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection
			(config);
		config.Get("inter_nuclear_r", R);
		config.Get("theta_inter_nucl", ThetaR);
	}
开发者ID:AtomAleks,项目名称:einelektron,代码行数:7,代码来源:diatomicpotential.cpp

示例2: ApplyConfigSection

 void ApplyConfigSection(const ConfigSection &config)
 {
     config.Get("radial_rank_1", RadialRank1);
     config.Get("radial_rank_2", RadialRank2);
     config.Get("inner_box_size", InnerBoxSize);
     config.Get("width", Width);
 }
开发者ID:nepstad,项目名称:pyprop-helium,代码行数:7,代码来源:potential.cpp

示例3: ApplyConfigSection

	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank", RadialRank);
		config.Get("angular_rank", AngularRank);
		//charge with sign
		config.Get("charge", Charge);
	}
开发者ID:AtomAleks,项目名称:einelektron,代码行数:7,代码来源:sphericalvelocity.cpp

示例4: ApplyConfigSection

	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("zero_before", ZeroBefore);
		config.Get("zero_after", ZeroAfter);
		config.Get("step_rank", StepRank);

	}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:12,代码来源:potential.cpp

示例5: ApplyConfigSection

	/*
	 * Called once with the corresponding config section
	 * from the configuration file. Do all one time set up routines
	 * here.
	 */
	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("field_strength", FieldStrength);
		config.Get("frequency", Frequency);
		config.Get("duration", Duration);
		config.Get("peak_time", PeakTime);
		config.Get("phase", Phase);
	}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:13,代码来源:potential.cpp

示例6: ApplyConfigSection

	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("charge", Charge);
		config.Get("laser_frequency", LaserFrequency);
		config.Get("laser_intensity", LaserIntensity);
		
		double laserTurnOnCycles = 0;
		config.Get("laser_turn_on_cycles", laserTurnOnCycles);
		LaserTurnOnTime = laserTurnOnCycles * 2 * M_PI / LaserFrequency;
		
	}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:11,代码来源:kulander.cpp

示例7:

void GmresWrapper<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("krylov_basis_size", Solver.BasisSize);

	if (config.HasValue("krylov_tolerance"))
	{
		config.Get("krylov_tolerance", Solver.Tolerance);
	}

	//Perform double orthogonalization step?
	if (config.HasValue("krylov_double_orthogonalization"))
	{
		bool performDoubleOrthogonalization;
		config.Get("krylov_double_orthogonalization", performDoubleOrthogonalization);
		cout << "Using doubleorth = " << performDoubleOrthogonalization << endl;
		Solver.PerformDoubleOrthogonalization = performDoubleOrthogonalization;
	}
}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:18,代码来源:gmreswrapper.cpp

示例8:

void CombinedRepresentation<Rank>::ApplyConfigSection(const ConfigSection &config) 
{
	//Do this manually for each sub-representation

	if (config.HasValue("innerproduct_algorithm"))
	{
		config.Get("innerproduct_algorithm", Algorithm);
	}
}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:9,代码来源:combinedrepresentation.cpp

示例9: LoadSettings

void EditorTool::LoadSettings( ConfigSection& pSection )
{
    // Get our information from the config file.
    mVisible =  (Bool)pSection.Get( "Visible",  true );
    mPosX    = (Int32)pSection.Get( "PosX",     (Int32)10 );
    mPosY    = (Int32)pSection.Get( "PosY",     (Int32)10 );
    mWidth   = (Int32)pSection.Get( "Width",    (Int32)50 );
    mHeight  = (Int32)pSection.Get( "Height",   (Int32)50 );

    // Set the window information.
    mWindow->resize( mWidth, mHeight );

    if( mWindow->parentWidget() )
        mWindow->parentWidget()->move( mPosX, mPosY );

    // Show or hide the window depending of the setting.
    if( mVisible )
        Show();
    else
        Hide();
}
开发者ID:SebastienLussier,项目名称:Gamedesk,代码行数:21,代码来源:EditorTool.cpp

示例10: ApplyConfigSection

	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("mass", Mass);
	}
开发者ID:AtomAleks,项目名称:einelektron,代码行数:5,代码来源:spherical.cpp

示例11: ApplyConfigSection

	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("radial_rank1", RadialRank1);
		config.Get("radial_rank2", RadialRank2);
		config.Get("angular_rank", AngularRank);
	}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:6,代码来源:coupledvelocity.cpp

示例12: ApplyConfigSection

void ThetaRepresentation::ApplyConfigSection(const ConfigSection &config)
{
		int maxl;
		config.Get("maxl", maxl);
		SetupRepresentation(maxl);
}	
开发者ID:AtomAleks,项目名称:PyProp,代码行数:6,代码来源:thetarepresentation.cpp

示例13:

void Propagator<Rank>::ApplyConfigSection(const ConfigSection &config)
{
	config.Get("mass", Mass);
	cout << "TransformedGridPropagator: Mass = " << Mass << endl;
}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:5,代码来源:transformedgridpropagator.cpp

示例14: ApplyConfigSection

	virtual void ApplyConfigSection(const ConfigSection &config)
	{
		CustomPotentialCoupledSphericalBase<Rank>::ApplyConfigSection(config);
		config.Get("scaling", Scaling);
	}
开发者ID:AtomAleks,项目名称:pyprop-helium,代码行数:5,代码来源:coupledlength.cpp

示例15: ApplyConfigSection

	void ApplyConfigSection(const ConfigSection &config)
	{
		config.Get("soft", soft);
		config.Get("charge", charge);
	}
开发者ID:AtomAleks,项目名称:PyProp,代码行数:5,代码来源:hydrogen.cpp


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