00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Mark Elendt 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: DOP_OperatorInfo.h ( DOP Library, C++) 00015 * 00016 * COMMENTS: This is additional information available via every DOP 00017 * operator. 00018 */ 00019 00020 #ifndef __DOP_OperatorInfo__ 00021 #define __DOP_OperatorInfo__ 00022 00023 #include "DOP_API.h" 00024 #include <OP/OP_Operator.h> 00025 00026 class DOP_API DOP_OperatorInfo : public OP_SpecificData 00027 { 00028 public: 00029 DOP_OperatorInfo(); 00030 virtual ~DOP_OperatorInfo(); 00031 00032 /// Returns the number of outputs for operators of this type. 00033 int getNumOutputs() const; 00034 /// Sets the number of outputs for operators of this type. 00035 void setNumOutputs(int outputs); 00036 00037 /// Returns the name of the data that should be created by this node. 00038 /// This function is used by DOP_Auto nodes, which create a SIM_Data 00039 /// of a particular type. 00040 const UT_String &getDataName() const; 00041 /// Sets the name of the data that should be created by this node. 00042 /// This function is used by DOP_Auto nodes, which create a SIM_Data 00043 /// of a particular type. 00044 void setDataName(const char *dataname); 00045 00046 /// Returns the type of data that should be created by this node. 00047 /// This function is used by DOP_Auto nodes, which create a SIM_Data 00048 /// of a particular type. 00049 const UT_String &getDataTypeName() const; 00050 /// Sets the type of data that should be created by this node. 00051 /// This function is used by DOP_Auto nodes, which create a SIM_Data 00052 /// of a particular type. 00053 void setDataTypeName(const char *datatype); 00054 00055 /// Returns the type of data that represents the "lowest common 00056 /// demoninator" of data types that we are compatible with. 00057 const UT_String &getLCDDataTypeName() const; 00058 /// Sets the type of data that represents the "lowest common 00059 /// demoninator" of data types that we are compatible with. 00060 void setLCDDataTypeName(const char *lcddatatype); 00061 00062 virtual void saveToDialogScript(ostream &os) const; 00063 00064 private: 00065 UT_String myDataName; 00066 UT_String myDataTypeName; 00067 UT_String myLCDDataTypeName; 00068 int myNumOutputs; 00069 }; 00070 00071 #endif 00072
1.5.9