bbclient.h

00001
00002 /***************************************************************************
00003  *  bbclient.h - This header defines a bbclient for Fountain, only for alive
00004  *               checks
00005  *
00006  *  Generated: Wed Feb 08 12:45:52 2006
00007  *  Copyright  2005-2006 Niemueller [www.niemueller.de]
00008  *
00009  ****************************************************************************/
00010
00011 /*  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version.
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL file in the doc directory.
00022  */
00023
00024 #ifndef __FIREVISION_APPS_FOUNTAIN_BBCLIENT_H_
00025 #define __FIREVISION_APPS_FOUNTAIN_BBCLIENT_H_
00026 
00027 /// @cond RCSoftX
00028 
00029 #include <blackboard/clientappl.h>
00030
00031 class FirevisionFountainBBClient : public bb::ClientAppl
00032 {
00033  public:
00034   FirevisionFountainBBClient(int argc, char* argv[]);
00035   virtual ~FirevisionFountainBBClient();
00036
00037   virtual bool isAlive(std::string program);
00038   virtual void addAliveClient(std::string program);
00039
00040   virtual void Init();
00041   virtual void Loop(int Count);
00042   virtual void Exit();
00043
00044  private:
00045
00046   std::string msg_prefix;
00047   std::string hostname;
00048
00049   bbClients::Alive_Server *alive_server;
00050   std::map< std::string, bbClients::Alive_Client * >  alive_clients;
00051   std::map< std::string, bool >                       alive;
00052
00053 };
00054 
00055 /// @endcond
00056 
00057 #endif