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

 1 mike  1.3 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3           // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
 4           //
 5           // Permission is hereby granted, free of charge, to any person obtaining a
 6           // copy of this software and associated documentation files (the "Software"),
 7           // to deal in the Software without restriction, including without limitation
 8           // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 9           // and/or sell copies of the Software, and to permit persons to whom the
10           // Software is furnished to do so, subject to the following conditions:
11           //
12           // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13           // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14           // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15           // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16           // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17           // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18           // DEALINGS IN THE SOFTWARE.
19           //
20           //==============================================================================
21           //
22 mike  1.3 // Author: Bob Blair (bblair@bmc.com)
23           //
24           // Modified By:
25           //
26           //%/////////////////////////////////////////////////////////////////////////////
27           
28           
29           //
30           // implementation of valueFactory 
31           //
32           //
33           // CIMRepository implementation for use in the cimmof compiler.
34           // Basically, it adds compiler-level methods and provides error handling
35           //
36           
37           #include "cimmofRepository.h"
38           
39           cimmofRepository::cimmofRepository(const String &path) :
40 mike  1.4 	CIMRepository(Cat(path, "./repository"))
41 mike  1.3 {;}
42           
43           cimmofRepository::~cimmofRepository() {;}
44           
45           int 
46           cimmofRepository::addClass(CIMClass *classdecl)
47           {
48             const String &Sns = (cimmofParser::Instance())->getNamespacePath();
49             CIMRepository::createClass( Sns,  *classdecl);
50             // FIXME:  catch errors
51             return 0;
52           }
53           
54           
55           int 
56           cimmofRepository::addInstance(CIMInstance *instance)
57           { 
58             const String &Sns = (cimmofParser::Instance())->getNamespacePath();
59             CIMRepository::createInstance(Sns, *instance);
60             // FIXME:  catch errors
61             return 0;
62 mike  1.3 }
63           
64           int 
65           cimmofRepository::addQualifier(CIMQualifierDecl *qualifier)
66           { 
67             const String &Sns = cimmofParser::Instance()->getNamespacePath();
68             CIMRepository::setQualifier(Sns, *qualifier);
69             // FIXME:  catch errors
70             return 0; 
71           }
72           
73           CIMQualifierDecl
74           cimmofRepository::getQualifierDecl(const String &name)
75           {
76             const String &Sns = cimmofParser::Instance()->getNamespacePath();
77             return CIMRepository::getQualifier(Sns, name);
78           }
79           
80           

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2