/// <summary>
        /// Processes an API model file so that its data can be queried based on CCI2 objects.  Architecture,
        /// Platform, Flavor and Condition strings based on C# defines may be used to include entries that are
        /// restricted to certain builds.
        /// </summary>
        /// <param name="filename">Filename of model file to open</param>
        /// <param name="platform">Platform string if needed to pull in extra entries</param>
        /// <param name="architecture">Architecture string if needed to pull in extra entries</param>
        /// <param name="flavor">Flavor string if needed to pull in extra entries</param>
        /// <param name="defines">C# defines in ';' separated string if needed to pull in extra entries</param>
        public VisibilityFile(string filename, string platform, string architecture, string flavor, string defines)
        {
            IIncludePredicate pred = new IncludePredicate(platform, architecture, flavor, defines);

            _reader = new ModelFileReader(filename, pred);
        }
示例#2
0
 /// <summary>
 /// Processes an API model file so that its data can be queried based on CCI2 objects.  Architecture,
 /// Platform, Flavor and Condition strings based on C# defines may be used to include entries that are
 /// restricted to certain builds.
 /// </summary>
 /// <param name="filename">Filename of model file to open</param>
 /// <param name="platform">Platform string if needed to pull in extra entries</param>
 /// <param name="architecture">Architecture string if needed to pull in extra entries</param>
 /// <param name="flavor">Flavor string if needed to pull in extra entries</param>
 /// <param name="defines">C# defines in ';' separated string if needed to pull in extra entries</param>
 public VisibilityFile(string filename, string platform, string architecture, string flavor, string defines)
 {
     IIncludePredicate pred = new IncludePredicate(platform, architecture, flavor, defines);
     _reader = new ModelFileReader(filename, pred);
 }