(file) Return to cimmofRepository.cpp 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           // implementation of valueFactory 
32           //
33           //
34           // CIMRepository implementation for use in the cimmof compiler.
35           // Basically, it adds compiler-level methods and provides error handling
36           //
37           
38           #include "cimmofRepository.h"
39           
40           cimmofRepository::cimmofRepository(const String &path) :
41           	CIMRepository(Cat(path, "/repository"))
42           {;}
43 mike  1.9 
44           cimmofRepository::~cimmofRepository() {;}
45           
46           int 
47           cimmofRepository::addClass(CIMClass *classdecl)
48           {
49             const String &Sns = (cimmofParser::Instance())->getNamespacePath();
50             CIMRepository::createClass( Sns,  *classdecl);
51             // FIXME:  catch errors
52             return 0;
53           }
54           
55           
56           int 
57           cimmofRepository::addInstance(CIMInstance *instance)
58           { 
59             const String &Sns = (cimmofParser::Instance())->getNamespacePath();
60             CIMRepository::createInstance(Sns, *instance);
61             // FIXME:  catch errors
62             return 0;
63           }
64 mike  1.9 
65           int 
66           cimmofRepository::addQualifier(CIMQualifierDecl *qualifier)
67           { 
68             const String &Sns = cimmofParser::Instance()->getNamespacePath();
69             CIMRepository::setQualifier(Sns, *qualifier);
70             // FIXME:  catch errors
71             return 0; 
72           }
73           
74           CIMQualifierDecl
75           cimmofRepository::getQualifierDecl(const String &name)
76           {
77             const String &Sns = cimmofParser::Instance()->getNamespacePath();
78             return CIMRepository::getQualifier(Sns, name);
79           }
80           
81           

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2