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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2