Page 217 - DCAP507_SYSTEM_SOFTWARE
P. 217
Unit 14: Canonic Systems
For a defined semantic type T with values or ranges named N1 through Nk, the canonic Notes
syntax for the Ith value or range is the canonic name for T, followed by the character #,
followed by NI, as illustrated in the following example:
System.Devices.LaunchDeviceStageFromExplorer:=System.StructuredQueryType.
Boolean#True
For literal values such as words or phrases, the canonic syntax is the same as the regular
syntax.
Examples: Queries with literal values in canonic syntax are:
System.Author:sanjay
System.Keywords:"Animal"
System.FileCount:>100
Notes There is no canonic syntax for numbers in Windows 7 and later. Because floating
point formats vary among locales, the use of a canonic query that involves a floating point
constant is not supported. Integer constants, in contrast, can be written using only digits
(no separators for thousands) and can be safely used in canonic queries in Windows 7 and
later.
Example: The following table shows some examples of canonic properties and the syntax
for using them.
Types of canonic Examples Syntax
property
String value System.Author The string value is searched for in the author property:
System.Author:Jacobs
Enumeration System.Priority The priority property can have a numerical value range:
range System.Priority:System.Priority#High
Boolean System.IsDeleted Boolean values can be used with any Boolean property:
System.IsDeleted:System.StructuredQueryType.Boolean#True,
andSystem.IsDeleted:System.StructuredQueryType.Boolean#False
Numerical System.Size It is not possible to write safely a canonic query that involves
a floating point constant, because floating point formats vary
among locales. Integers must be written with no separators
for thousands. For example:
System.Size:<12345
Self Assessment
Fill in the blanks:
1. ………………….. is the system against which the software being built will run on.
2. It is not possible to write safely a canonic query that involves a ………………….. constant,
because floating point formats vary among locales.
3. To identify the ………………….. actors involved in the build process, autoconf provides
three macros that take care of finding the so-called "canonic" values.
4. Some other tools, such as ………………….., will require discovery of canonic systems by
themselves.
LOVELY PROFESSIONAL UNIVERSITY 211