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

ReplicaLocationIndexFactory.h

Go to the documentation of this file.
00001 /* -*- C++ -*-
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 ReplicaLocationIndexFactory_H
00011 #define ReplicaLocationIndexFactory_H 1
00012 
00013 #include "EdgReplicaLocationIndex/ReplicaLocationIndex.h"
00014 
00015 #include <string>
00016 
00017 namespace EdgReplicaLocationIndex {
00018 
00024   class ReplicaLocationIndexFactory {
00025   public:
00026 
00032     static
00033     ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url);
00034 
00035 #ifdef WITH_WP2_SECURITY
00036     static
00037     ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url,
00038                                                   char *passphrase,
00039                                                   char *credentials,
00040                                                   char *cacertdir,
00041                                                   char *rseedfile);
00042 
00043     static
00044     ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url,
00045                                                   char *passphrase,
00046                                                   char *credentials,
00047                                                   char *cacertdir,
00048                                                   char *rseedfile,
00049                                                   char *role,
00050                                                   char *policy,
00051                                                   char *defaultRole,
00052                                                   char *defaultPolicy);
00053 #endif
00054 
00055   };
00056 }; 
00057 
00058 #endif // ReplicaLocationIndexFactory_H
00059 
The EU DataGrid Project. All rights reserved.