(file) Return to ProviderClassList.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / IndicationService

  1 martin 1.10 //%LICENSE////////////////////////////////////////////////////////////////
  2             // 
  3             // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9             // 
 10             // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16             // 
 17             // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19             // 
 20             // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21             // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 22 martin 1.10 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 kumpf  1.1  // 
 28 martin 1.10 //////////////////////////////////////////////////////////////////////////
 29 kumpf  1.1  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             #ifndef Pegasus_ProviderClassList_h
 33             #define Pegasus_ProviderClassList_h
 34             
 35             #include <Pegasus/Common/Config.h>
 36             #include <Pegasus/Common/CIMInstance.h>
 37             #include <Pegasus/Common/CIMName.h>
 38             
 39             
 40             PEGASUS_NAMESPACE_BEGIN
 41             
 42             /**
 43                 Entry for list of indication providers
 44              */
 45             struct providerClassList
 46             {
 47                 CIMInstance provider;
 48                 CIMInstance providerModule;
 49 yi.zhou 1.9  #ifdef PEGASUS_ENABLE_INDICATION_COUNT
 50                  Uint32 matchedIndCountPerSubscription;
 51              #endif
 52 kumpf   1.1      Array <CIMName> classList;
 53 dave.sudlik 1.7     // Enabling Indications on Remote CMPI -V 5245
 54                  #ifdef PEGASUS_ENABLE_REMOTE_CMPI
 55                      Boolean isRemoteNameSpace;
 56                      String remoteInfo;
 57                  #endif
 58 kumpf       1.1  
 59 kumpf       1.8      providerClassList()
 60 kumpf       1.1      {
 61 yi.zhou     1.9  #ifdef PEGASUS_ENABLE_INDICATION_COUNT
 62                          matchedIndCountPerSubscription = 0;
 63                  #endif
 64 kumpf       1.1      }
 65 kumpf       1.8  
 66 kumpf       1.1      providerClassList (const providerClassList & rh)
 67                      :   provider (rh.provider),
 68                          providerModule (rh.providerModule),
 69 yi.zhou     1.9  #ifdef PEGASUS_ENABLE_INDICATION_COUNT
 70                          matchedIndCountPerSubscription(rh.matchedIndCountPerSubscription),
 71                  #endif
 72 kumpf       1.1          classList (rh.classList)
 73 dave.sudlik 1.7  #ifdef PEGASUS_ENABLE_REMOTE_CMPI
 74                          ,
 75                          isRemoteNameSpace (rh.isRemoteNameSpace),
 76                          remoteInfo (rh.remoteInfo)
 77                  #endif
 78 kumpf       1.1      {
 79                      }
 80                  
 81                      providerClassList & operator= (const providerClassList & rh)
 82                      {
 83                          if (this != & rh)
 84                          {
 85                              provider = rh.provider;
 86                              providerModule = rh.providerModule;
 87 yi.zhou     1.9  #ifdef PEGASUS_ENABLE_INDICATION_COUNT
 88                              matchedIndCountPerSubscription = rh.matchedIndCountPerSubscription;
 89                  #endif
 90 kumpf       1.1              classList = rh.classList;
 91 dave.sudlik 1.7  #ifdef PEGASUS_ENABLE_REMOTE_CMPI
 92                              isRemoteNameSpace = rh.isRemoteNameSpace;
 93                              remoteInfo = rh.remoteInfo;
 94                  #endif
 95 kumpf       1.1          }
 96                          return * this;
 97                      }
 98                  };
 99                  
100                  typedef struct providerClassList ProviderClassList;
101                  
102                  PEGASUS_NAMESPACE_END
103                  
104                  #endif  /* Pegasus_ProviderClassList_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2