00001 #ifndef __SGARCHST_H_INCLUDED__ 00002 #define __SGARCHST_H_INCLUDED__ 00003 00004 // $Id$ 00005 00006 //********************************************************************** 00007 // * 00008 // Description: Concrete derived class for storing and retrieving * 00009 // signalman objects to and from a stream archive. * 00010 // * 00011 // Author: Chris White (whitecf@bcs.org.uk) * 00012 // * 00013 // Copyright (C) 2003 Monitor Computing Services Ltd. * 00014 // * 00015 // This program is free software; you can redistribute it and/or * 00016 // modify it under the terms of the GNU General Public License * 00017 // as published by the Free Software Foundation; either version 2 * 00018 // of the License, or any later version. * 00019 // * 00020 // This program is distributed in the hope that it will be useful, * 00021 // but WITHOUT ANY WARRANTY; without even the implied warranty of * 00022 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00023 // GNU General Public License for more details. * 00024 // * 00025 // You should have received a copy of the GNU General Public * 00026 // License (http://www.gnu.org/copyleft/gpl.html) along with this * 00027 // program; if not, write to: * 00028 // The Free Software Foundation Inc., * 00029 // 59 Temple Place - Suite 330, * 00030 // Boston, MA 02111-1307, * 00031 // USA. * 00032 // * 00033 //********************************************************************** 00034 // * 00035 // Notes: * 00036 // * 00037 //********************************************************************** 00038 00039 #include "sgarch.h" 00040 00041 // Forward declerations 00042 class iostream; 00043 class string; 00044 00045 00046 namespace Monitor { 00047 namespace BellMaster { 00048 00049 00050 00051 class SignalmanArchiveStream : public SignalmanArchive 00052 { 00053 public: 00054 00058 SignalmanArchiveStream(iostream& newStream); 00059 00060 protected: 00061 virtual void 00062 storeName(const string& name); 00063 00064 virtual void 00065 storeBeatInterval(const unsigned& interval); 00066 00067 virtual void 00068 storeSetInterval(const unsigned& interval); 00069 00070 virtual int 00071 retrieveName(string& name); 00072 00073 virtual int 00074 retrieveBeatInterval(unsigned& interval); 00075 00076 virtual int 00077 retrieveSetInterval(unsigned& interval); 00078 00079 private: 00080 00084 iostream& archiveStream; 00085 }; // class SignalmanArchiveStream 00086 00087 }; // namespace BellMaster 00088 }; // namespace Monitor 00089 00090 00091 #endif // __SGARCHST_H_INCLUDED__
1.2.14 written by Dimitri van Heesch,
© 1997-2002