Back to index

nordugrid-arc-nox  1.1.0~rc6
UsageReporter.h
Go to the documentation of this file.
00001 #ifndef _USAGEREPORTER_H
00002 #define _USAGEREPORTER_H
00003 
00004 #include <time.h>
00005 
00006 #include <list>
00007 #include <string>
00008 
00009 #include <arc/Logger.h>
00010 
00011 #ifdef WIN32
00012 #include <arc/win32.h>
00013 #endif
00014 
00015 #include "Destinations.h"
00016 
00017 namespace Arc
00018 {
00023   class UsageReporter
00024   {
00025   private:
00026     Arc::Logger logger;
00027     Arc::Destinations *dests;
00029     std::string job_log_dir;
00030     time_t expiration_time;
00031     std::list<std::string> urls; 
00032   public:
00036     UsageReporter(std::string job_log_dir_, time_t expiration_time_=0,
00037                 std::list<std::string> urls_=std::list<std::string>());
00039     int report();
00040     ~UsageReporter();
00041   };
00042 
00043 }
00044 
00045 #endif