fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/gpsoncore/gpsclockcmds.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           gpsclockcmds.h  -  description
00003                              -------------------
00004     begin                : Fr Apr 21 2006
00005     copyright            : (C) 2006 by 
00006     email                : 
00007  ***************************************************************************/
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  ***************************************************************************/
00017 
00018 #ifndef GPSCLOCKCMDS_H
00019 #define GPSCLOCKCMDS_H
00020 
00021 #include <string>
00022 
00023 #include <akshell/cmds.h>
00024 
00025 #include "gpsclock.h"
00026 
00027 
00028 class GpsClock;
00029 class GpsServer;
00030 
00189 class GpsClockCmds : public cmds  {
00190 public:
00192   GpsClockCmds(GpsClock *gps);
00193 
00195   GpsClockCmds(GpsServer *gpsserver);
00196     
00197   ~GpsClockCmds();
00198 
00199   int interprete(FILE * fin, FILE* fout, char * line);
00200 
00201   void help(FILE *fout, char *line);
00202   
00203   void displayStatusHeader(FILE *fout, char *title);
00204 
00205   void displayStatus(FILE *fout, int nShow);
00206   
00207 private:
00208 
00210   std::string inifile;
00211 
00213   shell *sh;
00214 
00216   GpsClock *gps;
00217   
00219   GpsServer *gpsserver;
00220 
00221   GpsClock gpsclock; //< Gps clock routines
00222 
00223   
00224 };
00225 
00226 #endif