Пример #1
0
 void Paragraph_ElementComplete(SymbianParserLib.BaseStructures.ParserElementBase aElement)
 {
     if (ParagraphComplete != null)
     {
         ParagraphComplete(aElement);
     }
 }
Пример #2
0
        protected ParserElementBase(string aName, ParserElementBase aParent, object aTag)
        {
            iName   = aName;
            iParent = aParent;
            iTag    = aTag;

            // Default behaviour is to disable the item when it is complete
            DisableWhenComplete = true;
        }
Пример #3
0
        public string GetCurrentLine()
        {
            string line = string.Empty;
            //
            ParserElementBase element = this;

            while (line == string.Empty && element != null)
            {
                line    = element.CurrentLine;
                element = element.Parent;
            }
            //
            return(line);
        }
        private static ValueStore GetValueStore(ParserElementBase aElement)
        {
            ValueStore ret = null;

            //
            if (aElement is ParserElementBaseWithValueStore)
            {
                ParserElementBaseWithValueStore element = (ParserElementBaseWithValueStore)aElement;
                if (element.iValueStore != null)
                {
                    ret = element.iValueStore;
                }
                else if (element.Parent != null)
                {
                    ret = GetValueStore(element.Parent);
                }
            }
            //
            return(ret);
        }
Пример #5
0
 protected ParserElementBase(ParserElementBase aParent)
     : this(string.Empty, aParent, null)
 {
 }