From: Gareth S B. <bes...@us...> - 2005-05-11 23:27:14
|
Update of /cvsroot/sblim/cmpi-tests/cmpi-instancetest/schema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18110 Modified Files: TST_InstanceKeys.mof TST_InstanceTest.registration Added Files: TST_InstanceDefaults.mof Log Message: added support for defaults class, fixed dateTime type syntax error --- NEW FILE: TST_InstanceDefaults.mof --- [ Abstract, Version ("2.2.0"), Description ("Test class containing all the simple property types") ] class TST_InstanceDefaults : CIM_ManagedElement { [Key, Description ("Name of the class that created this instance")] string CreationClassName = "TST_InstanceDefaults"; [Key, Description ("Unique identifier for each instance of this class")] string Id = "Instance #?"; /* EXPAND THIS CLASS BY DEFINING MORE PROPERTIES HERE */ [Maxlen(256), Description ("a string property")] string Property_string = "This is a string"; [Description ("a uint8 property")] uint8 Property_uint8 = 42; [Description ("a uint16 property")] uint16 Property_uint16 = 4200; [Description ("a uint32 property")] uint32 Property_uint32 = 420000; [Description ("a uint64 property")] uint64 Property_uint64 = 42000000; [Description ("a sint8 property")] sint8 Property_sint8 = -42; [Description ("a sint16 property")] sint16 Property_sint16 = -4200; [Description ("a sint32 property")] sint32 Property_sint32 = -420000; [Description ("a sint64 property")] sint64 Property_sint64 = -42000000; [Description ("a boolean property")] boolean Property_boolean = 1; [Description ("a real32 property")] real32 Property_real32 = 1.2345; [Description ("a real64 property")] real64 Property_real64 = 1.234567890; [Description ("a dateTime property")] dateTime Property_dateTime = "20050503104354.000000:000"; [Description ("a char16 property")] char16 Property_char16 = "a"; }; Index: TST_InstanceTest.registration =================================================================== RCS file: /cvsroot/sblim/cmpi-tests/cmpi-instancetest/schema/TST_InstanceTest.registration,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- TST_InstanceTest.registration 6 May 2005 19:09:57 -0000 1.1.1.1 +++ TST_InstanceTest.registration 11 May 2005 23:27:06 -0000 1.2 @@ -3,3 +3,5 @@ # <CLASSNAME> <NAMESPACE> <PROVIDERNAME> <LIBRARYNAME> <TYPE> ... # where TYPE(S) = "instance" | "association" | "indication" | "method" TST_InstanceProperties root/cimv2 TST_InstanceTestProvider TST_InstanceTest instance method +TST_InstanceKeys root/cimv2 TST_InstanceTestProvider TST_InstanceTest instance method +TST_InstanceDefaults root/cimv2 TST_InstanceTestProvider TST_InstanceTest instance method Index: TST_InstanceKeys.mof =================================================================== RCS file: /cvsroot/sblim/cmpi-tests/cmpi-instancetest/schema/TST_InstanceKeys.mof,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- TST_InstanceKeys.mof 4 May 2005 01:03:41 -0000 1.1.1.1 +++ TST_InstanceKeys.mof 11 May 2005 23:27:06 -0000 1.2 @@ -42,15 +42,17 @@ [Key, Description ("a boolean key property")] boolean Property_boolean; - [Key, Description ("a real32 key property")] + /* The following property types cannot be used as keys */ + + [Description ("a real32 property")] real32 Property_real32; - [Key, Description ("a real64 key property")] + [Description ("a real64 property")] real64 Property_real64; - [Key, Description ("a dateTime key property")] - datetime Property_dateTime; + [Description ("a dateTime property")] + dateTime Property_dateTime; - [Key, Description ("a char16 key property")] + [Description ("a char16 property")] char16 Property_char16; }; |