예제 #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));
        }
예제 #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);
        }
예제 #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));
        }
예제 #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));
 }
예제 #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));
        }
예제 #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));
 }