(file) Return to CIMScope.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMScope.cpp between version 1.10 and 1.12

version 1.10, 2002/03/04 15:10:05 version 1.12, 2002/05/15 22:41:36
Line 72 
Line 72 
  
     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


Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2