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

 1 mike  1.1 //%/////////////////////////////////////////////////////////////////////////////
 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.2 // Author: Mike Brasher (mbrasher@bmc.com)
23 mike  1.1 //
24           // Modified By:
25           //
26           //%/////////////////////////////////////////////////////////////////////////////
27           
28           #ifndef Pegasus_InheritanceTree_h
29           #define Pegasus_InheritanceTree_h
30           
31 mike  1.2 #include <iostream>
32 mike  1.1 #include <Pegasus/Common/Config.h>
33 mike  1.2 #include <Pegasus/Common/String.h>
34 mike  1.1 
35           PEGASUS_NAMESPACE_BEGIN
36           
37 mike  1.3 struct InheritanceTreeRep;
38           
39 mike  1.1 /** The InheritanceTree class tracks inheritance relationships of CIM classes.
40           
41               This class is a memory resident version of the repository's persistent 
42               inheritance information (represented using file names). The InheritanceTree 
43               provides O(1) access (via hashing) to any class in the inheritance tree.
44           
45           */
46 mike  1.2 class PEGASUS_REPOSITORY_LINKAGE InheritanceTree
47           {
48           public:
49           
50 mike  1.3     InheritanceTree();
51 mike  1.2 
52 mike  1.3     ~InheritanceTree();
53 mike  1.2 
54 mike  1.3     Boolean insert(const String& className, const String& superClassName);
55 mike  1.2 
56 mike  1.3     void print(std::ostream& os) const;
57 mike  1.2 
58           private:
59           
60 mike  1.3     InheritanceTreeRep* _rep;
61 mike  1.2 };
62 mike  1.1 
63           PEGASUS_NAMESPACE_END
64           
65           #endif /* Pegasus_InheritanceTree_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2