PixelLightAPI
.
|
00001 /*********************************************************\ 00002 * File: DynParams.h * 00003 * 00004 * Copyright (C) 2002-2011 The PixelLight Team (http://www.pixellight.org/) 00005 * 00006 * This file is part of PixelLight. 00007 * 00008 * PixelLight is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * PixelLight is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with PixelLight. If not, see <http://www.gnu.org/licenses/>. 00020 \*********************************************************/ 00021 00022 00023 #ifndef __PLCORE_DYNPARAMS_H__ 00024 #define __PLCORE_DYNPARAMS_H__ 00025 #pragma once 00026 00027 00028 //[-------------------------------------------------------] 00029 //[ Includes ] 00030 //[-------------------------------------------------------] 00031 #include "PLCore/Base/Func/DynSignature.h" 00032 00033 00034 //[-------------------------------------------------------] 00035 //[ Namespace ] 00036 //[-------------------------------------------------------] 00037 namespace PLCore { 00038 00039 00040 //[-------------------------------------------------------] 00041 //[ Classes ] 00042 //[-------------------------------------------------------] 00043 /** 00044 * @brief 00045 * Virtual base class for parameters 00046 * 00047 * @remarks 00048 * This is the virtual base class to pass parameters from and to functions. 00049 */ 00050 class DynParams : public DynSignature { 00051 00052 00053 //[-------------------------------------------------------] 00054 //[ Public functions ] 00055 //[-------------------------------------------------------] 00056 public: 00057 /** 00058 * @brief 00059 * Constructor 00060 */ 00061 PLCORE_API DynParams(); 00062 00063 /** 00064 * @brief 00065 * Destructor 00066 */ 00067 PLCORE_API virtual ~DynParams(); 00068 00069 00070 //[-------------------------------------------------------] 00071 //[ Public virtual DynParams functions ] 00072 //[-------------------------------------------------------] 00073 public: 00074 /** 00075 * @brief 00076 * Get a pointer to the return value 00077 * 00078 * @return 00079 * Pointer to the return value, null pointer if there's no return value 00080 * 00081 * @note 00082 * - Whenever possible, don't use this method, use typed access instead 00083 * - If you really need to use this generic method, use it at least very carefully and always use "GetReturnTypeID()" to check for the real type 00084 */ 00085 PLCORE_API virtual void *GetPointerToReturnValue(); 00086 00087 /** 00088 * @brief 00089 * Get a pointer to a parameter value 00090 * 00091 * @param[in] nIndex 00092 * Index of the parameter to return a pointer to the value from 00093 * 00094 * @return 00095 * Pointer to the parameter, null pointer on error 00096 * 00097 * @note 00098 * - Whenever possible, don't use this method, use typed access instead 00099 * - If you really need to use this generic method, use it at least very carefully and always use "GetParameterTypeID()" to check for the real type 00100 */ 00101 PLCORE_API virtual void *GetPointerToParameterValue(uint32 nIndex); 00102 00103 00104 }; 00105 00106 00107 //[-------------------------------------------------------] 00108 //[ Namespace ] 00109 //[-------------------------------------------------------] 00110 } // PLCore 00111 00112 00113 #endif // __PLCORE_DYNPARAMS_H__
|