ALMA Computing Group

acsexmplAsyncMethodCB.cpp

Go to the documentation of this file.
00001 /******************************************************************************* 00002 * ALMA - Atacama Large Millimiter Array 00003 * (c) European Southern Observatory, 2004 00004 * 00005 *This library is free software; you can redistribute it and/or 00006 *modify it under the terms of the GNU Lesser General Public 00007 *License as published by the Free Software Foundation; either 00008 *version 2.1 of the License, or (at your option) any later version. 00009 * 00010 *This library is distributed in the hope that it will be useful, 00011 *but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 *Lesser General Public License for more details. 00014 * 00015 *You should have received a copy of the GNU Lesser General Public 00016 *License along with this library; if not, write to the Free Software 00017 *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * "@(#) $Id: acsexmplAsyncMethodCB.cpp,v 1.2 2008/10/01 04:30:47 cparedes Exp $" 00020 * 00021 * who when what 00022 * -------- -------- ---------------------------------------------- 00023 * acaproni 2004-08-16 created 00024 */ 00025 00026 /************************************************************************ 00027 * NAME 00028 * 00029 * 00030 * SYNOPSIS 00031 * 00032 * 00033 * PARENT CLASS 00034 * 00035 * 00036 * DESCRIPTION 00037 * 00038 * 00039 * PUBLIC METHODS 00040 * 00041 * 00042 * PUBLIC DATA MEMBERS 00043 * 00044 * 00045 * PROTECTED METHODS 00046 * 00047 * 00048 * PROTECTED DATA MEMBERS 00049 * 00050 * 00051 * PRIVATE METHODS 00052 * 00053 * 00054 * PRIVATE DATA MEMBERS 00055 * 00056 * 00057 * FILES 00058 * 00059 * ENVIRONMENT 00060 * 00061 * COMMANDS 00062 * 00063 * RETURN VALUES 00064 * 00065 * CAUTIONS 00066 * 00067 * EXAMPLES 00068 * 00069 * SEE ALSO 00070 * 00071 * BUGS 00072 * 00073 *------------------------------------------------------------------------ 00074 */ 00075 00076 #include "vltPort.h" 00077 00078 static char *rcsId="@(#) $Id: acsexmplAsyncMethodCB.cpp,v 1.2 2008/10/01 04:30:47 cparedes Exp $"; 00079 static void *use_rcsId = ((void)&use_rcsId,(void *) &rcsId); 00080 00081 #include "acsexmplAsyncMethodCB.h" 00082 #include <logging.h> 00083 00084 void AsyncMethodCBvoid::working (const ACSErr::Completion &c, const ACS::CBDescOut &desc) 00085 { 00086 char logStr[128]; 00087 sprintf(logStr,"AsyncMethodCBvoid::working for method %s",methodName.c_str()); 00088 ACS_SHORT_LOG((LM_INFO,logStr)); 00089 } 00090 00091 void AsyncMethodCBvoid::done (const ACSErr::Completion &c, const ACS::CBDescOut &desc) 00092 { 00093 char logStr[128]; 00094 sprintf(logStr,"AsyncMethodCBvoid::done for method %s",methodName.c_str()); 00095 ACS_SHORT_LOG((LM_INFO,logStr)); 00096 } 00097 00098 // Time negotiation is not yet implemented 00099 CORBA::Boolean AsyncMethodCBvoid::negotiate (ACS::TimeInterval time_to_transmit, const ACS::CBDescOut &desc) 00100 { 00101 char logStr[128]; 00102 sprintf(logStr,"AsyncMethodCBvoid::negotiate for method %s",methodName.c_str()); 00103 ACS_SHORT_LOG((LM_INFO,logStr)); 00104 return true; 00105 } 00106 00107 /*___oOo___*/