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

Diff for /pegasus/src/Pegasus/Common/CIMQualifierDecl.cpp between version 1.15 and 1.27

version 1.15, 2002/06/01 00:56:27 version 1.27, 2007/09/03 11:27:02
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 21 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "CIMQualifierDecl.h" #include "CIMQualifierDecl.h"
Line 53 
Line 57 
 } }
  
 CIMQualifierDecl::CIMQualifierDecl( CIMQualifierDecl::CIMQualifierDecl(
     const String& name,      const CIMName& name,
     const CIMValue& value,     const CIMValue& value,
     Uint32 scope,      const CIMScope & scope,
     Uint32 flavor,      const CIMFlavor & flavor,
     Uint32 arraySize)     Uint32 arraySize)
 { {
     _rep = new CIMQualifierDeclRep(name, value, scope, flavor, arraySize);     _rep = new CIMQualifierDeclRep(name, value, scope, flavor, arraySize);
Line 83 
Line 87 
     return *this;     return *this;
 } }
  
 const String& CIMQualifierDecl::getName() const  const CIMName& CIMQualifierDecl::getName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getName();     return _rep->getName();
 } }
  
 void CIMQualifierDecl::setName(const String& name)  void CIMQualifierDecl::setName(const CIMName& name)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setName(name);     _rep->setName(name);
 } }
  
 CIMType CIMQualifierDecl::getType() const CIMType CIMQualifierDecl::getType() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getType();     return _rep->getType();
 } }
  
 Boolean CIMQualifierDecl::isArray() const Boolean CIMQualifierDecl::isArray() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->isArray();     return _rep->isArray();
 } }
  
 const CIMValue& CIMQualifierDecl::getValue() const const CIMValue& CIMQualifierDecl::getValue() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue();     return _rep->getValue();
 } }
  
 void CIMQualifierDecl::setValue(const CIMValue& value) void CIMQualifierDecl::setValue(const CIMValue& value)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setValue(value);     _rep->setValue(value);
 } }
  
 Uint32 CIMQualifierDecl::getScope() const  const CIMScope & CIMQualifierDecl::getScope() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getScope();     return _rep->getScope();
 } }
  
 Uint32 CIMQualifierDecl::getFlavor() const  const CIMFlavor & CIMQualifierDecl::getFlavor() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getFlavor();     return _rep->getFlavor();
 } }
  
 Boolean CIMQualifierDecl::isFlavor(Uint32 flavor) const  
 {  
     return ((getFlavor() & flavor) !=0);  
 }  
   
 Uint32 CIMQualifierDecl::getArraySize() const Uint32 CIMQualifierDecl::getArraySize() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 Boolean CIMQualifierDecl::isNull() const  Boolean CIMQualifierDecl::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 } }
  
 Boolean CIMQualifierDecl::identical(const CIMConstQualifierDecl& x) const Boolean CIMQualifierDecl::identical(const CIMConstQualifierDecl& x) const
 { {
     x._checkRep();      CheckRep(x._rep);
     _checkRep();      CheckRep(_rep);
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
Line 162 
Line 161 
 void CIMQualifierDecl::_checkRep() const void CIMQualifierDecl::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
  
Line 188 
Line 187 
 } }
  
 CIMConstQualifierDecl::CIMConstQualifierDecl( CIMConstQualifierDecl::CIMConstQualifierDecl(
     const String& name,      const CIMName& name,
     const CIMValue& value,     const CIMValue& value,
     Uint32 scope,      const CIMScope & scope,
     Uint32 flavor,      const CIMFlavor & flavor,
     Uint32 arraySize)     Uint32 arraySize)
 { {
     _rep = new CIMQualifierDeclRep(name, value, scope, flavor, arraySize);     _rep = new CIMQualifierDeclRep(name, value, scope, flavor, arraySize);
Line 226 
Line 225 
     return *this;     return *this;
 } }
  
 const String& CIMConstQualifierDecl::getName() const  const CIMName& CIMConstQualifierDecl::getName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getName();     return _rep->getName();
 } }
  
 CIMType CIMConstQualifierDecl::getType() const CIMType CIMConstQualifierDecl::getType() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getType();     return _rep->getType();
 } }
  
 Boolean CIMConstQualifierDecl::isArray() const Boolean CIMConstQualifierDecl::isArray() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->isArray();     return _rep->isArray();
 } }
  
 const CIMValue& CIMConstQualifierDecl::getValue() const const CIMValue& CIMConstQualifierDecl::getValue() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue();     return _rep->getValue();
 } }
  
 Uint32 CIMConstQualifierDecl::getScope() const  const CIMScope & CIMConstQualifierDecl::getScope() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getScope();     return _rep->getScope();
 } }
  
 const Uint32 CIMConstQualifierDecl::getFlavor() const  const CIMFlavor & CIMConstQualifierDecl::getFlavor() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getFlavor();     return _rep->getFlavor();
 } }
  
 Boolean CIMConstQualifierDecl::isFlavor(Uint32 flavor) const  
 {  
     return ((getFlavor() & flavor) !=0);  
 }  
   
 Uint32 CIMConstQualifierDecl::getArraySize() const Uint32 CIMConstQualifierDecl::getArraySize() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 Boolean CIMConstQualifierDecl::isNull() const  Boolean CIMConstQualifierDecl::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 } }
  
 Boolean CIMConstQualifierDecl::identical(const CIMConstQualifierDecl& x) const Boolean CIMConstQualifierDecl::identical(const CIMConstQualifierDecl& x) const
 { {
     x._checkRep();      CheckRep(x._rep);
     _checkRep();      CheckRep(_rep);
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
Line 293 
Line 287 
 void CIMConstQualifierDecl::_checkRep() const void CIMConstQualifierDecl::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.15  
changed lines
  Added in v.1.27

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2