camera/CameraLog.h

00001 /****************************************************************************/
00002 /* Copyright (c) 2008 MBARI                                                 */
00003 /* MBARI Proprietary Information. All rights reserved.                      */
00004 /****************************************************************************/
00005 /* Summary  : Camera Log Class                                              */
00006 /* Filename : CameraLog.h                                                   */
00007 /* Author   : rsm                                                           */
00008 /* Project  :                                                               */
00009 /* Version  : 1.0                                                           */
00010 /* Created  : 05/01/2008                                                    */
00011 /* Modified :                                                               */
00012 /* Archived :                                                               */
00013 /****************************************************************************/
00014 /* Modification History:                                                    */
00015 /****************************************************************************/
00016 
00017 #ifndef CAMERALOG_H
00018 #define CAMERALOG_H
00019 
00020 #define CameraLogName "Camera"
00021 
00022 #include "DataLogWriter.h"
00023 #include "IntegerData.h"
00024 #include "TimeTag.h"
00025 #include "SimulatedCameraServer.h"
00026 #include "TimeP.h"
00027 #include "Syslog.h"
00028 #include "ShortData.h"
00029 #include "DoubleData.h"
00030 
00031 class Camera;
00032 class SimulatedCameraServer;
00033 
00035 class CameraLog: public DataLogWriter {
00036 
00037 public:
00038 
00040   // Constructor
00041   // [input] fileFormat: Specifies either DataLog::AsciiFormat or 
00042   //         DataLog::BinaryFormat.
00043   CameraLog(Camera                *camera, DataLog::FileFormat fileFormat);
00044   CameraLog(SimulatedCameraServer *camera, DataLog::FileFormat fileFormat);
00045 
00046   ~CameraLog();
00047 
00048 protected:
00050   Camera *_driver;
00052   SimulatedCameraServer *_simServer;
00053 
00055   // Set values in record array elements. This virtual method is called
00056   // by DataLogWriter::write()
00057   virtual void setFields();
00058 
00059   void init();
00061   IntegerData *_num;
00063   DoubleData  *_lat;
00065   DoubleData  *_lon;
00067   DoubleData  *_depth;
00069   DoubleData  *_dmg;
00070 
00071 };
00072 
00073 #endif

Generated on Tue Jul 15 13:10:21 2008 for Benthic Imaging AUV by  doxygen 1.5.4