/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : GNCServer.h                                            */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _GNCServer_H
#define _GNCServer_H
#include "GncIF_SK.h"
#include "GncOutput.h"
#include "GncInput.h"

class GncServer : public GncIF_SK {
    
public:
    
    GncServer( int, char ** );
    ~GncServer();
    
protected:
    char **_argv;
    int _argc;
   
    ///////////////////////////////////////////////////////////////////
    // DynamicControlIF methods
    virtual void dcGetWallData(double *lastWallTime, double *wallBearing);
    virtual void dcSetGains(GncIF::Gains *gains);
    virtual void dcRevertGains(void);
    
    virtual int spawnAuxTasks();
    
    void deviceStatusCallback(TaskInterface *taskInterface, EventCode eventCode);
    
    GncInput *_input;
    GncOutput *_output;
    GncOutput::State _state;
    //GncLog *_log;

    int _utmZone;
};

#endif
