1 martin 1.25 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.26 //
|
3 martin 1.25 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.26 //
|
10 martin 1.25 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.26 //
|
17 martin 1.25 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.26 //
|
20 martin 1.25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.26 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.26 //
|
28 martin 1.25 //////////////////////////////////////////////////////////////////////////
|
29 mike 1.9 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32
|
33 karl 1.23 //
|
34 mike 1.9 // interface definition for the cimmofRepository class, a specialiazation
35 // of the Pegasus CIMRepository class with error handling.
36 //
37
38 #ifndef _CIMMOFREPOSITORY_H_
39 #define _CIMMOFREPOSITORY_H_
40
|
41 bob 1.12
|
42 sage 1.11 #include <Pegasus/Common/Config.h>
|
43 mike 1.9 #include <Pegasus/Repository/CIMRepository.h>
44 #include <Pegasus/Common/String.h>
|
45 bob 1.12 //#include <Pegasus/Compiler/cimmofParser.h>
|
46 bob 1.10 #include <Pegasus/Compiler/compilerDeclContext.h>
|
47 kumpf 1.14 #include <Pegasus/Compiler/Linkage.h>
|
48 bob 1.10
|
49 bob 1.12 PEGASUS_NAMESPACE_BEGIN
|
50 mike 1.9
51
|
52 karl 1.23 class PEGASUS_COMPILER_LINKAGE cimmofRepository
53 {
54 public:
55 cimmofRepository(
56 const String& path,
57 Uint32 mode,
58 compilerCommonDefs::operationType ot);
59 virtual ~cimmofRepository();
60
61 // Add some methods for use at the compiler level
62 virtual int addClass(const CIMNamespaceName &nameSpace,
63 CIMClass *classdecl);
64 virtual int addInstance(
65 const CIMNamespaceName &nameSpace,
66 CIMInstance *instance);
67 virtual int addQualifier(
68 const CIMNamespaceName &nameSpace,
69 CIMQualifierDecl *qualifier);
70
71 virtual CIMQualifierDecl getQualifierDecl(
72 const CIMNamespaceName &nameSpace,
73 karl 1.23 const CIMName &name);
74 virtual CIMClass getClass(
75 const CIMNamespaceName &nameSpace,
76 const CIMName &classname);
77
78 virtual int modifyClass(const CIMNamespaceName &nameSpace,
79 CIMClass *classdecl);
80
81 virtual void createNameSpace(const CIMNamespaceName &nameSpaceName);
|
82 mike 1.24
|
83 karl 1.23 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
|