00001 #ifndef _BULKDATANT_FLOW_CALLBACK_H_ 00002 #define _BULKDATANT_FLOW_CALLBACK_H_ 00003 /******************************************************************************* 00004 * ALMA - Atacama Large Millimiter Array 00005 * (c) European Southern Observatory, 2011 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 * "@(#) $Id: bulkDataNTSenderFlowCallback.h,v 1.6 2012/02/03 14:38:55 bjeram Exp $" 00022 * 00023 * who when what 00024 * -------- -------- ---------------------------------------------- 00025 * almadev 2011-10-18 created 00026 */ 00027 00028 #ifndef __cplusplus 00029 #error This is a C++ include file and cannot be used from plain C 00030 #endif 00031 00032 #include <acserr.h> 00033 00034 namespace AcsBulkdata 00035 { 00036 class BulkDataNTSenderFlowCallback 00037 { 00038 public: 00039 virtual ~BulkDataNTSenderFlowCallback(){}; 00040 00041 void setFlowName (const char* name) { flowName_m =name; } 00042 const char* getFlowName () { return flowName_m.c_str(); } 00043 00044 void setStreamName (const char* name) { streamName_m =name; } 00045 const char* getStreamName () { return streamName_m.c_str(); } 00046 00054 virtual void onError(ACSErr::CompletionImpl &error); 00055 00060 virtual void onReceiverConnect(unsigned short totalRcvs); 00061 00066 virtual void onReceiverDisconnect(unsigned short totalRcvs); 00067 00068 protected: 00069 std::string flowName_m; 00070 std::string streamName_m; 00071 00072 };//class BulkDataNTSenderFlowCallback 00073 00074 };//namespace 00075 00076 #endif