#ifndef Pegasus_CQLFactor_h #define Pegasus_CQLFactor_h #include #include #include #include #include PEGASUS_NAMESPACE_BEGIN class PEGASUS_CQL_LINKAGE CQLFactory; /* CQLFunction objects are populated by the Bison code. Supported functions are in accordance with the DMTF CQL Specification. TODO: THIS LIST IS SUBJECT TO CHANGE classname( ) classname( ) count(*) count( distinct * ) count( distinct ) something for createarray something for datetime something for hostname max( ) mean( ) median( ) min( ) something for modelpath something for namespacename something for namespacepath something for objectpath something for scheme sum( ) something for userinfo uppercase( ) */ class PEGASUS_CQL_LINKAGE CQLFunctionRep { public: CQLFunctionRep() {}; CQLFunctionRep(const CQLFunctionRep& inFunc); CQLFunctionRep(FunctionOpType inFunctionOpType, Array inParms); ~CQLFunctionRep(); /** The getValue method validates the parms versus FunctionOpType. (A) resolves prarameter types (B) number of parms and then actually executes the function. Returns a CQLValue object that has already been resolved. */ CQLValue resolveValue(CIMInstance CI, QueryContext& queryCtx); Array getParms(); FunctionOpType getFunctionType(); String toString(); void applyScopes(Array inScopes); Boolean operator==(const CQLFunctionRep& func); Boolean operator!=(const CQLFunctionRep& func); friend class CQLFactory; private: FunctionOpType _funcOpType; Array _parms; }; PEGASUS_NAMESPACE_END #endif