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