// ****************************************************************** // * * // * Constructors * // * * // ****************************************************************** /// <summary> /// Constructor /// </summary> public LogConfigDefaultEntry() { // Set members to default m_id = INVALID_ID; m_localEnabledLevels = LogLevelFlags.Global; m_localTrace = LocalTraceMode.Global; m_listTypes = new List <LogConfigStreamerType>(); }
/// <summary> /// Constructor /// </summary> /// <param name="defaultEntry"> /// A LogConfigDefaultEntry instance whose value members must be copied into /// this instance (deep copy) /// </param> protected LogConfigDefaultEntry(LogConfigDefaultEntry defaultEntry) { // Deep copy members m_id = defaultEntry.m_id; m_localEnabledLevels = defaultEntry.m_localEnabledLevels; m_localTrace = defaultEntry.m_localTrace; // Create deep copy of streamers collection m_listTypes = new List <LogConfigStreamerType>(); foreach (var streamerType in defaultEntry.m_listTypes) { m_listTypes.Add(streamerType.Clone()); } }