Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 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));
        }
Esempio n. 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));
 }
Esempio n. 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));
        }
Esempio n. 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));
 }