Item.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001-2006
00003  *     DecisionSoft Limited. All rights reserved.
00004  * Copyright (c) 2004-2006
00005  *     Progress Software Corporation. All rights reserved.
00006  * Copyright (c) 2004-2006
00007  *     Oracle. All rights reserved.
00008  *
00009  * See the file LICENSE for redistribution information.
00010  *
00011  * $Id: Item.hpp,v 1.7 2006/11/01 16:37:14 jpcs Exp $
00012  */
00013 
00014 #ifndef _ITEM_HPP
00015 #define _ITEM_HPP
00016 
00017 #include <xqilla/framework/XQillaExport.hpp>
00018 #include <xqilla/framework/ReferenceCounted.hpp>
00019 #include <xercesc/util/XercesDefs.hpp>
00020 
00021 // forward declare when we can
00022 class XPath2MemoryManager;
00023 class DynamicContext;
00024 
00025 class XQILLA_API Item : public ReferenceCounted
00026 {
00027 public:
00028   typedef RefCountPointer<const Item> Ptr;
00029 
00031   static const XMLCh gXQilla[];
00032 
00033   virtual bool isNode() const = 0;
00034 
00035   virtual bool isAtomicValue() const = 0;
00036 
00037   virtual const XMLCh* asString(const DynamicContext* context) const = 0;
00038 
00039   virtual const XMLCh* getTypeURI() const = 0;
00040 
00041   virtual const XMLCh* getTypeName() const = 0;
00042 
00044   virtual void *getInterface(const XMLCh *name) const = 0;
00045 
00046 protected:
00047   Item() {}
00048 
00049 private:
00050   // copy constructor
00051   Item (const Item & other);            
00052   // assignment operation
00053   Item & operator=(const Item & item) ;
00054 };
00055 
00056 #endif // _ITEM_HPP
00057 

Generated on Fri Jan 19 15:30:53 2007 for XQilla Simple API by  doxygen 1.4.6