getitemaction.hxx
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:

Windows Develop

Development Platform:

Visual C++

  1. /*
  2.  * @(#)GetItemAction.hxx 1.0 3/19/98
  3.  * 
  4. * Copyright (c) 1997 - 1999 Microsoft Corporation. All rights reserved. *
  5.  * definition of XTL GetItemAction object
  6.  * 
  7.  */
  8. #ifndef XTL_ENGINE_GETITEMACTION
  9. #define XTL_ENGINE_GETITEMACTION
  10. #ifndef _XTL_ENGINE_ACTION
  11. #include "action.hxx"
  12. #endif
  13. #ifndef _XQL_QUERY_CHILDRENQUERY
  14. #include "xql/query/childrenquery.hxx"
  15. #endif
  16. #ifndef _XQL_QUERY_CONDITION
  17. #include "xql/query/condition.hxx"
  18. #endif
  19. #ifndef _XQL_PARSE_XQLPARSER
  20. #include "xql/parser/xqlparser.hxx"
  21. #endif
  22. DEFINE_CLASS(GetItemAction);
  23. /**
  24.  * A simple action for copying elements.
  25.  *
  26.  * Hungarian: getitem
  27.  *
  28.  */
  29. class GetItemAction : public Action 
  30. {
  31.     DECLARE_CLASS_MEMBERS(GetItemAction, Action);
  32.     public:
  33.         static GetItemAction * newGetItemAction(Element * e);
  34.         Element * getData(Processor * xtl);
  35.         virtual void execute(int state, Processor * xtl);
  36.         virtual bool compile(Processor * xtl, String * language);
  37. #if DBG == 1
  38.         virtual String * toString();
  39. #endif
  40.     protected: 
  41.         GetItemAction(Element * e);
  42.         virtual void finalize();
  43.          // hide these (not implemented)
  44.         GetItemAction(){}
  45.         GetItemAction( const GetItemAction &);
  46.         void operator =( const GetItemAction &);
  47.         /**
  48.          * The XQL element for this action
  49.          */
  50.         RQuery _qy;
  51. };
  52. #endif _XTL_ENGINE_GETITEMACTION
  53. /// End of file ///////////////////////////////////////////////////////////////
  54. ///////////////////////////////////////////////////////////////////////////////