00001 //------------------------------------------------------------------- 00002 // 00003 // File: TxPlotDataAux.h 00004 // 00005 // Purpose: Interface for auxiliary plot data classes that are 00006 // list regular plot data classes with a few exceptions. 00007 // 00008 // Version: $Id: TxPlotDataAux.h,v 1.1 2001/09/21 22:13:00 kgl Exp $ 00009 // 00010 // Copyright 1996-2001, Tech-X Corporation 00011 // 00012 //------------------------------------------------------------------- 00013 00014 #ifndef TX_PLOT_DATA_AUX_H 00015 #define TX_PLOT_DATA_AUX_H 00016 00017 template <class Aux> 00018 class TxPlotDataAux : public virtual TxPlotData { 00019 00020 // The only data 00021 private: 00022 const Aux* auxData; 00023 00024 public: 00025 // Constructors 00026 TxPlotDataAux(const Aux* a) : auxData(a), TxPlotData(){} 00027 virtual ~TxPlotDataAux(){} 00028 00029 }; 00030 00031 template <class Aux> 00032 class TxLinePlotDataAux : public TxPlotDataAux<Aux>, 00033 public virtual TxLinePlotData { 00034 00035 public: 00036 00037 // Constructors 00038 TxLinePlotDataAux(const Aux* a) : TxPlotDataAux<Aux>(a){} 00039 00041 virtual ~TxLinePlotDataAux(){} 00042 00043 // Remove ambiguities 00044 virtual TXSTD::string getClassID() const { return "TxLinePlotDataAux";} 00045 00046 virtual int write(ostream& ostr) const { 00047 return TxLinePlotData::write(ostr);} 00048 00049 virtual int read(istream& istr){ 00050 return TxLinePlotData::read(istr);} 00051 00052 virtual void optionsChanged(){ 00053 TxLinePlotData::optionsChanged();} 00054 00055 virtual void paramsChanged(){ 00056 TxLinePlotData::paramsChanged();} 00057 00058 virtual void stringsChanged(){ 00059 TxLinePlotData::stringsChanged();} 00060 00061 }; 00062 00063 #endif // TX_PLOT_DATA_AUX_H
Copyright Tech-X Corporation, all rights reserved.