// SrmWsClient.h #ifndef dial__SrmWsClient_H #define dial__SrmWsClient_H // Client for SRM 1.1. #include #include #include #include "dial_ws/DialWsClient.h" #include "dial_ws_srm/SrmRequestStatus.h" namespace dial { class SrmWsClient : public WsClient { public: // typedefs typedef std::string Name; typedef std::vector NameList; typedef SrmRequestStatus RequestStatus; public: // Constructors and destructor. // Constructor. // The URL is the address of the service. // The connection is the one to be used by the the service, *not* // the one used to find this client. // The flag usegsi indicates whether GSI is to be used. SrmWsClient(std::string url, bool usegsi =true); public: // inherited functions // Validity calls ping. bool is_valid() const; public: // functions // Ping. bool ping() const; // List of protocols known to the service. NameList protocols() const; // Get. RequestStatus get(NameList surls) const; }; } // end namespace dial // Output stream. std::ostream& operator<<(std::ostream& lhs, const dial::SrmWsClient& rhs); #endif