Example #1
0
    public MOUSE_NODES(string pfsname)
    {
      _pfsHandle = new PFSSection(pfsname);

      Nodes = new List<Node>();
      _pfsHandle.AddKeyword(new PFSKeyword("SYNTAX_VERSION", PFSParameterType.Integer, 0));

      _pfsHandle.AddKeyword(new PFSKeyword("UNIT_TYPE", PFSParameterType.Integer, 0));

      NodeHeader = new NodeHeader("NodeHeader");
      _pfsHandle.AddKeyword(NodeHeader._keyword);
    }
Example #2
0
    internal MOUSE_NODES(PFSSection Section)
    {
      _pfsHandle = Section;

      Nodes = new List<Node>();
      for (int i = 1; i <= Section.GetKeywordsNo("Node"); i++)
        Nodes.Add(new Node(Section.GetKeyword("Node",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      NodeHeader = new NodeHeader(_pfsHandle.GetKeyword("NodeHeader", 1));
    }