Example #1
0
        public TdlClass AddClass(string identifier)
        {
            if (identifier == "")
            {
                return(null);
            }
            TdlClass tdlClass = new TdlClass(identifier, this);

            _Classes.Add(tdlClass);
            ClassIdentifierLookup.Add(identifier, tdlClass);
            ClassLookup.Add(tdlClass.ObjectId, tdlClass);
            Root.AddClass(tdlClass);
            return(tdlClass);
        }
Example #2
0
 public TdlClass FindClass(uint objectId)
 {
     if (HasClass(objectId))
     {
         return(GetClass(objectId));
     }
     foreach (TdlNamespace tdlNamespace in Namespaces)
     {
         TdlClass possible = tdlNamespace.FindClass(objectId);
         if (possible != null)
         {
             return(possible);
         }
     }
     return(null);
 }
Example #3
0
 public TdlClass FindClass(string identifier)
 {
     if (HasClass(identifier))
     {
         return(GetClass(identifier));
     }
     foreach (TdlNamespace tdlNamespace in Namespaces)
     {
         TdlClass possible = tdlNamespace.FindClass(identifier);
         if (possible != null)
         {
             return(possible);
         }
     }
     return(null);
 }
Example #4
0
 internal void AddClass(TdlClass tdlClass)
 {
     _AllObjects.Add(tdlClass);
     _AllClasses.Add(tdlClass);
 }