00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // Delays.h 00004 //------------------------------------------------------------------------------ 00005 // $Id: Delays.h,v 1.6 2003/02/07 05:15:09 vlg Exp $ 00006 //------------------------------------------------------------------------------ 00007 // Copyright (c) 2001 by Vladislav Grinchenko 00008 // 00009 // This program is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU General Public License 00011 // as published by the Free Software Foundation; either version 00012 // 2 of the License, or (at your option) any later version. 00013 //------------------------------------------------------------------------------ 00014 // Created: 05/16/2002 00015 //------------------------------------------------------------------------------ 00016 #ifndef DELAYS_H 00017 #define DELAYS_H 00018 00019 #include <string> 00020 00021 class Config; 00022 00023 class Delays 00024 { 00025 public: 00026 Delays (Config& cfg); 00027 00028 string operator ()(int idx_, const string& infile_) const; 00029 00030 private: 00031 Config& m_config; 00032 bool m_is_rel [2]; // true : relative; false : seconds 00033 string m_delay [2]; 00034 }; 00035 00036 00037 #endif /* DELAYS_H */