示例#1
0
            /* T O  S T R I N G */

            /*----------------------------------------------------------------------------
            *   %%Function: String
            *   %%Qualified: AzLog.AzLogFilter.AzLogFilterValue.String
            *   %%Contact: rlittle
            *
            *   Return the string (either static or fetched from datasource)
            *  ----------------------------------------------------------------------------*/
            public string String(ILogFilterItem ilf)
            {
                object o = m_ds == DataSource.Static ? m_oValue : ilf.OGetValue(m_vt, m_ds, m_lc);

                if (m_vt != ValueType.String)
                {
                    throw new Exception("type mismatch");
                }
                return((string)o);
            }
示例#2
0
            /* D T T M */

            /*----------------------------------------------------------------------------
            *   %%Function: Dttm
            *   %%Qualified: AzLog.AzLogFilter.AzLogFilterValue.Dttm
            *   %%Contact: rlittle
            *
            *   Return the DateTime (either static, or fetched from datasource)
            *  ----------------------------------------------------------------------------*/
            public DateTime Dttm(ILogFilterItem ilf)
            {
                object o = m_ds == DataSource.Static ? m_oValue : ilf.OGetValue(m_vt, m_ds, m_lc);

                if (m_vt != ValueType.DateTime)
                {
                    throw new Exception("type mismatch");
                }

                return((DateTime)o);
            }
示例#3
0
            /* T O  S T R I N G */
            /*----------------------------------------------------------------------------
                %%Function: String
                %%Qualified: AzLog.AzLogFilter.AzLogFilterValue.String
                %%Contact: rlittle

                Return the string (either static or fetched from datasource)
            ----------------------------------------------------------------------------*/
            public string String(ILogFilterItem ilf)
            {
                object o = m_ds == DataSource.Static ? m_oValue : ilf.OGetValue(m_vt, m_ds, m_lc);

                if (m_vt != ValueType.String)
                    throw new Exception("type mismatch");
                return (string) o;
            }
示例#4
0
            /* D T T M */
            /*----------------------------------------------------------------------------
                %%Function: Dttm
                %%Qualified: AzLog.AzLogFilter.AzLogFilterValue.Dttm
                %%Contact: rlittle

                Return the DateTime (either static, or fetched from datasource)
            ----------------------------------------------------------------------------*/
            public DateTime Dttm(ILogFilterItem ilf)
            {
                object o = m_ds == DataSource.Static ? m_oValue : ilf.OGetValue(m_vt, m_ds, m_lc);

                if (m_vt != ValueType.DateTime)
                    throw new Exception("type mismatch");

                return (DateTime) o;
            }