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

33 lines
786 B
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: SingleResult.hpp,v 1.9 2006/11/01 16:37:15 jpcs Exp $
*/
#ifndef _SINGLERESULT_HPP
#define _SINGLERESULT_HPP
#include <xqilla/runtime/ResultImpl.hpp>
/** A reference counting wrapper for the lazily evaluated query result */
class XQILLA_API SingleResult : public ResultImpl
{
public:
SingleResult(const LocationInfo *o);
virtual Item::Ptr next(DynamicContext *context);
virtual Item::Ptr getSingleResult(DynamicContext *context) const = 0;
private:
bool toDo_;
};
#endif