iaws/aws2.h
Go to the documentation of this file.00001 /************************************************************************** 00002 Copyright (C) 2005 by Christopher Nelson 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 *****************************************************************************/ 00018 00019 #ifndef __AWS_INTERFACE_20_H__ 00020 #define __AWS_INTERFACE_20_H__ 00021 00022 #ifdef __AWS_INTERFACE_10_H__ 00023 # error "aws.h included before aws2.h. You cannot mix and match the two versions!" 00024 #endif 00025 00030 #include "csutil/scf.h" 00031 #include "csutil/refarr.h" 00032 #include "csutil/stringarray.h" 00033 #include "csutil/scfstr.h" 00034 #include "csgeom/csrect.h" 00035 #include "csgeom/vector2.h" 00036 #include "iutil/event.h" 00037 #include "iutil/string.h" 00038 #include "ivideo/graph2d.h" 00039 #include "ivideo/graph3d.h" 00040 00041 struct iObjectRegistry; 00042 00043 namespace aws 00044 { 00045 00046 namespace autom 00047 { 00048 class string; 00049 class integer; 00050 class floating; 00051 00053 struct iObject 00054 { 00055 SCF_INTERFACE(autom::iObject,0,0,1); 00056 enum TYPE { T_STRING, T_INT, T_FLOAT, T_LIST, T_MAP, T_FUNCTION, 00057 T_REFERENCE, T_BLOB, T_VAR, T_NIL }; 00058 00063 virtual TYPE ObjectType() = 0; 00064 00066 virtual void SetName(iString* _name) = 0; 00067 00069 virtual csRef<iString> GetName() = 0; 00070 00072 virtual string ToString() = 0; 00073 00075 virtual integer ToInt() = 0; 00076 00078 virtual floating ToFloat() = 0; 00079 00084 virtual csRef<iString> ReprObject() = 0; 00085 }; 00086 00087 } // namespace autom 00088 00089 } // namespace aws 00090 00091 /*SCF_VERSION(aws::autom::iObject, 1, 0, 1);*/ 00092 00093 00094 SCF_VERSION(iAwsWindow, 1, 0, 1); 00095 struct iAwsWindow : public iBase 00096 { 00097 int empty; 00098 00099 }; 00100 00101 00102 SCF_VERSION(iAws, 1, 0, 1); 00103 struct iAws : public iBase 00104 { 00106 virtual bool Initialize (iObjectRegistry *_object_reg)=0; 00107 00109 virtual void SetDrawTarget(iGraphics2D *_g2d, iGraphics3D *_g3d)=0; 00110 00112 virtual bool Load(const scfString &_filename)=0; 00113 00115 virtual bool HandleEvent (iEvent &)=0; 00116 00118 virtual void Redraw()=0; 00119 }; 00120 00121 00122 #endif
Generated for Crystal Space by doxygen 1.4.6