XQuilla/include/xqilla/operators/And.hpp
2020-02-17 22:05:20 +01:00

46 lines
1.1 KiB
C++

/*
* Copyright (c) 2001-2006
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2006
* Progress Software Corporation. All rights reserved.
* Copyright (c) 2004-2006
* Oracle. All rights reserved.
*
* See the file LICENSE for redistribution information.
*
* $Id: And.hpp,v 1.10 2006/11/01 16:37:14 jpcs Exp $
*/
#ifndef _AND_HPP
#define _AND_HPP
#include <xqilla/framework/XQillaExport.hpp>
#include <xqilla/ast/XQOperator.hpp>
#include <xqilla/runtime/SingleResult.hpp>
class XQILLA_API And : public XQOperator
{
public:
static const XMLCh name[];
And(const VectorOfASTNodes &args, XPath2MemoryManager* memMgr);
Result createResult(DynamicContext* context, int flags=0) const;
virtual ASTNode* staticResolution(StaticContext *context);
virtual ASTNode *staticTyping(StaticContext *context);
private:
class AndResult : public SingleResult
{
public:
AndResult(const And *op);
Item::Ptr getSingleResult(DynamicContext *context) const;
std::string asString(DynamicContext *context, int indent) const;
private:
const And *_op;
};
};
#endif // _AND_HPP