Back to index

nordugrid-arc-nox  1.1.0~rc6
SRMInfo.h
Go to the documentation of this file.
00001 #ifndef SRM_INFO_H_
00002 #define SRM_INFO_H_
00003 
00004 #include <arc/Thread.h>
00005 
00006 #include "SRMURL.h"
00007 
00011 class SRMFileInfo {
00012  public:
00013   std::string host;
00014   int port;
00015   std::string protocol;
00016   enum SRMURL::SRM_URL_VERSION version;
00017   bool operator==(SRMURL srm_url);
00018   std::string versionString() const;
00019 };
00020 
00025 class SRMInfo {
00026  public:
00027   SRMInfo(std::string dir);
00028   bool getSRMFileInfo(SRMFileInfo& srm_file_info);
00029   void putSRMFileInfo(const SRMFileInfo& srm_file_info);
00030  private:
00031   std::string srm_info_filename;
00032   static Arc::SimpleCondition * filelock;
00033   static Arc::Logger logger;
00034 };
00035 
00036 #endif /*SRM_INFO_H_*/