本文整理汇总了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);
}
示例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);
}
示例3: ApplyConfigSection
void ApplyConfigSection(const ConfigSection &config)
{
config.Get("radial_rank", RadialRank);
config.Get("angular_rank", AngularRank);
//charge with sign
config.Get("charge", Charge);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
}
示例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);
}
}
示例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();
}
示例10: ApplyConfigSection
virtual void ApplyConfigSection(const ConfigSection &config)
{
CustomPotentialSphericalBase<Rank>::ApplyConfigSection(config);
config.Get("mass", Mass);
}
示例11: ApplyConfigSection
void ApplyConfigSection(const ConfigSection &config)
{
config.Get("radial_rank1", RadialRank1);
config.Get("radial_rank2", RadialRank2);
config.Get("angular_rank", AngularRank);
}
示例12: ApplyConfigSection
void ThetaRepresentation::ApplyConfigSection(const ConfigSection &config)
{
int maxl;
config.Get("maxl", maxl);
SetupRepresentation(maxl);
}
示例13:
void Propagator<Rank>::ApplyConfigSection(const ConfigSection &config)
{
config.Get("mass", Mass);
cout << "TransformedGridPropagator: Mass = " << Mass << endl;
}
示例14: ApplyConfigSection
virtual void ApplyConfigSection(const ConfigSection &config)
{
CustomPotentialCoupledSphericalBase<Rank>::ApplyConfigSection(config);
config.Get("scaling", Scaling);
}
示例15: ApplyConfigSection
void ApplyConfigSection(const ConfigSection &config)
{
config.Get("soft", soft);
config.Get("charge", charge);
}