CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

aws2.h

Go to the documentation of this file.
00001 #ifndef __AWS_INTERFACE_20_H__
00002 #define __AWS_INTERFACE_20_H__
00003 
00004 #ifdef __AWS_INTERFACE_10_H__
00005 # error "aws.h included before aws2.h.  You cannot mix and match the two versions!"
00006 #endif
00007 
00012 #include "csutil/scf.h"
00013 #include "csutil/refarr.h"
00014 #include "csutil/stringarray.h"
00015 #include "csutil/scfstr.h"
00016 #include "csgeom/csrect.h"
00017 #include "csgeom/vector2.h"
00018 #include "iutil/event.h"
00019 #include "iutil/string.h"
00020 #include "ivideo/graph2d.h"
00021 #include "ivideo/graph3d.h"
00022 
00023 struct iObjectRegistry;
00024 
00025 namespace aws
00026 {
00027 
00028 namespace autom
00029 {
00030   class string;
00031   class integer;
00032   class floating;
00033   
00035   struct iObject 
00036   {    
00037     SCF_INTERFACE(autom_iObject,0,0,1);
00038       enum TYPE { T_STRING, T_INT, T_FLOAT, T_LIST, T_MAP, T_FUNCTION, T_REFERENCE, T_BLOB, T_NIL };
00039 
00041       virtual TYPE ObjectType() = 0;
00042       
00044       virtual void SetName(iString* _name) = 0;
00045       
00047       virtual csRef<iString> GetName() = 0;
00048       
00050       virtual string ToString() = 0;
00051       
00053       virtual integer ToInt() = 0;
00054       
00056       virtual floating ToFloat() = 0;   
00057       
00059       virtual csRef<iString> ReprObject() = 0;      
00060   };
00061 
00062 } // namespace autom
00063 
00064 } // namespace aws
00065 
00066 /*SCF_VERSION(aws::autom::iObject, 1, 0, 1);*/
00067 
00068 
00069 SCF_VERSION(iAwsWindow, 1, 0, 1);
00070 struct iAwsWindow : public iBase
00071 {
00072   int empty;
00073 
00074 };
00075 
00076 
00077 SCF_VERSION(iAws, 1, 0, 1);
00078 struct iAws  : public iBase
00079 {
00081   virtual bool Initialize (iObjectRegistry *_object_reg)=0;
00082 
00084   virtual void SetDrawTarget(iGraphics2D *_g2d, iGraphics3D *_g3d)=0;
00085 
00087   virtual bool Load(const scfString &_filename)=0;
00088 
00090   virtual bool HandleEvent (iEvent &)=0;  
00091 
00093   virtual void Redraw()=0;
00094 };
00095 
00096 
00097 #endif

Generated for Crystal Space by doxygen 1.4.4