version 1.9, 2012/12/13 14:38:55
|
version 1.10, 2014/08/27 23:10:08
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "Print.h" | #include "Print.h" |
|
#include "Pegasus_inl.h" |
| |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
|
|
{ | { |
os << Ind(n) << "CIMProperty" << endl; | os << Ind(n) << "CIMProperty" << endl; |
os << Ind(n) << "{" << endl; | os << Ind(n) << "{" << endl; |
|
|
|
if (x.getQualifierCount() != 0) |
|
{ |
|
for (Uint32 i = 0; i < x.getQualifierCount(); i++) |
|
{ |
|
PrintQualifier(os, x.getQualifier(i), n + 1); |
|
} |
|
} |
os << Ind(n) << " name=" << x.getName().getString() << endl; | os << Ind(n) << " name=" << x.getName().getString() << endl; |
| |
os << Ind(n) << " CIMType=" << cimTypeToString(x.getType()); | os << Ind(n) << " CIMType=" << cimTypeToString(x.getType()); |
|
|
if (x.isArray()) | if (x.isArray()) |
{ | { |
os << " Array"; | os << " Array"; |
|
|
{ | { |
os << Ind(n) << "CIMInstance" << endl; | os << Ind(n) << "CIMInstance" << endl; |
os << Ind(n) << "{" << endl; | os << Ind(n) << "{" << endl; |
|
|
|
if (x.getQualifierCount() != 0) |
|
{ |
|
for (Uint32 i = 0; i < x.getQualifierCount(); i++) |
|
{ |
|
PrintQualifier(os, x.getQualifier(i), n + 1); |
|
} |
|
} |
|
|
os << Ind(n) << " class=" << x.getClassName().getString() << endl; | os << Ind(n) << " class=" << x.getClassName().getString() << endl; |
| |
PrintObjectPath(os, x.getPath(), n + 1); | PrintObjectPath(os, x.getPath(), n + 1); |
| |
|
|
for (Uint32 i = 0; i < x.getPropertyCount(); i++) | for (Uint32 i = 0; i < x.getPropertyCount(); i++) |
{ | { |
PrintProperty(os, x.getProperty(i), n + 1); | PrintProperty(os, x.getProperty(i), n + 1); |
|
|
os << Ind(n) << "}" << endl; | os << Ind(n) << "}" << endl; |
} | } |
| |
|
void PEGASUS_COMMON_LINKAGE PrintQualifier( |
|
PEGASUS_STD(ostream)& os, |
|
const CIMConstQualifier& x, |
|
Uint32 n) |
|
{ |
|
os << Ind(n) << "CIMQualifier" << endl; |
|
os << Ind(n) << "{" << endl; |
|
os << Ind(n) << " name=" << x.getName().getString() << endl; |
|
os << Ind(n) << " type=" << _typeStrings[x.getType()] << endl; |
|
os << Ind(n) << " flavor=" << x.getFlavor().toString() << endl; |
|
os << Ind(n) << " isArray=" << boolToString(x.isArray()) << endl; |
|
PrintValue(os, x.getValue(), n + 1); |
|
os << Ind(n) << "}" << endl; |
|
} |
|
|
PEGASUS_COMMON_LINKAGE void PrintParamValue( | PEGASUS_COMMON_LINKAGE void PrintParamValue( |
PEGASUS_STD(ostream)& os, | PEGASUS_STD(ostream)& os, |
const CIMParamValue& x, | const CIMParamValue& x, |
|
|
Uint32) | Uint32) |
{ | { |
} | } |
|
|
|
PEGASUS_COMMON_LINKAGE void PrintQualifierDecl( |
|
PEGASUS_STD(ostream)&, |
|
const CIMConstQualifier&, |
|
Uint32) |
|
{ |
|
} |
#endif /* defined(PEGASUS_DEBUG) */ | #endif /* defined(PEGASUS_DEBUG) */ |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |