(file) Return to clientRepositoryInterface.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Clients / tomof

  1 karl  1.14 //%2006////////////////////////////////////////////////////////////////////////
  2 karl  1.1  //
  3 karl  1.12 // 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.9  // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.12 // 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.13 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.14 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 karl  1.1  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.6  // 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 karl  1.1  // 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            // 
 21 kumpf 1.6  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 karl  1.1  // 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 kumpf 1.6  // 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 karl  1.1  // 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: Karl Schopmeyer (k.schopmeyer@opengroup.org)
 33            //
 34 kumpf 1.5  // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 35            //                  (carolann_graves@hp.com)
 36 a.arora 1.10 //              Amit K Arora, IBM (amita@in.ibm.com) for Bug#1720
 37 karl    1.1  //
 38              //%/////////////////////////////////////////////////////////////////////////////
 39              //
 40              // This class is the interface to allow a common call to serve both the repository
 41              // and the client interface.  Since these two interfaces were not designed with a
 42              // common hiearchy, it substitutes the individual calls with any special characteristics
 43              // for each call. Note that Bob Blair in the Compiler created much the same structure but
 44              // with different operations.   
 45              //
 46              // This class supports only the operations that tomof needs, which
 47              // are
 48              //     enumerateQualifiers()
 49              //     enumerateClassNames()
 50              //     enumerateClasses()
 51              //     enumerateInstances()
 52              //
 53              //  ACTION: In the future we should regularalize this so we have one class that can serve
 54              //  multiple programs. However, since the compiler extended the repository definitions
 55              //  and uses different functions, it was easier just to create a new class
 56              //
 57              
 58 karl    1.1  #ifndef CLIENT_REPOSITORY_INTERFACE_H_
 59              #define CLIENT_REPOSITORY_INTERFACE_H_
 60              
 61              #include <Pegasus/Common/Config.h>
 62              #include <Pegasus/Common/String.h>
 63 karl    1.2  #include <Pegasus/Common/Exception.h>
 64 karl    1.3  #include <Pegasus/Common/CIMPropertyList.h>
 65 kumpf   1.5  #include <Pegasus/Common/CIMObjectPath.h>
 66 karl    1.1  
 67              
 68              PEGASUS_NAMESPACE_BEGIN
 69              
 70              // Forward declarations
 71              class CIMRepository;
 72              class CIMClient;
 73              class CIMClass;
 74              class CIMQualifierDecl;
 75              class CIMInstance;
 76              
 77              
 78 karl    1.2  class clientRepositoryInterface
 79 karl    1.1  {
 80               private:
 81                CIMRepository *_repository;
 82                CIMClient     *_client;
 83              
 84               public:
 85                enum _repositoryType { REPOSITORY_INTERFACE_LOCAL = 0,
 86                                        REPOSITORY_INTERFACE_CLIENT
 87                };
 88                clientRepositoryInterface();
 89              
 90 a.arora 1.10   virtual ~clientRepositoryInterface();
 91 karl    1.1  
 92 david.dillard 1.11   void init(_repositoryType type, const String &location);
 93 karl          1.1  
 94                      Boolean ok() const { return _repository || _client; }
 95                    
 96 kumpf         1.8    virtual Array<CIMQualifierDecl> enumerateQualifiers(
 97                          const CIMNamespaceName &nameSpace) const;
 98 karl          1.1  
 99                      virtual CIMClass getClass(
100 kumpf         1.8        const CIMNamespaceName& nameSpace,
101                          const CIMName& className,
102 karl          1.1        const Boolean localOnly,
103                          const Boolean includeQualifiers,
104                          const Boolean includeClassOrigin) const;
105                    
106                      virtual Array<CIMClass> enumerateClasses(
107 kumpf         1.8        const CIMNamespaceName& nameSpace,
108                          const CIMName& className,
109 karl          1.1        const Boolean deepInheritance,
110                          const Boolean localOnly,
111                          const Boolean includeQualifiers,
112                          const Boolean includeClassOrigin) const;
113                    
114 kumpf         1.7    virtual Array<CIMName> enumerateClassNames(
115 kumpf         1.8        const CIMNamespaceName& nameSpace,
116                          const CIMName& className,
117 karl          1.1        const Boolean deepInheritance);
118                    
119 kumpf         1.4    virtual Array<CIMObjectPath> enumerateInstanceNames(
120 kumpf         1.8  	  const CIMNamespaceName& nameSpace,
121                    	  const CIMName& className);
122 karl          1.3  
123 kumpf         1.5    virtual Array<CIMInstance> enumerateInstances(
124 kumpf         1.8  	const CIMNamespaceName& nameSpace,
125                    	const CIMName& className,
126 karl          1.3  	Boolean deepInheritance = true,
127                    	Boolean localOnly = true,
128                    	Boolean includeQualifiers = false,
129                    	Boolean includeClassOrigin = false,
130                    	const CIMPropertyList& propertyList = CIMPropertyList());
131                    
132 karl          1.1  };
133                    
134                    PEGASUS_NAMESPACE_END
135                    
136                    #endif /* CLIENT_REPOSITORY_INTERFACE_H_ */
137                    
138                    

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2