Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
collectn.h
Go to the documentation of this file.00001 /* 00002 Crystal Space 3D engine 00003 Copyright (C) 2000-2001 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., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_IENGINE_COLLECTN_H__ 00021 #define __CS_IENGINE_COLLECTN_H__ 00022 00026 #include "csutil/scf.h" 00027 00028 struct iObject; 00029 00030 SCF_VERSION (iCollection, 0, 0, 3); 00031 00051 struct iCollection : public iBase 00052 { 00054 virtual iObject *QueryObject() = 0; 00055 00057 virtual iObject* FindObject (char* name) const = 0; 00058 00060 virtual int GetObjectCount () const = 0; 00061 00063 virtual void AddObject (iObject* obj) = 0; 00064 00066 virtual iObject* operator[] (int i) const = 0; 00067 00069 virtual iObject* GetObject (int i) const = 0; 00070 }; 00071 00072 SCF_VERSION (iCollectionList, 0, 0, 1); 00086 struct iCollectionList : public iBase 00087 { 00089 virtual iCollection* NewCollection (const char* name) = 0; 00090 00092 virtual int GetCount () const = 0; 00093 00095 virtual iCollection *Get (int n) const = 0; 00096 00098 virtual int Add (iCollection *obj) = 0; 00099 00101 virtual bool Remove (iCollection *obj) = 0; 00102 00104 virtual bool Remove (int n) = 0; 00105 00107 virtual void RemoveAll () = 0; 00108 00110 virtual int Find (iCollection *obj) const = 0; 00111 00113 virtual iCollection *FindByName (const char *Name) const = 0; 00114 }; 00115 00116 #endif // __CS_IENGINE_COLLECTN_H__ 00117
Generated for Crystal Space by doxygen 1.3.9.1