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

  1 a.dunfey 1.10.16.1 //%2006////////////////////////////////////////////////////////////////////////
  2 chip     1.1       //
  3 karl     1.9       // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4                    // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5                    // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl     1.3       // IBM Corp.; EMC Corporation, The Open Group.
  7 karl     1.9       // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8                    // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl     1.10      // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10                    // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 a.dunfey 1.10.16.1 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12                    // EMC Corporation; Symantec Corporation; The Open Group.
 13 chip     1.1       //
 14                    // Permission is hereby granted, free of charge, to any person obtaining a copy
 15                    // of this software and associated documentation files (the "Software"), to
 16                    // deal in the Software without restriction, including without limitation the
 17                    // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18                    // sell copies of the Software, and to permit persons to whom the Software is
 19                    // furnished to do so, subject to the following conditions:
 20 karl     1.3       // 
 21 chip     1.1       // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22                    // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                    // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24                    // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                    // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                    // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27                    // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                    // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                    //
 30                    //==============================================================================
 31                    //
 32                    // Author: Chip Vincent (cvincent@us.ibm.com)
 33                    //
 34 schuur   1.7       // Modified By: Adrian Schuur (schuur@de.ibm.com)
 35 chip     1.1       //
 36                    //%/////////////////////////////////////////////////////////////////////////////
 37                    
 38                    #include "ProviderName.h"
 39                    
 40                    #include <Pegasus/Common/CIMValue.h>
 41                    
 42                    PEGASUS_NAMESPACE_BEGIN
 43                    
 44                    ProviderName::ProviderName(void) : _capabilities(0)
 45                    {
 46                    }
 47                    
 48 schuur   1.7       ProviderName::ProviderName(
 49                        const CIMNamespaceName & nameSpace,
 50                        const CIMName & className,
 51                        const Uint32 capabilities,
 52                        const CIMName & method)
 53                        : _capabilities(capabilities)
 54 chip     1.1       {
 55 schuur   1.7           _nameSpace = nameSpace;
 56                        _className = className;
 57                        _method = method;
 58                    }
 59 chip     1.1       
 60 schuur   1.7       ProviderName::ProviderName(
 61                        const CIMObjectPath & path,
 62                        const Uint32 capabilities,
 63                        const CIMName & method)
 64                        : _capabilities(capabilities)
 65                    {
 66                        _nameSpace = path.getNameSpace();
 67                        _className = path.getClassName();
 68                        _method = method;
 69 chip     1.1       }
 70                    
 71                    ProviderName::ProviderName(
 72                        const String & logicalName,
 73                        const String & physicalName,
 74                        const String & interfaceName,
 75 schuur   1.6           const Uint32 capabilities,
 76                        const CIMName & method)
 77 schuur   1.5           : _capabilities(capabilities)
 78 chip     1.1       {
 79                        _logicalName = logicalName;
 80                        _physicalName = physicalName;
 81 schuur   1.7           _interfaceName = interfaceName;    
 82 schuur   1.6           _method = method;
 83 chip     1.1       }
 84                    
 85                    ProviderName::~ProviderName(void)
 86                    {
 87                    }
 88                    
 89                    String ProviderName::getPhysicalName(void) const
 90                    {
 91                        return(_physicalName);
 92                    }
 93                    
 94                    void ProviderName::setPhysicalName(const String & physicalName)
 95                    {
 96                        _physicalName = physicalName;
 97                    }
 98                    
 99                    String ProviderName::getLogicalName(void) const
100                    {
101                        return(_logicalName);
102                    }
103                    
104 chip     1.2       String ProviderName::getInterfaceName(void) const
105                    {
106                        return(_interfaceName);
107                    }
108                    
109 schuur   1.8       String ProviderName::getLocation(void) const
110                    {
111                        return(_location);
112                    }
113                    
114                    void ProviderName::setLocation(const String &location)
115                    {
116                        _location=location;
117                    }
118                    
119 chip     1.1       Uint32 ProviderName::getCapabilitiesMask(void) const
120                    {
121                        return(_capabilities);
122                    }
123                    
124 schuur   1.6       CIMName ProviderName::getMethodName(void) const
125                    {
126                        return(_method);
127                    }
128                    
129 schuur   1.7       CIMName ProviderName::getClassName() const {
130                       return _className;
131 chip     1.1       }
132 schuur   1.7       
133                    CIMNamespaceName ProviderName::getNameSpace() const {
134                       return _nameSpace;
135                    }   
136 chip     1.1       
137                    PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2