00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxModelIfc.h 00004 // 00005 // Purpose: 00006 // A pure virtual class with methods to define the most basic aspects of 00007 // the interface between a generic scientific and engineering model and 00008 // the frame/trol objects within the Tech-X QScimpl graphics package. 00009 // 00010 // Note: This interface does not depend on QT. 00011 // 00012 // Version: $Id: TxModelIfc.h,v 1.4 2001/12/07 00:14:47 kgl Exp $ 00013 // 00014 // Copyright (c) 2001 by Tech-X Corporation. All rights reserved. 00015 // 00016 //-------------------------------------------------------------------- 00017 00018 #ifndef TX_MODEL_IFC_H 00019 #define TX_MODEL_IFC_H 00020 00021 // txmath includes 00022 #include <TxAttributeSet.h> 00023 00038 class TxModelIfc { 00039 00040 00041 public: 00042 00046 virtual ~TxModelIfc() {} 00047 00053 virtual TXSTD::string getFileExt() const = 0; 00054 00055 00063 virtual int write(ostream&) const = 0; 00064 00072 virtual int read(istream& fl) const = 0; 00073 00077 virtual vector<TxAttributeSet*> getViewMenuAttribs() = 0; 00078 00082 virtual vector<TxAttributeSet*> getViewMenuDataAttribs() = 0; 00083 00087 virtual vector<TxAttributeSet*> getEditMenuAttribs() = 0; 00088 00092 virtual vector<TxAttributeSet*> getParamsMenuAttribs() = 0; 00093 00094 00095 protected: 00096 00100 virtual void initialize()=0; 00101 00105 virtual void parseInput(int argc, char *argv[])=0; 00106 00107 00108 private: 00109 00110 00111 }; 00112 00113 #endif // TX_MODEL_IFC_H
Copyright Tech-X Corporation, all rights reserved.