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 
14 #ifndef _DXLInputNode_h
15 #define _DXLInputNode_h
16 
17 
18 
19 #include "UniqueNameNode.h"
20 
21 
22 //
23 // Class name definition:
24 //
25 #define ClassDXLInputNode	"DXLInputNode"
26 
27 //
28 // Referenced Classes
29 
30 //
31 // DXLInputNode class definition:
32 //
33 class DXLInputNode : public UniqueNameNode
34 {
35   private:
36     //
37     // Private member data:
38     //
39     static boolean Initializing;
40 
41   protected:
42     //
43     // Protected member data:
44     //
45     virtual char *netNodeString(const char *prefix);
46 
47     virtual boolean initialize();
48 
49     virtual char        *valuesString(const char *prefix);
50 
51   public:
52     //
53     // Constructor:
54     //
55     DXLInputNode(NodeDefinition *nd, Network *net, int instnc);
56 
57     //
58     // Destructor:
59     //
60     ~DXLInputNode();
61 
62     virtual boolean     sendValues(boolean     ignoreDirty = TRUE);
63 
64     //
65     // This is the same as the super-class except that we restrict the
66     // label with this->verifyRestrictedLabel().
67     //
68     virtual boolean setLabelString(const char *label);
69 
70     //
71     // In addition to the superclass' work, make a new label string if our
72     // labelString is still of the form DXLIinput_%d
73     //
74     virtual int assignNewInstanceNumber();
75 
76     //
77     // Determine if this node is a node of the given class
78     //
79     virtual boolean isA(Symbol classname);
80 
81     //
82     // Java Beans
83     //
84     virtual boolean printAsBean(FILE*);
85     virtual boolean printAsBeanInitCall(FILE*);
86 
87 
88     //
89     // Returns a pointer to the class name.
90     //
getClassName()91     const char* getClassName()
92     {
93 	return ClassDXLInputNode;
94     }
95 };
96 
97 
98 #endif // _DXLInputNode_h
99