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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2