TtsString.h

Go to the documentation of this file.
00001 #ifndef _TTSSTRING_HEADER
00002 #define _TTSSTRING_HEADER
00003 
00004 
00005 #include <string>
00006 
00007 
00008 namespace ot
00009 {
00010 
00011 
00012 // class *TtsString*
00013 // *******************************************************************************************
00014 // - string and its syllable count
00015 // - used for audio feedback suppression
00016 
00017 class TtsString
00018 {
00019 public:
00020         TtsString()                                                                     { str = ""; syl = 0; };
00021         TtsString(TtsString const &rhs)                         { str = rhs.str; syl = rhs.syl; };
00022         TtsString(std::string str_, double syl_)        { str = str_; syl = syl_; };
00023 
00024         TtsString&      operator=(TtsString const &rhs) { str = rhs.str; syl = rhs.syl; return *this; };
00025         TtsString       operator+(TtsString const &rhs) { TtsString temp; temp.str = str + rhs.str; temp.syl = syl + rhs.syl; return temp; };
00026 
00027         std::string             str;
00028         double                  syl;
00029 };
00030 
00031 
00032 } // namespace ot
00033 
00034 
00035 #endif

Generated on Wed Feb 28 15:18:50 2007 for NaviTrack by  doxygen 1.4.6