Beispiel #1
0
//		public void ProcessNMEAFile(string p_strInputFileName )
//		{
//
//			string buffer;
//
//			StreamReader inputFile = File.OpenText(p_strInputFileName);
//
//			while ((buffer = inputFile.ReadLine() ) != null)
//			{
//				m_GPSData.ParseNMEASentence(buffer);
//			}
//
//			inputFile.Close();
//
//		}

        public void StartLogging()
        {
            // Get new Track Id...
            try
            {
                bool blnOpenOk = OpenTrackDB();

                if (blnOpenOk)
                {
                    //m_strCurrentTrackID

                    m_trTrackId = new GPSTrackID();
                    m_trTrackId.CreateTrackID();

                    //store the new track id in Db
                    // we now store a track ID for every track in Database...
                    m_dbTrack.Set(m_trTrackId);

                    m_dbTrack.Commit();

                    m_blnLoggingStarted = true;
                }
            }
            catch (Exception ex)
            {
                //Console.WriteLine(e.Message);
                // what to do?
                RaiseExceptionEvent("Error Occured In GPSTrackDBWriter.StartLogging()", ex);
            }
        }
        //        public void ProcessNMEAFile(string p_strInputFileName )
        //        {
        //            
        //            string buffer;
        //            
        //            StreamReader inputFile = File.OpenText(p_strInputFileName);
        //            
        //            while ((buffer = inputFile.ReadLine() ) != null)
        //            {
        //                m_GPSData.ParseNMEASentence(buffer);
        //            }
        //
        //            inputFile.Close();
        //            
        //        }
        public void StartLogging()
        {
            // Get new Track Id...
            try
            {
                bool blnOpenOk = OpenTrackDB();

                if (blnOpenOk)
                {
                //m_strCurrentTrackID

                    m_trTrackId = new GPSTrackID();
                    m_trTrackId.CreateTrackID();

                    //store the new track id in Db
                    // we now store a track ID for every track in Database...
                    m_dbTrack.Set(m_trTrackId);

                    m_dbTrack.Commit();

                    m_blnLoggingStarted = true;
                }
            }
            catch (Exception ex)
            {
                //Console.WriteLine(e.Message);
                // what to do?
                    RaiseExceptionEvent("Error Occured In GPSTrackDBWriter.StartLogging()",ex);
            }
        }