version 1.1.2.1, 2001/12/03 00:58:05
|
version 1.7.16.1, 2006/02/10 16:14:27
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#define Pegasus_WQLPropertySource_h | #define Pegasus_WQLPropertySource_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/String.h> |
#include <Pegasus/Common/CIMName.h> |
#include <Pegasus/WQL/Linkage.h> | #include <Pegasus/WQL/Linkage.h> |
|
#include <Pegasus/WQL/WQLOperand.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
WQLSelectStatement::evaluateWhereClause() method which calls methods of | WQLSelectStatement::evaluateWhereClause() method which calls methods of |
this class to obtain real values for property names used in the where | this class to obtain real values for property names used in the where |
clause. | clause. |
|
|
The methods of this class all have the following form: |
|
|
|
<pre> |
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
T& value, |
|
Boolean& isNull) const = 0; |
|
</pre> |
|
|
|
Where "T" is the data type. True is returned if a property with that |
|
name is actually exists and the value refers to the value of that |
|
property. If the property is null, the the isNull flag is passed. |
|
*/ | */ |
class PEGASUS_WQL_LINKAGE WQLPropertySource | class PEGASUS_WQL_LINKAGE WQLPropertySource |
{ | { |
public: | public: |
| |
virtual Boolean getValue( |
/** Virtual destructor. |
const String& propertyName, |
*/ |
Sint32& value, |
virtual ~WQLPropertySource(); |
Boolean& isNull) const = 0; |
|
|
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
Real64& x, |
|
Boolean& isNull) const = 0; |
|
|
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
Boolean& x, |
|
Boolean& isNull) const = 0; |
|
| |
|
/** Returns the value whose property has the given name. The output |
|
parameter value is populated with the value of that parameter. |
|
Note that only integer, double, and string types are supported |
|
(see the WQLOperand class). The implementer of this method must |
|
perform appropriate conversions to the appropriate type. |
|
|
|
@param propertyName name of property to be gotten. |
|
@param value holds the value of the property upon return. |
|
@return true if such a property was found and false otherwise. |
|
*/ |
virtual Boolean getValue( | virtual Boolean getValue( |
const String& propertyName, |
const CIMName& propertyName, |
String& x, |
WQLOperand& value) const = 0; |
Boolean& isNull) const = 0; |
|
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |