/[PAMELA software]/chewbacca/PamOffLineSW/PacketUser.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/PacketUser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by mocchiut, Fri Jan 8 13:36:14 2010 UTC revision 1.14 by mocchiut, Fri Jan 15 14:02:29 2010 UTC
# Line 1  Line 1 
1  //============================================================================  //============================================================================
2  // $Id: PacketUser.cpp,v 1.12 2009/12/30 14:49:51 mocchiut Exp $  // $Id: PacketUser.cpp,v 1.13 2010/01/08 13:36:14 mocchiut Exp $
3  // Description :  // Description :
4  //============================================================================  //============================================================================
5  #include "PacketUser.h"  #include "PacketUser.h"
# Line 650  void PacketUser::FinishGroup(char * file Line 650  void PacketUser::FinishGroup(char * file
650          if (!single_connection) {          if (!single_connection) {
651            CloseDBConnection();            CloseDBConnection();
652          }          }
653          return;          //      return; // commented here...
654    
655        };        };
656      }      }
657    
658      if ( real_time_init || real_time_last) {      if ( real_time_init || real_time_last) {
659      //saves info in DB in table Table_ROOT        //saves info in DB in table Table_ROOT
660      if (boot_number == 0)        if (boot_number == 0)
661        boot_number = boot_number_prevvalue;          boot_number = boot_number_prevvalue;
   
     if (saveROOT_DB(  
                     Table_ROOT_Good,  
                     outDir, // here outDir is good, no expand EMI  
                     filename, pkt_number_init, pkt_number_last, obt_init, obt_last, obt_time_sync, last_time_sync_info,  
                     real_time_init, real_time_last, boot_number, timeOffset, bad_pkt, bad_pkt_EventReader, bad_pkt_CalibReader,  
                     numPKTSaved, fni, time_is_estimated) == true) {  
       oss.str() = "";  
       oss << "Saved information regarding file: " << filename << " in table " << Table_ROOT_Good << " id= " << my_id;  
       msg = oss.str();  
       mainLogUtil->logInfo(msg);  
662                
663        if (tryMerge) {        if (saveROOT_DB(
664          merge_ROOTfiles();                        Table_ROOT_Good,
665        }                        outDir, // here outDir is good, no expand EMI
666      } else {                        filename, pkt_number_init, pkt_number_last, obt_init, obt_last, obt_time_sync, last_time_sync_info,
667                          real_time_init, real_time_last, boot_number, timeOffset, bad_pkt, bad_pkt_EventReader, bad_pkt_CalibReader,
668                          numPKTSaved, fni, time_is_estimated) == true) {
669            oss.str() = "";
670            oss << "Saved information regarding file: " << filename << " in table " << Table_ROOT_Good << " id= " << my_id;
671            msg = oss.str();
672            mainLogUtil->logInfo(msg);
673            
674            if (tryMerge) {
675              merge_ROOTfiles();
676            }
677          } else {
678        oss.str() = "";        oss.str() = "";
679        oss << "Problem storing information in DB regarding file: " << filename;        oss << "Problem storing information in DB regarding file: " << filename;
680        msg = oss.str();        msg = oss.str();
681        mainLogUtil->logError(msg);        mainLogUtil->logError(msg);
682      }        }
683      };      };
684    
685      // if dbinfo is not empty than      // if dbinfo is not empty than

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23