public override IConfig Clone() { CConfig config = new CVideoSourceType(Name); config.SystemContext = SystemContext; this.CopyTo(config); return(config); }
public static IVideoSourceType BuildVideoSourceType(IMonitorSystemContext context, string xml) { CVideoSourceType config = new CVideoSourceType(); config.SystemContext = context; if (config.BuildConfig(xml)) { return(config); } else { return(null); } }
public CDefaultMetaManager() { CVideoSourceType vsType = new CVideoSourceType(); vsType.Name = "FileVideoSource"; vsType.Desc = "文件视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = ""; vsType.FactoryClass = "VideoSource.FileVideoSourceManager"; vsType.FileName = "."; vsType.Enabled = true; this.AppendType(vsType); CMonitorType monitorType = new CMonitorType(); monitorType.Name = "AlarmArea"; monitorType.Desc = "警戒区域"; monitorType.ConfigClass = "Config.CBlobTrackerConfig"; monitorType.ConfigFormClass = ""; monitorType.MonitorClass = "Monitor.CBlobTracker"; monitorType.SetValue("KernelClass", "CAlarmAreaUser"); monitorType.FileName = "."; monitorType.Enabled = true; this.AppendType(monitorType); monitorType = new CMonitorType(); monitorType.Name = "AreaCount"; monitorType.Desc = "区域计数"; monitorType.ConfigClass = "Config.CBlobTrackerConfig"; monitorType.ConfigFormClass = ""; monitorType.MonitorClass = "Monitor.CBlobTracker"; monitorType.SetValue("KernelClass", "CAreaCountUser"); monitorType.FileName = "."; monitorType.Enabled = true; this.AppendType(monitorType); monitorType = new CMonitorType(); monitorType.Name = "LeaveRemove"; monitorType.Desc = "遗留及移动"; monitorType.ConfigClass = "Config.CBlobTrackerConfig"; monitorType.ConfigFormClass = ""; monitorType.MonitorClass = "Monitor.CBlobTracker"; monitorType.SetValue("KernelClass", "CLeaveRemoveUser"); monitorType.FileName = "."; monitorType.Enabled = true; this.AppendType(monitorType); CSchedulerType schedulerType = new CSchedulerType(); schedulerType.Name = "DefaultSchedulerType"; schedulerType.Desc = "默认时间调度"; schedulerType.ConfigClass = "Config.CSchedulerConfig"; schedulerType.ConfigFormClass = ""; schedulerType.SchedulerClass = "Scheduler.CScheduler"; schedulerType.FileName = "."; schedulerType.Enabled = true; this.AppendType(schedulerType); CTaskType taskType = new CTaskType(); taskType.Name = "DefaultTaskType"; taskType.Desc = "默认任务"; taskType.ConfigClass = "Config.CTaskConfig"; taskType.ConfigFormClass = ""; taskType.TaskClass = "Task.CTask"; taskType.FileName = "."; taskType.Enabled = true; this.AppendType(taskType); }
public CHKMetaManager() { CVideoSourceType vsType = new CVideoSourceType(); vsType.Name = "HKFileVideoSource"; vsType.Desc = "海康文件视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = "Config.FormHKFileVSConfig"; vsType.FactoryClass = "VideoSource.HKFilePlayManager"; vsType.FileName = "hkdvrlib.dll"; vsType.Enabled = true; this.AppendType(vsType); vsType = new CVideoSourceType(); vsType.Name = "HKCardVideoSource"; vsType.Desc = "海康采集卡视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = ""; vsType.FactoryClass = "VideoSource.HKCardPlayManager"; vsType.FileName = "hkdvrlib.dll"; vsType.Enabled = true; this.AppendType(vsType); vsType = new CVideoSourceType(); vsType.Name = "HKDVRBackPlayVideoSource"; vsType.Desc = "海康硬盘录像机录像视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = "Config.FormHKBackVSConfig"; vsType.FactoryClass = "VideoSource.CHKDVRBackPlayerFactory"; vsType.FileName = "hkdvrlib.dll"; vsType.Enabled = true; this.AppendType(vsType); vsType = new CVideoSourceType(); vsType.Name = "HKDVRRealPlayVideoSource"; vsType.Desc = "海康硬盘录像机实时视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = "Config.FormHKRealVSConfig"; vsType.FactoryClass = "VideoSource.CHKDVRRealPlayerFactory"; vsType.SetValue("BackPlayType", "HKDVRBackPlayVideoSource"); vsType.FileName = "hkdvrlib.dll"; vsType.Enabled = true; this.AppendType(vsType); vsType = new CVideoSourceType(); vsType.Name = "HKStreamMediaVideoSource"; vsType.Desc = "海康流媒体视频源"; vsType.ConfigClass = ""; vsType.ConfigFormClass = "Config.FormHKRealVSConfig"; vsType.FactoryClass = "VideoSource.StreamMediaVideoSourceFactory"; vsType.SetValue("BackPlayType", "HKDVRBackPlayVideoSource"); vsType.FileName = "hkdvrlib.dll"; vsType.Enabled = true; this.AppendType(vsType); CActionType atype = new CActionType(); atype.Name = "_HKAlarmOutActionType_"; atype.Desc = "海康报警输出联动类型"; atype.ConfigClass = "Config.CHKAlarmOutActionConfig"; atype.ActionClass = "Action.CHKAlarmOutAction"; atype.FileName = "hkdvrlib.dll"; atype.Enabled = true; this.AppendType(atype); atype = new CActionType(); atype.Name = "_HKPTZActionType_"; atype.Desc = "海康PTZ联动类型"; atype.ConfigClass = "Config.CHKPTZActionConfig"; atype.ActionClass = "Action.CHKPTZAction"; atype.FileName = "hkdvrlib.dll"; atype.Enabled = true; this.AppendType(atype); }