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

  1 martin 1.21 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.22 //
  3 martin 1.21 // 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.22 //
 10 martin 1.21 // 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.22 //
 17 martin 1.21 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.22 //
 20 martin 1.21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.22 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.21 // 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.22 //
 28 martin 1.21 //////////////////////////////////////////////////////////////////////////
 29 mike   1.3  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             #ifndef Pegasus_AssocClassTable_h
 33             #define Pegasus_AssocClassTable_h
 34             
 35             #include <fstream>
 36             #include <Pegasus/Common/Config.h>
 37 kumpf  1.4  #include <Pegasus/Common/CIMObjectPath.h>
 38 kumpf  1.7  #include <Pegasus/Common/ArrayInternal.h>
 39 kumpf  1.20 #include <Pegasus/Repository/PersistentStoreData.h>
 40             #include <Pegasus/Repository/AssocClassCache.h>
 41 kumpf  1.6  #include <Pegasus/Repository/Linkage.h>
 42 mike   1.3  
 43             PEGASUS_NAMESPACE_BEGIN
 44             
 45 kumpf  1.20 /** Handles persistent storage and lookup of class association data.
 46 mike   1.3  */
 47             class PEGASUS_REPOSITORY_LINKAGE AssocClassTable
 48             {
 49             public:
 50             
 51 kumpf  1.20     AssocClassTable()
 52                 {
 53                 }
 54             
 55                 ~AssocClassTable()
 56                 {
 57                 }
 58             
 59 mike   1.3      /** Appends a row into the association class table. There is no checking
 60 david.dillard 1.14         for duplicate entries (the caller ensures this). The case of
 61                            the arguments doesn't matter. They are ignored during comparison.
 62 mike          1.3      */
 63 kumpf         1.20     void append(
 64 david.dillard 1.14         PEGASUS_STD(ofstream)& os,
 65 r.kieninger   1.15         const String& path,
 66 kumpf         1.20         const ClassAssociation& classAssociation);
 67 mike          1.3  
 68                        /** Appends a row into the association class table. There is no checking
 69 david.dillard 1.14         for duplicate entries (the caller ensures this). The case of the
 70                            arguments doesn't matter. Case is ignored during comparison.
 71 mike          1.3      */
 72 kumpf         1.20     void append(
 73 david.dillard 1.14         const String& path,
 74 kumpf         1.20         const ClassAssociation& classAssociation);
 75 mike          1.3  
 76                        /** Deletes the given association from the table by removing every entry
 77 david.dillard 1.14         with the given assocClassName.
 78                            @returns true if such an association was found.
 79 mike          1.3      */
 80 kumpf         1.20     Boolean deleteAssociation(
 81 david.dillard 1.14         const String& path,
 82                            const CIMName& assocClassName);
 83 mike          1.3  
 84 kumpf         1.18     /** Finds all associators of the given class. See
 85 david.dillard 1.14         CIMOperations::associators() for a full description.
 86 mike          1.3      */
 87 kumpf         1.20     Boolean getAssociatorNames(
 88 david.dillard 1.14         const String& path,
 89                            const Array<CIMName>& classList,
 90 kumpf         1.10         const Array<CIMName>& assocClassList,
 91                            const Array<CIMName>& resultClassList,
 92 mike          1.3          const String& role,
 93                            const String& resultRole,
 94 david.dillard 1.14         Array<String>& associatorNames);
 95 mike          1.3  
 96 kumpf         1.10     /** Get all references (association class names) in which the
 97 kumpf         1.18         given class involved. See CIMOperations::referenceNames() for a
 98 david.dillard 1.14         full description.
 99 mike          1.3      */
100 kumpf         1.20     Boolean getReferenceNames(
101 david.dillard 1.14         const String& path,
102                            const Array<CIMName>& classList,
103                            const Array<CIMName>& resultClassList,
104                            const String& role,
105                            Array<String>& referenceNames);
106 karl          1.9  
107 mike          1.3  private:
108                    
109 kumpf         1.20     Boolean _InitializeCache(
110 kumpf         1.18         AssocClassCache* cache,
111 r.kieninger   1.15         const String& path);
112                    
113 kumpf         1.20     AssocClassCacheManager _assocClassCacheManager;
114 mike          1.3  };
115                    
116                    PEGASUS_NAMESPACE_END
117                    
118                    #endif /* Pegasus_AssocClassTable_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2