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

Diff for /pegasus/src/Pegasus/Common/OperationContextInternal.cpp between version 1.2 and 1.14.16.1

version 1.2, 2003/10/22 14:26:03 version 1.14.16.1, 2005/12/30 22:01:01
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L. P., IBM Corp., 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.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // IBM Corp.; EMC Corporation, The Open Group. // 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.
 // //
 // 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 52 
Line 56 
 } }
  
 LocaleContainer::LocaleContainer(const String & languageId) LocaleContainer::LocaleContainer(const String & languageId)
 #ifndef PEGASUS_REMOVE_DEPRECATED  
     : OperationContext::Container(CONTEXT_LOCALE)  
 #endif  
 { {
     _languageId = languageId;     _languageId = languageId;
 } }
Line 63 
Line 64 
 { {
 } }
  
   LocaleContainer & LocaleContainer::operator=(const LocaleContainer &container)
   {
       if(this == &container)
       {
           return(*this);
       }
   
       _languageId = container._languageId;
   
       return(*this);
   }
   
 String LocaleContainer::getName(void) const String LocaleContainer::getName(void) const
 { {
     return(NAME);     return(NAME);
Line 101 
Line 114 
     *this = *p;     *this = *p;
 } }
  
 ProviderIdContainer::ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider)  ProviderIdContainer::ProviderIdContainer(
 #ifndef PEGASUS_REMOVE_DEPRECATED      const CIMInstance & module,
     : OperationContext::Container(CONTEXT_PROVIDERID)      const CIMInstance & provider,
 #endif      Boolean isRemoteNameSpace,
       const String & remoteInfo)
       : _module(module),
       _provider(provider),
       _isRemoteNameSpace(isRemoteNameSpace),
       _remoteInfo(remoteInfo)
 { {
     _module = module;  
     _provider = provider;  
 } }
  
 ProviderIdContainer::~ProviderIdContainer(void) ProviderIdContainer::~ProviderIdContainer(void)
 { {
 } }
  
   ProviderIdContainer & ProviderIdContainer::operator=(const ProviderIdContainer & container)
   {
       if(this == &container)
       {
           return(*this);
       }
   
       _module = container._module;
       _provider = container._provider;
       _isRemoteNameSpace = container._isRemoteNameSpace;
       _remoteInfo = container._remoteInfo;
   
       return(*this);
   }
   
 String ProviderIdContainer::getName(void) const String ProviderIdContainer::getName(void) const
 { {
     return(NAME);     return(NAME);
Line 139 
Line 170 
     return(_provider);     return(_provider);
 } }
  
   Boolean ProviderIdContainer::isRemoteNameSpace(void) const
   {
       return(_isRemoteNameSpace);
   }
   
   String ProviderIdContainer::getRemoteInfo(void) const
   {
       return(_remoteInfo);
   }
   
   //
   // CachedClassDefinitionContainer
   //
   
   const String CachedClassDefinitionContainer::NAME = "CachedClassDefinitionContainer";
   
   CachedClassDefinitionContainer::CachedClassDefinitionContainer(const OperationContext::Container & container)
   {
       const CachedClassDefinitionContainer * p = dynamic_cast<const CachedClassDefinitionContainer *>(&container);
   
       if(p == 0)
       {
           throw DynamicCastFailedException();
       }
   
       *this = *p;
   }
   
   
   CachedClassDefinitionContainer::CachedClassDefinitionContainer(const CIMClass & cimClass)
       : _cimClass(cimClass)
   {
   }
   
   CachedClassDefinitionContainer::~CachedClassDefinitionContainer(void)
   {
   }
   
   CachedClassDefinitionContainer & CachedClassDefinitionContainer::operator=(const CachedClassDefinitionContainer & container)
   {
       if(this == &container)
       {
           return(*this);
       }
   
       _cimClass = container._cimClass;
   
       return(*this);
   }
   
   String CachedClassDefinitionContainer::getName(void) const
   {
       return(NAME);
   }
   
   OperationContext::Container * CachedClassDefinitionContainer::clone(void) const
   {
       return(new CachedClassDefinitionContainer(*this));
   }
   
   void CachedClassDefinitionContainer::destroy(void)
   {
       delete this;
   }
   
   CIMClass CachedClassDefinitionContainer::getClass(void) const
   {
       return(_cimClass);
   }
   
   
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   // Only needed if normalization is enabled
   #ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
   //
   // RepositoryContainer
   //
   
   const String RepositoryContainer::NAME = "RepositoryContainer";
   
   RepositoryContainer::RepositoryContainer(const OperationContext::Container & container)
   {
       const RepositoryContainer * p = dynamic_cast<const RepositoryContainer *>(&container);
   
       if(p == 0)
       {
           throw DynamicCastFailedException();
       }
   
       *this = *p;
   }
   
   
   RepositoryContainer::RepositoryContainer(CIMRepository * repository)
       : _repository(repository)
   {
   }
   
   RepositoryContainer::~RepositoryContainer(void)
   {
   }
   
   RepositoryContainer & RepositoryContainer::operator=(const RepositoryContainer & container)
   {
       if(this == &container)
       {
           return(*this);
       }
   
       _repository = container._repository;
   
       return(*this);
   }
   
   String RepositoryContainer::getName(void) const
   {
       return(NAME);
   }
   
   OperationContext::Container * RepositoryContainer::clone(void) const
   {
       return(new RepositoryContainer(*this));
   }
   
   void RepositoryContainer::destroy(void)
   {
       delete this;
   }
   
   CIMRepository * RepositoryContainer::getRepository(void) const
   {
       return(_repository);
   }
   #endif // PEGASUS_ENABLE_OBJECT_NORMALIZATION
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.14.16.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2