version 1.78, 2002/09/11 21:20:24
|
version 1.79, 2002/09/12 17:27:01
|
|
|
{ | { |
out << "<INSTANCENAME CLASSNAME=\"" << instanceName.getClassName() << "\">\n"; | out << "<INSTANCENAME CLASSNAME=\"" << instanceName.getClassName() << "\">\n"; |
| |
Array<KeyBinding> keyBindings = instanceName.getKeyBindings(); |
Array<CIMKeyBinding> keyBindings = instanceName.getKeyBindings(); |
for (Uint32 i = 0, n = keyBindings.size(); i < n; i++) | for (Uint32 i = 0, n = keyBindings.size(); i < n; i++) |
{ | { |
out << "<KEYBINDING NAME=\"" << keyBindings[i].getName() << "\">\n"; | out << "<KEYBINDING NAME=\"" << keyBindings[i].getName() << "\">\n"; |
| |
if (keyBindings[i].getType() == KeyBinding::REFERENCE) |
if (keyBindings[i].getType() == CIMKeyBinding::REFERENCE) |
{ | { |
CIMObjectPath ref = keyBindings[i].getValue(); | CIMObjectPath ref = keyBindings[i].getValue(); |
appendValueReferenceElement(out, ref, true); | appendValueReferenceElement(out, ref, true); |
|
|
// key bindings | // key bindings |
// | // |
| |
KeyBindingArray kbs = reference.getKeyBindings(); |
Array<CIMKeyBinding> kbs = reference.getKeyBindings(); |
| |
if (kbs.size()) | if (kbs.size()) |
{ | { |
|
|
// XmlWriter::keyBindingTypeToString | // XmlWriter::keyBindingTypeToString |
// | // |
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ |
const char* XmlWriter::keyBindingTypeToString (KeyBinding::Type type) |
const char* XmlWriter::keyBindingTypeToString (CIMKeyBinding::Type type) |
{ | { |
switch (type) | switch (type) |
{ | { |
case KeyBinding::BOOLEAN: |
case CIMKeyBinding::BOOLEAN: |
return "boolean"; | return "boolean"; |
| |
case KeyBinding::STRING: |
case CIMKeyBinding::STRING: |
return "string"; | return "string"; |
| |
case KeyBinding::NUMERIC: |
case CIMKeyBinding::NUMERIC: |
return "numeric"; | return "numeric"; |
| |
case KeyBinding::REFERENCE: |
case CIMKeyBinding::REFERENCE: |
default: | default: |
PEGASUS_ASSERT(false); | PEGASUS_ASSERT(false); |
} | } |