1 /***********************************************************************/
2 /* Open Visualization Data Explorer                                    */
3 /* (C) Copyright IBM Corp. 1989,1999                                   */
4 /* ALL RIGHTS RESERVED                                                 */
5 /* This code licensed under the                                        */
6 /*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
7 /***********************************************************************/
8 
9 #include <dxconfig.h>
10 #include "../base/defines.h"
11 
12 
13 #ifndef _ScalarDefinition_h
14 #define _ScalarDefinition_h
15 
16 #include <Xm/Xm.h>
17 
18 #include "InteractorDefinition.h"
19 
20 
21 //
22 // Class name definition:
23 //
24 #define ClassScalarDefinition	"ScalarDefinition"
25 
26 //
27 // Forward definitions
28 //
29 class ParameterDefinition;
30 class Interactor;
31 
32 //
33 // ScalarDefinition class definition:
34 //
35 class ScalarDefinition : public InteractorDefinition
36 {
37   private:
38 
39   protected:
40     //
41     // Protected member data:
42     //
43 
44     //
45     // Allocate a new Node of the corresponding type.
46     //
47     virtual Node *newNode(Network *net, int instance = -1);
48 
49   public:
50     //
51     // Constructor:
52     //
ScalarDefinition()53     ScalarDefinition() { }
54 
55     //
56     // Destructor:
57     //
~ScalarDefinition()58     ~ScalarDefinition() { }
59 
60     //
61     // Allocate a new ScalarDefinition.
62     // This function is intended to be used as an allocator in
63     // theNDAllocatorDictionary.
64     //
65     static NodeDefinition *AllocateDefinition();
66 
67     //
68     // Returns a pointer to the class name.
69     //
getClassName()70     virtual const char* getClassName()
71 		{ return ClassScalarDefinition; }
72 };
73 
74 
75 #endif // _ScalarDefinition_h
76