Example #1
0
        /// <summary>
        /// Check the CSDB object against a BREX data module XML file.
        /// </summary>
        /// <param name="path">The path to the BREX file</param>
        /// <returns>
        /// An XML report of the results of the BREX check
        /// </returns>
        public XmlDocument CheckAgainstBREX(string path)
        {
            CsdbObject       brex    = new CsdbObject(path);
            BrexCheckOptions options = new BrexCheckOptions();

            return(CheckAgainstBREX(brex, options));
        }
Example #2
0
        unsafe private XmlDocument CheckAgainstDefaultBREXImpl(BrexCheckOptions options)
        {
            string objectXml = doc.OuterXml;
            string reportXml;
            int    size;

            s1kdCheckDefaultBREX(objectXml, objectXml.Length, options.bits, out reportXml, out size);

            XmlDocument report = new XmlDocument();

            report.LoadXml(reportXml);

            return(report);
        }
Example #3
0
        /// <summary>
        /// Check the CSDB object against a specified BREX data module.
        /// </summary>
        /// <param name="brex">The BREX data module to check against</param>
        /// <returns>
        /// An XML report of the results of the BREX check
        /// </returns>
        public XmlDocument CheckAgainstBREX(CsdbObject brex)
        {
            BrexCheckOptions options = new BrexCheckOptions();

            return(CheckAgainstBREXImpl(brex.XmlDocument, options));
        }
Example #4
0
 /// <summary>
 /// Check the CSDB object against a specified BREX data module.
 /// </summary>
 /// <param name="brex">The BREX data module to check against</para>
 /// <param name="options">BREX check options</param>
 /// <returns>
 /// An XML report of the results of the BREX check
 /// </returns>
 public XmlDocument CheckAgainstBREX(CsdbObject brex, BrexCheckOptions options)
 {
     return(CheckAgainstBREXImpl(brex.XmlDocument, options));
 }
Example #5
0
        /// <summary>
        /// Check the CSDB object against the appropriate S1000D default BREX.
        /// </summary>
        /// <returns>
        /// An XML report of the results of the BREX check
        /// </returns>
        public XmlDocument CheckAgainstDefaultBREX()
        {
            BrexCheckOptions options = new BrexCheckOptions();

            return(CheckAgainstDefaultBREXImpl(options));
        }
Example #6
0
 /// <summary>
 /// Check the CSDB object against the appropriate S1000D default BREX.
 /// </summary>
 /// <param name="options">BREX check options</param>
 /// <returns>
 /// An XML report of the results of the BREX check
 /// </returns>
 public XmlDocument CheckAgainstDefaultBREX(BrexCheckOptions options)
 {
     return(CheckAgainstDefaultBREXImpl(options));
 }