Back to index

nordugrid-arc-nox  1.1.0~rc6
SimpleMap.h
Go to the documentation of this file.
00001 #include <string>
00002 
00003 #define SELFUNMAP_TIME (10*24*60*60)
00004 
00005 namespace ArcSec {
00006 
00007 class SimpleMap {
00008  private:
00009   std::string dir_;
00010   int pool_handle_;
00011  public:
00012   SimpleMap(const std::string& dir);
00013   ~SimpleMap(void);
00014   std::string map(const std::string& subject);
00015   bool unmap(const std::string& subject);
00016   operator bool(void) { return (pool_handle_ != -1); };
00017   bool operator!(void) { return (pool_handle_ == -1); };
00018 };
00019 
00020 }
00021