00001 /*************************************************************************** 00002 ulxr_virtual_resource.cpp - virtual resources accessed via ulxmlrpcpp 00003 ------------------- 00004 begin : Sun May 1 2005 00005 copyright : (C) 2002-2007 by Ewald Arnold 00006 email : ulxmlrpcpp@ewald-arnold.de 00007 00008 $Id: ulxr_virtual_resource.cpp 940 2006-12-30 18:22:05Z ewald-arnold $ 00009 00010 ***************************************************************************/ 00011 00012 /************************************************************************** 00013 * 00014 * This program is free software; you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License as 00016 * published by the Free Software Foundation; either version 2 of the License, 00017 * or (at your option) any later version. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program; if not, write to the Free Software 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00027 * 00028 ***************************************************************************/ 00029 00030 #define ULXR_NEED_EXPORTS 00031 #include <ulxmlrpcpp/ulxmlrpcpp.h> // always first header 00032 00033 #include <ulxmlrpcpp/ulxr_virtual_resource.h> 00034 00035 00036 namespace ulxr { 00037 00038 00039 ULXR_API_IMPL0 VirtualResource::VirtualResource(const CppString &res_name) 00040 : CachedResource(res_name) 00041 { 00042 open(); 00043 } 00044 00045 00046 ULXR_API_IMPL0 VirtualResource::~VirtualResource() 00047 { 00048 close(); 00049 } 00050 00051 00052 ULXR_API_IMPL(void) VirtualResource::open() 00053 { 00054 reset(); 00055 } 00056 00057 00058 ULXR_API_IMPL(void) VirtualResource::close() 00059 { 00060 } 00061 00062 00063 ULXR_API_IMPL(bool) VirtualResource::good() 00064 { 00065 return true; 00066 } 00067 00068 00069 }; // namespace ulxr