IfcDoc.FormatTTL_Stream.WriteEntity C# (CSharp) Méthode

WriteEntity() private méthode

private WriteEntity ( SEntity o, long ID ) : void
o IfcDoc.Schema.SEntity
ID long
Résultat void
        private void WriteEntity(SEntity o, long ID)
        {
            string newline = "\r\n";
            if (this.m_markup)
                newline = "<br/>";

            Type t = o.GetType();
            string hyperlink = "../../schema/" + t.Namespace.ToLower() + "/lexical/" + t.Name.ToLower() + "_" + ID + ".htm";
            this.WriteStartElement(t.Name+"_"+ID, hyperlink);

            this.m_writer.Write(newline);
            m_indent++;
            Console.Out.WriteLine("\r\n--- Writing entity : " + t.Name.ToString());
            Console.Out.WriteLine("-----------------------------------");
            this.WriteType("ifcowl:" + t.Name.ToString());
            this.WriteEntityAttributes(o);
            Console.Out.WriteLine("--------------done---------------------");
        }