Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

ResourceEndpoint.h

00001 /*
00002  *  Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *  The European Organization for Nuclear Research (CERN),
00004  *  Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *  Datamat Spa, Italy
00006  *  Centre National de la Recherche Scientifique (CNRS), France
00007  *  CS Systeme d'Information (CSSI), France
00008  *  Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *  Universiteit van Amsterdam (UvA), Netherlands
00010  *  University of Helsinki (UH.HIP), Finland
00011  *  University of Bergen (UiB), Norway
00012  *  Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  */
00014 #ifndef RESOURCE_ENDPOINT_H
00015 #define RESOURCE_ENDPOINT_H
00016 
00017 #include <iostream>
00018 #include <string>
00019 
00020 namespace glite
00021 {
00022     namespace rgma
00023     {
00027         class ResourceEndpoint
00028         {
00029             public:
00035                 ResourceEndpoint(std::string url = "", int resourceId = 0);
00041                 //ResourceEndpoint(std::string url = "");
00047                 ResourceEndpoint(const ResourceEndpoint& endpoint);
00048 
00049                 ResourceEndpoint& operator=(const ResourceEndpoint& endpoint);
00050                 bool operator==(const ResourceEndpoint& endpoint);
00051                 virtual ~ResourceEndpoint();
00052 
00057                 int getResourceId();
00062                 std::string getUrl();
00067                 std::string toString();
00068 
00069                 bool equals( const ResourceEndpoint& endpoint );
00070 
00071             private:
00072                 std::string m_url;
00073                 int m_resourceId;
00074         };
00075 
00076         std::ostream& operator<<( std::ostream& stream, ResourceEndpoint rs );
00077     }
00078 }
00079 #endif                                            // RESOURCE_ENDPOINT_H

Generated on Wed May 17 17:48:18 2006 for glite-rgma-api-cpp by doxygen 1.3.5