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 _DisplayDefinition_h 15 #define _DisplayDefinition_h 16 17 18 #include "DrivenDefinition.h" 19 20 21 // 22 // Class name definition: 23 // 24 #define ClassDisplayDefinition "DisplayDefinition" 25 26 // 27 // Referenced classes 28 class Network; 29 30 // 31 // DisplayDefinition class definition: 32 // 33 class DisplayDefinition : public DrivenDefinition 34 { 35 private: 36 // 37 // Private member data: 38 // 39 40 protected: 41 // 42 // Protected member data: 43 // 44 45 // 46 // Allocate a new Node of the corresponding type. 47 // 48 virtual Node *newNode(Network *net, int instance = -1); 49 50 public: 51 // 52 // Constructor: 53 // 54 DisplayDefinition(); 55 56 // 57 // Destructor: 58 // ~DisplayDefinition()59 ~DisplayDefinition(){} 60 61 // 62 // Create a new Module and NodeDefinition of 'this' type. 63 // 64 static NodeDefinition *AllocateDefinition(); 65 isAllowedInMacro()66 virtual boolean isAllowedInMacro() { return TRUE; } 67 68 // 69 // Returns a pointer to the class name. 70 // getClassName()71 const char* getClassName() 72 { 73 return ClassDisplayDefinition; 74 } 75 }; 76 77 78 #endif // _DisplayDefinition_h 79