version 1.10, 2002/03/04 15:10:05
|
version 1.12, 2002/05/15 22:41:36
|
|
|
| |
return tmp; | return tmp; |
} | } |
/* Generate the output string for Mof by first testing for |
|
any and if not any, getting scopeToString and lowercasing |
|
the whole thing. |
|
Did this becasue XML does not accept the any definition. |
|
*/ |
|
String ScopeToMofString(Uint32 scope) |
|
{ |
|
String tmp = (scope & CIMScope::ANY) ? "any" : ScopeToString(scope); |
|
|
|
tmp.toLower(); |
|
return tmp; |
|
} |
|
void ScopeToXml(Array<Sint8>& out, Uint32 scope) |
|
{ |
|
if (scope) |
|
{ |
|
out << "<SCOPE"; |
|
|
|
if (scope & CIMScope::CLASS) |
|
out << " CLASS=\"true\""; |
|
|
|
if (scope & CIMScope::ASSOCIATION) |
|
out << " ASSOCIATION=\"true\""; |
|
|
|
if (scope & CIMScope::REFERENCE) |
|
out << " REFERENCE=\"true\""; |
|
|
|
if (scope & CIMScope::PROPERTY) |
|
out << " PROPERTY=\"true\""; |
|
|
|
if (scope & CIMScope::METHOD) |
|
out << " METHOD=\"true\""; |
|
|
|
if (scope & CIMScope::PARAMETER) |
|
out << " PARAMETER=\"true\""; |
|
|
|
if (scope & CIMScope::INDICATION) |
|
out << " INDICATION=\"true\""; |
|
|
|
out << "/>"; |
|
} |
|
} |
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |