1 #ifndef OBJECTS_TRACKMGR_GRIDCLI__CREATE_USER_TRACK_CLIENT_HPP 2 #define OBJECTS_TRACKMGR_GRIDCLI__CREATE_USER_TRACK_CLIENT_HPP 3 4 /* $Id: createusertrack_client.hpp 488465 2015-12-30 23:55:06Z meric $ 5 * =========================================================================== 6 * 7 * PUBLIC DOMAIN NOTICE 8 * National Center for Biotechnology Information 9 * 10 * This software/database is a "United States Government Work" under the 11 * terms of the United States Copyright Act. It was written as part of 12 * the author's official duties as a United States Government employee and 13 * thus cannot be copyrighted. This software/database is freely available 14 * to the public for use. The National Library of Medicine and the U.S. 15 * Government have not placed any restriction on its use or reproduction. 16 * 17 * Although all reasonable efforts have been taken to ensure the accuracy 18 * and reliability of the software and data, the NLM and the U.S. 19 * Government do not and cannot warrant the performance or results that 20 * may be obtained by using this software or data. The NLM and the U.S. 21 * Government disclaim all warranties, express or implied, including 22 * warranties of performance, merchantability or fitness for any particular 23 * purpose. 24 * 25 * Please cite the author in any work or product based on this material. 26 * 27 * =========================================================================== 28 * 29 * Authors: Peter Meric 30 * 31 * File Description: NetSchedule grid client for TrackManager create-user-track request/reply 32 * 33 */ 34 35 /// @file tmgr_createusertrack_client.hpp 36 /// NetSchedule grid client for TrackManager Create User Track request/reply 37 38 #include <objects/trackmgr/gridrpcclient.hpp> 39 40 41 BEGIN_NCBI_SCOPE 42 43 BEGIN_SCOPE(objects) 44 class CTMgr_CreateUserTrackRequest; 45 class CTMgr_CreateUserTrackReply; 46 END_SCOPE(objects) 47 48 49 class CTMS_CreateUserTrack_Client : private CGridRPCBaseClient<CAsnBinCompressed> 50 { 51 private: 52 typedef CGridRPCBaseClient<ncbi::CAsnBinCompressed> TBaseClient; 53 54 public: 55 typedef objects::CTMgr_CreateUserTrackRequest TRequest; 56 typedef objects::CTMgr_CreateUserTrackReply TReply; 57 typedef CConstRef<TRequest> TRequestCRef; 58 typedef CRef<TReply> TReplyRef; 59 60 61 public: 62 CTMS_CreateUserTrack_Client(const string& NS_service, 63 const string& NS_queue, 64 const string& client_name, 65 const string& NC_registry_section 66 ); 67 68 CTMS_CreateUserTrack_Client(const string& NS_registry_section = "netschedule_api", 69 const string& NC_registry_section = kEmptyStr 70 ); 71 72 virtual ~CTMS_CreateUserTrack_Client(); 73 74 TReplyRef Fetch(const TRequest& request) const; 75 }; 76 77 78 END_NCBI_SCOPE 79 80 #endif // OBJECTS_TRACKMGR_GRIDCLI__CREATE_USER_TRACK_CLIENT_HPP 81 82