Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ReplicaMetadataCatalogFactory.h

Go to the documentation of this file.
00001 /* -*- C++ -*- $Id: ReplicaMetadataCatalogFactory.h,v 1.4 2003/07/24 15:12:42 mika Exp $
00002  * LocalReplicaCatalog.cpp
00003  *
00004  * Copyright (c) 2002 CERN on behalf of the EU DataGrid.
00005  * For license conditions see LICENSE file or 
00006  * http://www.edg.org/license.html
00007  * 
00008  */
00009 
00010 #ifndef ReplicaMetadataCatalogFactory_H
00011 #define ReplicaMetadataCatalogFactory_H 1
00012 
00013 #include "EdgReplicaMetadataCatalog/ReplicaMetadataCatalog.h"
00014 
00015 #include <string>
00016 
00017 namespace EdgReplicaMetadataCatalog {
00018 
00025   class ReplicaMetadataCatalogFactory {
00026   public:
00027 
00035     static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00036                                                                                                                                                                                                                                                  int timeOut=30);
00037 
00038 #ifdef WITH_WP2_SECURITY
00039     /* Decls of two factory methods for adding security parameters */
00040     static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00041                                                              char *passphrase,
00042                                                              char *credentials,
00043                                                              char *cacertdir,
00044                                                              char *rseedfile,
00045                                                              int timeOut = 30);
00046 
00047     static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00048                                                              char *passphrase,
00049                                                              char *credentials,
00050                                                              char *cacertdir,
00051                                                              char *rseedfile,
00052                                                              char *role,
00053                                                              char *policy,
00054                                                              char *defaultrole,
00055                                                              char *defaultpolicy,
00056                                                              int timeOut = 30);
00057 #endif
00058 
00059   };
00060 }; 
00061 
00062 #endif // ReplicaMetadataCatalogFactory_H
00063 
The EU DataGrid Project. All rights reserved.