1 a.dunfey 1.20.14.1 //%2006////////////////////////////////////////////////////////////////////////
|
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 a.dunfey 1.20.14.1 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.9 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
15 kumpf 1.13 // 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 mike 1.9 // 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.13 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
22 mike 1.9 // 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.13 // 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 mike 1.9 // 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: Bob Blair (bblair@bmc.com)
33 //
|
34 kumpf 1.15 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
35 // (carolann_graves@hp.com)
|
36 gerarda 1.16 // Gerarda Marquez (gmarquez@us.ibm.com)
37 // -- PEP 43 changes
|
38 mike 1.9 //
39 //%/////////////////////////////////////////////////////////////////////////////
40
41
42 //
43 // interface definition for the cimmofRepository class, a specialiazation
44 // of the Pegasus CIMRepository class with error handling.
45 //
46
47 #ifndef _CIMMOFREPOSITORY_H_
48 #define _CIMMOFREPOSITORY_H_
49
|
50 bob 1.12
|
51 sage 1.11 #include <Pegasus/Common/Config.h>
|
52 mike 1.9 #include <Pegasus/Repository/CIMRepository.h>
53 #include <Pegasus/Common/String.h>
|
54 bob 1.12 //#include <Pegasus/Compiler/cimmofParser.h>
|
55 bob 1.10 #include <Pegasus/Compiler/compilerDeclContext.h>
|
56 kumpf 1.14 #include <Pegasus/Compiler/Linkage.h>
|
57 bob 1.10
|
58 bob 1.12 PEGASUS_NAMESPACE_BEGIN
|
59 mike 1.9
60
|
61 bob 1.10 class PEGASUS_COMPILER_LINKAGE cimmofRepository {
|
62 mike 1.9 public:
|
63 jim.wunderlich 1.20 cimmofRepository(const String &path, const CIMRepository_Mode Mode, compilerCommonDefs::operationType ot);
|
64 bob 1.10 virtual ~cimmofRepository();
|
65 mike 1.9
66 // Add some methods for use at the compiler level
|
67 kumpf 1.15 virtual int addClass(const CIMNamespaceName &nameSpace, CIMClass *classdecl);
68 virtual int addInstance(
69 const CIMNamespaceName &nameSpace,
70 CIMInstance *instance);
71 virtual int addQualifier(
72 const CIMNamespaceName &nameSpace,
73 CIMQualifierDecl *qualifier);
74
75 virtual CIMQualifierDecl getQualifierDecl(
76 const CIMNamespaceName &nameSpace,
77 const CIMName &name);
78 virtual CIMClass getClass(
79 const CIMNamespaceName &nameSpace,
80 const CIMName &classname);
|
81 gerarda 1.16
82 virtual int modifyClass(const CIMNamespaceName &nameSpace, CIMClass *classdecl);
83
|
84 kumpf 1.15 virtual void createNameSpace(const CIMNamespaceName &nameSpaceName);
|
85 bob 1.10 private:
86 CIMRepository *_cimrepository;
87 compilerDeclContext *_context;
88 compilerCommonDefs::operationType _ot;
|
89 mike 1.9 };
|
90 bob 1.12
91 PEGASUS_NAMESPACE_END
|
92 mike 1.9
93 #endif
|