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 _StreaklineNode_h 14 #define _StreaklineNode_h 15 16 17 #include "Node.h" 18 19 20 // 21 // Class name definition: 22 // 23 #define ClassStreaklineNode "StreaklineNode" 24 25 // 26 // Referenced Classes 27 // 28 class NodeDefinition; 29 class Network; 30 31 // 32 // StreaklineNode class definition: 33 // 34 class StreaklineNode : public Node 35 { 36 private: 37 // 38 // Private member data: 39 // 40 41 protected: 42 // 43 // Protected member data: 44 // 45 46 public: 47 // 48 // Let the superclass do the real instance number work but 49 // this class uses a name string which 50 // is unique for each instance. So when swapping networks, we'll update this 51 // param when the instance number changes. 52 virtual int assignNewInstanceNumber(); 53 54 // 55 // Constructor: 56 // 57 StreaklineNode(NodeDefinition *nd, Network *net, int instnc); 58 59 // 60 // Destructor: 61 // 62 ~StreaklineNode(); 63 64 // 65 // Determine if this node is a node of the given class 66 // 67 virtual boolean isA(Symbol classname); 68 69 // 70 // Returns a pointer to the class name. 71 // getClassName()72 const char* getClassName() 73 { 74 return ClassStreaklineNode; 75 } 76 }; 77 78 79 #endif // _StreaklineNode_h 80