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

 1 mike  1.2 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3 kumpf 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 4 mike  1.2 // The Open Group, Tivoli Systems
 5           //
 6           // Permission is hereby granted, free of charge, to any person obtaining a copy
 7 kumpf 1.3 // of this software and associated documentation files (the "Software"), to
 8           // deal in the Software without restriction, including without limitation the
 9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 mike  1.2 // sell copies of the Software, and to permit persons to whom the Software is
11           // furnished to do so, subject to the following conditions:
12           // 
13 kumpf 1.3 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14 mike  1.2 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16 kumpf 1.3 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 mike  1.2 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21           //
22           //==============================================================================
23           //
24           // Author: Mike Brasher (mbrasher@bmc.com)
25           //
26 kumpf 1.4 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
27           //                (carolann_graves@hp.com)
28 mike  1.2 //
29           //%/////////////////////////////////////////////////////////////////////////////
30           
31           #ifndef Pegasus_WQLPropertySource_h
32           #define Pegasus_WQLPropertySource_h
33           
34           #include <Pegasus/Common/Config.h>
35 kumpf 1.4 #include <Pegasus/Common/CIMName.h>
36 mike  1.2 #include <Pegasus/WQL/Linkage.h>
37           #include <Pegasus/WQL/WQLOperand.h>
38           
39           PEGASUS_NAMESPACE_BEGIN
40           
41           /** This class must be implemented to provide a source of properties for the
42               WQLSelectStatement::evaluateWhereClause() method which calls methods of
43               this class to obtain real values for property names used in the where
44               clause.
45           */
46           class PEGASUS_WQL_LINKAGE WQLPropertySource
47           {
48           public:
49           
50               /** Virtual destructor.
51               */
52               virtual ~WQLPropertySource();
53           
54               /** Returns the value whose property has the given name. The output
55           	parameter value is populated with the value of that parameter.
56           	Note that only integer, double, and string types are supported
57 mike  1.2 	(see the WQLOperand class). The implementer of this method must
58           	perform appropriate conversions to the appropriate type.
59           
60           	@param propertyName name of property to be gotten.
61           	@param value holds the value of the property upon return.
62           	@return true if such a property was found and false otherwise.
63               */
64               virtual Boolean getValue(
65 kumpf 1.4 	const CIMName& propertyName, 
66 mike  1.2 	WQLOperand& value) const = 0;
67           };
68           
69           PEGASUS_NAMESPACE_END
70           
71           #endif /* Pegasus_WQLPropertySource_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2