00001 ////////////////////////////////////////////////////////////////////////////////////////////////// 00002 /*! \file WheelHistory.h 00003 * \brief Stores the wheel angular rate. 00004 * \author $Author: jayhawk_hokie $ 00005 * \version $Revision: 1.5 $ 00006 * \date $Date: 2007/04/09 14:05:13 $ 00007 *////////////////////////////////////////////////////////////////////////////////////////////////// 00008 /* 00009 */ 00010 ////////////////////////////////////////////////////////////////////////////////////////////////// 00011 00012 #ifndef __SSSL_WHEEL_HISTORY_H__ 00013 #define __SSSL_WHEEL_HISTORY_H__ 00014 00015 // System Includes 00016 #include <iostream> 00017 #include <fstream> 00018 #include <unistd.h> 00019 00020 // DSACSS Includes 00021 #include <utils/Time.h> 00022 00023 // XML Parser Include 00024 #include <dsacssinterface.h> 00025 00026 00027 using namespace std; 00028 using namespace O_SESSAME; 00029 00030 00031 /*! \brief Class for storing a time history of wheel states. */ 00032 class WheelHistory 00033 { 00034 public: 00035 WheelHistory( TiXmlHandle _handle, string _wheelName ); 00036 00037 virtual ~WheelHistory( ); 00038 00039 int Initialize( ); 00040 00041 int Deinitialize( ); 00042 00043 int Parse( TiXmlHandle _handle, string _wheelName ); 00044 00045 void AppendHistory( ssfTime _Time, double _WheelSpeed ); 00046 00047 private: 00048 00049 /*! \brief Member ofstream in WheelHistory.h of data file to be saved */ 00050 ofstream *m_File; 00051 00052 /*! \brief Member string in WheelHistory.h, path of file */ 00053 string m_FilePath; 00054 00055 /*! \brief Member string in WheelHistory.h, identify specific test which is in file name. */ 00056 string m_TestID; 00057 00058 /*! \brief Member string in WheelHistory.h, identify file extension for data to be saved as. */ 00059 string m_FileExtension; 00060 00061 /*! \brief Member string in WheelHistory.h, the name of the object having data saved. */ 00062 string m_ObjectName; 00063 00064 /*! \brief Member string in WheelHistory.h, Name of file */ 00065 string m_FileName; 00066 }; 00067 00068 00069 #endif 00070 00071 00072 // Do not change the comments below - they will be added automatically by CVS 00073 /***************************************************************************** 00074 * $Log: WheelHistory.h,v $ 00075 * Revision 1.5 2007/04/09 14:05:13 jayhawk_hokie 00076 * Changed data logging for momentum wheels. 00077 * 00078 * Revision 1.4 2005/03/16 18:08:14 cakinli 00079 * *** empty log message *** 00080 * 00081 * Revision 1.3 2003/11/01 21:00:16 rsharo 00082 * changed "Time.h" includes to "utils/Time.h" includes. Also eliminated excess compile warnings. 00083 * 00084 * Revision 1.2 2003/07/04 14:11:41 simpliciter 00085 * Added newline at end of file. 00086 * 00087 * Revision 1.1.1.1 2003/06/06 18:44:15 simpliciter 00088 * Initial submission. 00089 * 00090 * 00091 ******************************************************************************/ 00092