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

 1 karl  1.19 //%2005////////////////////////////////////////////////////////////////////////
 2 mike  1.9  //
 3 karl  1.18 // 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.17 // IBM Corp.; EMC Corporation, The Open Group.
 7 karl  1.18 // 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.19 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
11 mike  1.9  //
12            // Permission is hereby granted, free of charge, to any person obtaining a copy
13 kumpf 1.13 // of this software and associated documentation files (the "Software"), to
14            // deal in the Software without restriction, including without limitation the
15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 mike  1.9  // sell copies of the Software, and to permit persons to whom the Software is
17            // furnished to do so, subject to the following conditions:
18            // 
19 kumpf 1.13 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 mike  1.9  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 kumpf 1.13 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 mike  1.9  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27            //
28            //==============================================================================
29            //
30            // Author: Bob Blair (bblair@bmc.com)
31            //
32 kumpf 1.15 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
33            //                (carolann_graves@hp.com)
34 gerarda 1.16 //              Gerarda Marquez (gmarquez@us.ibm.com)
35              //              -- PEP 43 changes
36 mike    1.9  //
37              //%/////////////////////////////////////////////////////////////////////////////
38              
39              
40              // 
41              // interface definition for the cimmofRepository class, a specialiazation
42              // of the Pegasus CIMRepository class with error handling.
43              //
44              
45              #ifndef _CIMMOFREPOSITORY_H_
46              #define _CIMMOFREPOSITORY_H_
47              
48 bob     1.12 
49 sage    1.11 #include <Pegasus/Common/Config.h>
50 mike    1.9  #include <Pegasus/Repository/CIMRepository.h>
51              #include <Pegasus/Common/String.h>
52 bob     1.12 //#include <Pegasus/Compiler/cimmofParser.h>
53 bob     1.10 #include <Pegasus/Compiler/compilerDeclContext.h>
54 kumpf   1.14 #include <Pegasus/Compiler/Linkage.h>
55 bob     1.10 
56 bob     1.12 PEGASUS_NAMESPACE_BEGIN
57 mike    1.9  
58              
59 bob     1.10 class PEGASUS_COMPILER_LINKAGE cimmofRepository  {
60 mike    1.9   public:
61 jim.wunderlich 1.20   cimmofRepository(const String &path, const CIMRepository_Mode Mode, compilerCommonDefs::operationType ot);
62 bob            1.10   virtual ~cimmofRepository();
63 mike           1.9  
64                       // Add some methods for use at the compiler level
65 kumpf          1.15   virtual int addClass(const CIMNamespaceName &nameSpace, CIMClass *classdecl);
66                       virtual int addInstance(
67                           const CIMNamespaceName &nameSpace, 
68                           CIMInstance *instance);
69                       virtual int addQualifier(
70                           const CIMNamespaceName &nameSpace,
71                           CIMQualifierDecl *qualifier);
72                     
73                       virtual CIMQualifierDecl getQualifierDecl(
74                           const CIMNamespaceName &nameSpace,
75                            const CIMName &name);
76                       virtual CIMClass getClass(
77                           const CIMNamespaceName &nameSpace, 
78                           const CIMName &classname);
79 gerarda        1.16 
80                       virtual int modifyClass(const CIMNamespaceName &nameSpace, CIMClass *classdecl);
81                     
82 kumpf          1.15   virtual void createNameSpace(const CIMNamespaceName &nameSpaceName);
83 bob            1.10  private:
84                       CIMRepository *_cimrepository;
85                       compilerDeclContext *_context;
86                       compilerCommonDefs::operationType _ot;
87 mike           1.9  };
88 bob            1.12 
89                     PEGASUS_NAMESPACE_END
90 mike           1.9  
91                     #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2