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

Diff for /pegasus/src/Pegasus/Common/CIMType.cpp between version 1.13 and 1.14

version 1.13, 2002/06/01 00:56:28 version 1.14, 2002/07/25 16:19:45
Line 24 
Line 24 
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
   //              Carol Ann Krug Graves, Hewlett-Packard Company
   //                (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 40 
Line 42 
  
 static const Uint32 _NUM_TYPES = sizeof(_typeStrings) / sizeof(_typeStrings[0]); static const Uint32 _NUM_TYPES = sizeof(_typeStrings) / sizeof(_typeStrings[0]);
  
 CIMType::CIMType() : _tag(NONE)  const char * cimTypeToString (
       const CIMType type)
 { {
 }      return _typeStrings [Uint32 (type)];
   
 CIMType::CIMType(Tag tag) : _tag(tag)  
 {  
 }  
   
 CIMType::CIMType(const CIMType& x) : _tag(x._tag)  
 {  
 }  
   
 CIMType& CIMType::operator=(Tag tag)  
 {  
     _tag = tag;  
     return *this;  
 }  
   
 CIMType::operator CIMType::Tag() const  
 {  
     return _tag;  
 }  
   
 Boolean CIMType::equal(const CIMType& x) const  
 {  
     return Uint32(x._tag) == Uint32(_tag);  
 }  
   
 const char* CIMType::toString() const  
 {  
     return _typeStrings[Uint32(_tag)];  
 }  
   
   
 Boolean operator==(CIMType x, CIMType y)  
 {  
     return x.equal(y);  
 }  
   
 Boolean operator!=(CIMType x, CIMType y)  
 {  
     return !x.equal(y);  
 }  
   
 Boolean operator==(CIMType x, CIMType::Tag y)  
 {  
     return x.equal(y);  
 }  
   
 Boolean operator==(CIMType::Tag x, CIMType y)  
 {  
     return y.equal(x);  
 }  
   
 Boolean operator!=(CIMType x, CIMType::Tag y)  
 {  
     return !x.equal(y);  
 }  
   
 Boolean operator!=(CIMType::Tag x, CIMType y)  
 {  
     return !y.equal(x);  
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2