PixelLightAPI  .
DynSignature.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: DynSignature.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_DYNSIGNATURE_H__
00024 #define __PLCORE_DYNSIGNATURE_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLCore/String/String.h"
00032 
00033 
00034 //[-------------------------------------------------------]
00035 //[ Namespace                                             ]
00036 //[-------------------------------------------------------]
00037 namespace PLCore {
00038 
00039 
00040 //[-------------------------------------------------------]
00041 //[ Classes                                               ]
00042 //[-------------------------------------------------------]
00043 /**
00044 *  @brief
00045 *    Virtual base class for signatures
00046 */
00047 class DynSignature {
00048 
00049 
00050     //[-------------------------------------------------------]
00051     //[ Public functions                                      ]
00052     //[-------------------------------------------------------]
00053     public:
00054         /**
00055         *  @brief
00056         *    Constructor
00057         */
00058         PLCORE_API DynSignature();
00059 
00060         /**
00061         *  @brief
00062         *    Destructor
00063         */
00064         PLCORE_API virtual ~DynSignature();
00065 
00066 
00067     //[-------------------------------------------------------]
00068     //[ Public virtual DynSignature functions                 ]
00069     //[-------------------------------------------------------]
00070     public:
00071         /**
00072         *  @brief
00073         *    Get signature as string
00074         *
00075         *  @return
00076         *    Signature (e.g. "void(int,float)")
00077         */
00078         PLCORE_API virtual String GetSignature() const;
00079 
00080         /**
00081         *  @brief
00082         *    Get the return type ID
00083         *
00084         *  @return
00085         *    Return type ID (e.g. "TypeNull" for "void()" or "TypeInt" for "int()"), "TypeInvalid" if there's no return type
00086         */
00087         PLCORE_API virtual int GetReturnTypeID() const;
00088 
00089         /**
00090         *  @brief
00091         *    Return the number of parameters
00092         *
00093         *  @return
00094         *    Number of parameters
00095         */
00096         PLCORE_API virtual uint32 GetNumOfParameters() const;
00097 
00098         /**
00099         *  @brief
00100         *    Get a parameter type ID
00101         *
00102         *  @param[in] nIndex
00103         *    Index of the parameter to return the type ID from
00104         *
00105         *  @return
00106         *    Parameter type ID (e.g. "TypeInt" for "void(int)"), "TypeInvalid" on error
00107         */
00108         PLCORE_API virtual int GetParameterTypeID(uint32 nIndex) const;
00109 
00110 
00111 };
00112 
00113 
00114 //[-------------------------------------------------------]
00115 //[ Namespace                                             ]
00116 //[-------------------------------------------------------]
00117 } // PLCore
00118 
00119 
00120 #endif // __PLCORE_DYNSIGNATURE_H__


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:50:52
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported