コード例 #1
0
ファイル: SgmlParser.cs プロジェクト: Gremlin2/Fb2Fix
        public Group(Group parent)
        {
            Parent = parent;
            this.GroupType = GroupType.None;
            Occurrence = Occurrence.Required;

            this.members = new ArrayList();
            this.symbols = new Set<string>();
        }
コード例 #2
0
ファイル: SgmlParser.cs プロジェクト: Gremlin2/Fb2Fix
 public void PushGroup()
 {
     Model = new Group(Model);
     CurrentDepth++;
 }
コード例 #3
0
ファイル: SgmlParser.cs プロジェクト: Gremlin2/Fb2Fix
 public ContentModel()
 {
     Model = new Group(null);
 }
コード例 #4
0
ファイル: SgmlParser.cs プロジェクト: Gremlin2/Fb2Fix
 public int PopGroup()
 {
     if (CurrentDepth == 0)
     {
         return -1;
     }
     CurrentDepth--;
     Model.Parent.AddGroup(Model);
     Model = Model.Parent;
     return CurrentDepth;
 }
コード例 #5
0
ファイル: SgmlParser.cs プロジェクト: Gremlin2/Fb2Fix
 public void AddGroup(Group g)
 {
     this.members.Add(g);
 }