Coin Logo http://www.sim.no/
http://www.coin3d.org/

ScXMLInvoke.h
1 #ifndef COIN_SCXMLINVOKE_H
2 #define COIN_SCXMLINVOKE_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) by Kongsberg Oil & Gas Technologies.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Kongsberg Oil & Gas Technologies
18  * about acquiring a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/scxml/ScXMLObject.h>
28 
29 #include <Inventor/tools/SbLazyPimplPtr.h>
30 
31 class ScXMLEvent;
32 class ScXMLStateMachine;
33 
34 class COIN_DLL_API ScXMLInvoke : public ScXMLObject {
35  typedef ScXMLObject inherited;
36  SCXML_OBJECT_ABSTRACT_HEADER(ScXMLInvoke)
37 
38 public:
39  static void initClass(void);
40 
41  ScXMLInvoke(void);
42  virtual ~ScXMLInvoke(void);
43 
44  // XML attributes
45  virtual void setTargetTypeAttribute(const char * id);
46  const char * getTargetTypeAttribute(void) const { return this->targettype; }
47 
48  virtual void setSrcAttribute(const char * id);
49  const char * getSrcAttribute(void) const { return this->src; }
50 
51  virtual void setSrcExprAttribute(const char * id);
52  const char * getSrcExprAttribute(void) const { return this->srcexpr; }
53 
54  virtual SbBool handleXMLAttributes(void);
55 
56  // executable content
57  virtual void invoke(ScXMLStateMachine * statemachine) = 0;
58 
59 protected:
60  char * targettype;
61  char * src;
62  char * srcexpr;
63 
64 private:
65  ScXMLInvoke(const ScXMLInvoke & rhs); // N/A
66  ScXMLInvoke & operator = (const ScXMLInvoke & rhs); // N/A
67 
68  class PImpl;
69  SbLazyPimplPtr<PImpl> pimpl;
70 
71 }; // ScXMLInvoke
72 
73 #endif // !COIN_SCXMLINVOKE_H
Implementation of the <invoke> SCXML element.
Definition: ScXMLInvoke.h:34
virtual SbBool handleXMLAttributes(void)
Definition: ScXMLObject.cpp:154
Base class for events sent to SCXML state machines.
Definition: ScXMLEvent.h:29
Base class for all SCXML objects.
Definition: ScXMLObject.h:32
Manager for processing events and setting states in SCXML structures.
Definition: ScXMLStateMachine.h:44

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Feb 7 2018 for Coin by Doxygen 1.8.14.