00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqMovieConfigSet.h 00004 // 00005 // Purpose: Interface to access a movie configuration TxAttributeSet 00006 // 00007 // Version: $Id: TxqMovieConfigSet.h,v 1.5 2001/10/12 20:12:57 kgl Exp $ 00008 // 00009 // Author: Kelly G. Luetkemeyer 00010 // 00011 // Copyright (c) 2001 by Tech-X Corporation. All rights reserved. 00012 // 00013 //-------------------------------------------------------------------- 00014 00015 #ifndef TXQ_MOVIE_CONFIG_SET_H 00016 #define TXQ_MOVIE_CONFIG_SET_H 00017 00018 // txbase includes 00019 #include "TxAttributeSet.h" 00020 00021 // Qt includes 00022 #include <qstring.h> 00023 #include <qfile.h> 00024 00035 class TxqMovieConfigSet: public TxAttributeSet { 00036 00037 public: 00038 00042 TxqMovieConfigSet(); 00043 00048 TxqMovieConfigSet(QString s); 00049 00053 TxqMovieConfigSet(const TxqMovieConfigSet&); 00054 00058 virtual ~TxqMovieConfigSet(); 00059 00063 TxqMovieConfigSet& operator=(const TxqMovieConfigSet&); 00064 00065 // Accessors for class 00066 00071 void setImageFrameCount(int imageFrameCount); 00072 00077 int getImageFrameCount() {return imageFrameCount;} 00078 00084 void setStatusLabel(QString statusLabel, double statusLabelValue=0.0); 00085 00090 QString getStatusLabel() {return statusLabel; } 00091 00097 void setStatusLabelValue(double value); 00098 00103 double getStatusLabelValue() {return statusLabelValue;} 00104 00110 TxAttributeSet getFrameSet(int index); 00111 00112 // 00113 // Accessors 00114 // 00115 00124 bool hasFrameOption(const QString& optionName, const int index) ; 00125 00133 void setFrameOption(const QString& optionName, int value, int index); 00134 00143 int getFrameOption(const QString& optionName, const int index) throw(TxDebugExcept); 00144 00145 // 00146 // Accessors for strings 00147 // 00148 00157 bool hasFrameString(const QString& stringName, const int index) ; 00158 00166 void setFrameString(const QString& stringName, const QString& value, 00167 int index); 00168 00177 QString getFrameString(const QString& stringName, const int index) 00178 throw(TxDebugExcept); 00179 00180 // 00181 // end of accessors 00182 00183 00188 void write(const QString& fileName) const; 00189 00195 void write(ostream &ostr ,bool flag=false) const {TxAttributeSet::write(ostr, flag);} 00196 00202 void read(const QString& fileName); 00203 00209 virtual TXSTD::string read(istream &is) {return TxAttributeSet::read(is);} 00210 00211 protected: 00212 00216 void initialize(); 00217 00225 bool checkIndex(const int index); 00226 00231 int imageFrameCount; 00232 00237 QString statusLabel; 00238 00244 double statusLabelValue; 00245 00249 TXSTD::vector<TxAttributeSet> frameSets; 00250 00251 00252 private: 00253 00254 }; 00255 00256 /* 00257 * output operator of a TxAttributeSet 00258 */ 00259 /* 00260 inline ostream& operator<< (ostream& ostr, 00261 const TxAttributeSet& txp) { 00262 txp.write(ostr); 00263 return ostr; 00264 } 00265 */ 00266 00267 /* 00268 * input operator of a TxAttributeSet 00269 */ 00270 /* 00271 inline istream& operator>>(istream& istr, TxAttributeSet& txp){ 00272 txp.read(istr); 00273 return istr; 00274 } 00275 */ 00276 00277 #endif // TX_ATTRIBUTE_SET_H
Copyright Tech-X Corporation, all rights reserved.