tools/parameters.h
00001 /* 00002 Crystal Space Entity Layer 00003 Copyright (C) 2004-2006 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 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 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __CEL_PARAMETERS__ 00021 #define __CEL_PARAMETERS__ 00022 00023 #include "cstypes.h" 00024 #include "csutil/scf.h" 00025 #include "csutil/scf_implementation.h" 00026 #include "csutil/weakref.h" 00027 #include "csutil/hash.h" 00028 #include "csgeom/vector3.h" 00029 #include "csutil/refarr.h" 00030 #include "physicallayer/pl.h" 00031 #include "iutil/string.h" 00032 00033 struct iCelParameterBlock; 00034 struct iCelEntity; 00035 struct iCelEntityList; 00036 struct iCelPlLayer; 00037 00038 //--------------------------------------------------------------------------- 00046 struct iParameter : public virtual iBase 00047 { 00048 SCF_INTERFACE (iParameter, 0, 0, 3); 00049 00053 virtual const celData* GetData (iCelParameterBlock* params) = 0; 00054 00059 virtual const char* Get (iCelParameterBlock* params) = 0; 00060 00068 virtual const char* Get (iCelParameterBlock* params, bool& changed) = 0; 00069 00074 virtual int32 GetLong (iCelParameterBlock* params) = 0; 00075 00080 virtual float GetFloat (iCelParameterBlock* params) = 0; 00081 00086 virtual bool GetBool (iCelParameterBlock* params) = 0; 00087 00093 virtual const char* GetOriginalExpression () = 0; 00094 00102 virtual celDataType GetPossibleType () const = 0; 00103 }; 00104 00105 //--------------------------------------------------------------------------- 00106 00112 struct iParameterManager : public virtual iBase 00113 { 00114 SCF_INTERFACE (iParameterManager, 1, 0, 2); 00115 00129 virtual csPtr<iParameter> GetParameter ( 00130 iCelParameterBlock* params, 00131 const char* param, 00132 celDataType type = CEL_DATA_NONE) = 0; 00133 00142 virtual csPtr<iParameter> GetParameter (const char* param, 00143 celDataType type = CEL_DATA_NONE) = 0; 00144 00155 virtual const char* ResolveParameter ( 00156 iCelParameterBlock* params, 00157 const char* param) = 0; 00158 00171 virtual const char* ResolveEntityParameter ( 00172 iCelParameterBlock* params, 00173 const char* param, 00174 uint& entid) = 0; 00175 00181 virtual iCelEntity* ResolveEntityParameter ( 00182 iCelPlLayer* pl, 00183 iCelParameterBlock* params, iParameter* param, 00184 iCelEntity* ent = 0) = 0; 00185 00189 virtual csRef<iCelEntityList> ResolveEntityListParameter ( 00190 iCelPlLayer* pl, 00191 iCelParameterBlock* params, iParameter* param) = 0; 00192 00198 virtual void SetRememberExpression (bool remember) = 0; 00199 virtual bool IsRememberingExpressions () const = 0; 00200 }; 00201 00202 //--------------------------------------------------------------------------- 00203 00204 #endif // __CEL_PARAMETERS__ 00205
Generated for CEL: Crystal Entity Layer 2.1 by doxygen 1.6.1
