本文整理汇总了C#中PFSSection.GetKeyword方法的典型用法代码示例。如果您正苦于以下问题:C# PFSSection.GetKeyword方法的具体用法?C# PFSSection.GetKeyword怎么用?C# PFSSection.GetKeyword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PFSSection
的用法示例。
在下文中一共展示了PFSSection.GetKeyword方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Branch
internal Branch(PFSSection Keyword)
{
_pfsHandle = Keyword;
_definitions = _pfsHandle.GetKeyword("definitions",1);
_connections = _pfsHandle.GetKeyword("connections",1);
PFSKeyword _points = _pfsHandle.GetKeyword("points", 1);
PointNumbers = new List<int>();
for (int i =1;i<=_points.GetParametersNo();i++)
PointNumbers.Add(_points.GetParameter(i).ToInt());
}
示例2: Rows
internal Rows(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
rHeader = new rHeader(_pfsHandle.GetKeyword("rHeader", 1));
r = new r(_pfsHandle.GetKeyword("r", 1));
}
示例3: Model_C
internal Model_C(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
LineHeader = new LineHeader(_pfsHandle.GetKeyword("LineHeader", 1));
Line = new Line(_pfsHandle.GetKeyword("Line", 1));
}
示例4: branch
internal branch(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
definitions = new definitions(_pfsHandle.GetKeyword("definitions", 1));
connections = new connections(_pfsHandle.GetKeyword("connections", 1));
points = new points1(_pfsHandle.GetKeyword("points", 1));
}
示例5: MOUSE_HD_parameters
internal MOUSE_HD_parameters(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Model_type = new Model_type(_pfsHandle.GetKeyword("Model_type", 1));
TRAP_Setup = new TRAP_Setup(_pfsHandle.GetKeyword("TRAP_Setup", 1));
SaveStep_HrMiSec = new SaveStep_HrMiSec(_pfsHandle.GetKeyword("SaveStep_HrMiSec", 1));
HD_summary = new HD_summary(_pfsHandle.GetKeyword("HD_summary", 1));
}
示例6: STRUCTURE_MODULE
internal STRUCTURE_MODULE(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "CROSSSECTIONS":
CROSSSECTIONS = new CROSSSECTIONS(sub);
break;
case "WEIR":
WEIR = new WEIR(sub);
break;
case "CULVERTS":
CULVERTS = new WEIR(sub);
break;
case "PUMPS":
PUMPS = new WEIR(sub);
break;
case "REGULATING_STR":
REGULATING_STR = new WEIR(sub);
break;
case "CONTROL_STR":
CONTROL_STR = new WEIR(sub);
break;
case "DAMBREAK_STR":
DAMBREAK_STR = new WEIR(sub);
break;
case "BRIDGE":
BRIDGE = new WEIR(sub);
break;
case "USER_DEFINED":
USER_DEFINED = new WEIR(sub);
break;
case "TABULATED":
TABULATED = new WEIR(sub);
break;
case "ENERGYBALANCE":
ENERGYBALANCE = new WEIR(sub);
break;
case "MIKE12_HYDRAU":
MIKE12_HYDRAU = new WEIR(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Structure_Version = new Structure_Version(_pfsHandle.GetKeyword("Structure_Version", 1));
}
示例7: DeepClone
/// <summary>
/// Returns a deep clone of the section. Does not clone any parents;
/// </summary>
/// <param name="SectionToClone"></param>
/// <returns></returns>
public static PFSSection DeepClone(PFSSection SectionToClone)
{
PFSSection ps = new PFSSection(SectionToClone.Name);
int NumberOfKeywords = SectionToClone.GetKeywordsNo();
for (int i = 1; i <= NumberOfKeywords; i++)
ps.AddKeyword(PFSMapper.DeepClone(SectionToClone.GetKeyword(i)));
int NumberOfSections = SectionToClone.GetSectionsNo();
for (int i = 1; i <= NumberOfSections; i++)
ps.AddSection(PFSMapper.DeepClone(SectionToClone.GetSection(i)));
return ps;
}
示例8: Routing_Data
internal Routing_Data(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "Elevation_Parameters":
Elevation_Parameters = new Elevation_Parameters(sub);
break;
case "Discharge_Parameters":
Discharge_Parameters = new Discharge_Parameters(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Location = new Location(_pfsHandle.GetKeyword("Location", 1));
Attributes = new Attributes(_pfsHandle.GetKeyword("Attributes", 1));
}
示例9: SRC_SELECTION_CRITERION
internal SRC_SELECTION_CRITERION(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
SRC_FLOW = new SRC_FLOW(_pfsHandle.GetKeyword("SRC_FLOW", 1));
}
示例10: Links
internal Links(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Event_definition = new Event_definition(_pfsHandle.GetKeyword("Event_definition", 1));
}
示例11: Discharge_Parameters
internal Discharge_Parameters(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Muskingum = new Muskingum(_pfsHandle.GetKeyword("Muskingum", 1));
}
示例12: MOUSE_RUNOFF_parameters
internal MOUSE_RUNOFF_parameters(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Model_type = new Model_type(_pfsHandle.GetKeyword("Model_type", 1));
}
示例13: MIKEZero_Shape_Polygon_Object
internal MIKEZero_Shape_Polygon_Object(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
Text_Color = new Text_Color(_pfsHandle.GetKeyword("Text_Color", 1));
}
示例14: EVALUATION_MATRIX
internal EVALUATION_MATRIX(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
AND_LINE = new AND_LINE(_pfsHandle.GetKeyword("AND_LINE", 1));
}
示例15: Metadata
internal Metadata(PFSSection Section)
{
_pfsHandle = Section;
Fields = new List<Field>();
for (int i = 1; i <= Section.GetKeywordsNo("Field"); i++)
Fields.Add(new Field(Section.GetKeyword("Field",i)));
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}