00001 /******************************************************************************* 00002 * Copyright (c) 2006 International Business Machines Corporation 00003 * All rights reserved. This program and the accompanying materials 00004 * are made available under the terms of the Common Public License v1.0 00005 * which accompanies this distribution, and is available at 00006 * http://www.opensource.org/licenses/cpl1.0.php 00007 * 00008 * Contributors: 00009 * Douglas Sprague, Joel Wheeler - initial API and implementation 00010 * 00011 *****************************************************************************/ 00012 00013 #ifndef STILTimingWaveformRef_H 00014 #define STILTimingWaveformRef_H 00015 00016 00017 #include "stilcom.h" // Common library 00018 #include "stilblock.h" 00019 #include "stilcomstr.h" 00020 00021 //--------------------------------------------------------------------------- 00027 //--------------------------------------------------------------------------- 00028 class STILTimingWaveformRef : public STILEntity { 00029 00030 // - Public members 00031 public: 00032 // - Default constructor 00033 STILTimingWaveformRef(); 00034 00035 // - Copy Constructor 00036 STILTimingWaveformRef(const STILTimingWaveformRef &); 00037 00038 // - Constructor 00039 //STILTimingWaveformRef(sstring); 00040 00041 // - Destructor 00042 virtual ~STILTimingWaveformRef(); 00043 00044 // - Assignment operator 00045 STILTimingWaveformRef & operator=(const STILTimingWaveformRef &); 00046 00047 // - Initialize/reset this object 00048 void init(); 00049 sstring getText() const; 00050 00051 // - Get/Set the .TIM reference 00052 void setTIM(const sstring); 00053 sstring getTIM() const; 00054 00055 // - Get/Set the .WFT reference 00056 void setWFT(const sstring); 00057 sstring getWFT() const; 00058 00059 // - Get/Set the .WAV reference 00060 void setWAV(const sstring); 00061 sstring getWAV() const; 00062 00063 // - Get/Set the .WFC reference 00064 void setWFC(const sstring); 00065 sstring getWFC() const; 00066 00067 // - Private members 00068 private: 00069 // Derive the text from the other sstring members 00070 void setText(); 00071 00072 //For storing ref names of the form TIM.WFT.WAV.WFC: 00073 sstring m_TIM, 00074 m_WFT, 00075 m_WAV, 00076 m_WFC, 00077 00078 //The text representation: - try changing this to a getValue() call 00079 m_text; 00080 00081 }; 00082 00083 //-------------------------------------------------------------------------- 00091 //-------------------------------------------------------------------------- 00092 inline sstring STILTimingWaveformRef::getText() const { return m_text; } 00093 00094 //-------------------------------------------------------------------------- 00102 //-------------------------------------------------------------------------- 00103 // - Get/Set the .TIM reference 00104 inline sstring STILTimingWaveformRef::getTIM() const { return m_TIM; } 00105 00106 //-------------------------------------------------------------------------- 00114 //-------------------------------------------------------------------------- 00115 // - Get/Set the .WFT reference 00116 inline sstring STILTimingWaveformRef::getWFT() const { return m_WFT; } 00117 00118 //-------------------------------------------------------------------------- 00126 //-------------------------------------------------------------------------- 00127 // - Get/Set the .WAV reference 00128 inline sstring STILTimingWaveformRef::getWAV() const { return m_WAV; } 00129 00130 //-------------------------------------------------------------------------- 00138 //-------------------------------------------------------------------------- 00139 // - Get/Set the .WFC reference 00140 inline sstring STILTimingWaveformRef::getWFC() const { return m_WFC; } 00141 00142 #endif