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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2