Esempio n. 1
0
        private INIBlock(string[] lines, string pt, int l)
        {
            exists = true;

            line = l;
            id   = counter++;

            type = header.Match(lines[0]).Groups["name"].Value;

            path = pt;

            parameters  = new List <INIParameter>();
            xparameters = new HashSet <XMLParameter>();
            blocks      = new List <INIBlock>();

            valid      = true;
            references = new HashSet <INIBlock>();
            referenced = new HashSet <INIBlock>();

            errors = new List <ValidationError>();

            for (int a = 1; a < lines.Length; a++)
            {
                INIParameter p = INIParameter.Create(lines[a], this);
                if (p != null)
                {
                    parameters.Add(p);
                }
            }
        }
Esempio n. 2
0
        public INIValue(string v, int offset, INIParameter parent)
        {
            Value = v;

            Hash = CRC.GetInstance().ComputeHash(v);
            Crc  = CRC.GetInstance().ComputeCRC(v);

            Offset = offset;

            valid = true;

            Parent = parent;

            Errors = new List <ValidationError>();
        }
Esempio n. 3
0
 public int CompareTo(INIParameter other)
 {
     return(this.Name.CompareTo(other.Name));
 }