00001 /* 00002 * FakeDelegate.cc 00003 * 00004 * Copyright (c) 2003 The University of Utah and the Flux Group. 00005 * All rights reserved. 00006 * 00007 * This file is licensed under the terms of the GNU Public License. 00008 * See the file "license.terms" for restrictions on redistribution 00009 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 00010 */ 00011 00012 /** 00013 * @file FakeDelegate.cc 00014 * 00015 * Implementation of the FakeDelegate class. 00016 */ 00017 00018 #include "config.h" 00019 00020 #include <iostream> 00021 00022 #include <assert_pp.h> 00023 00024 #include <rk_stub.h> 00025 00026 #include "FakeDelegate.hh" 00027 00028 FakeDelegate::FakeDelegate() 00029 { 00030 } 00031 00032 FakeDelegate::~FakeDelegate() 00033 { 00034 } 00035 00036 rk_stub_precall_retval_t cxx_delegate_precall(void *obj) 00037 { 00038 FakeDelegate *delegate = (FakeDelegate *)obj; 00039 rk_stub_precall_retval_t retval; 00040 00041 require(obj != NULL); 00042 00043 retval = delegate->precall(); 00044 return( retval ); 00045 } 00046 00047 void cxx_delegate_postcall(void *obj) 00048 { 00049 FakeDelegate *delegate = (FakeDelegate *)obj; 00050 00051 require(obj != NULL); 00052 00053 delegate->postcall(); 00054 }