Example #1
0
 public LogData(double time, UInt32 logId, UInt32 laneId, LogDataType logType, string text, LogDetail detail)
 {
     this.time    = time;
     this.logId   = logId;
     this.laneId  = laneId;
     this.logType = logType;
     if (this.text != null)
     {
         // コピーコンストラクタでコピーを作成
         // ※ログをファイルに出力するまでにコピー元が存在しているとは限らないため
         this.text = String.Copy(text);
     }
     if (detail != null)
     {
         this.detail = detail.CreateCopy();
     }
 }
Example #2
0
        public bool AddLogData(UInt32 logId, LogDataType logType, UInt32 laneId, string title, LogDetail logDetail)
        {
            // ログを追加
            LogData data = new LogData(GetTime(), logId, laneId, logType, title, logDetail);

            AddLog(data);

            return(true);
        }