| ## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# iengine/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
    00027 #include "csutil/scf.h"
    00028
    00029 struct iObject;
    00030
    00048 struct CS_DEPRECATED_TYPE_MSG ("Collections are obsolete. Don't use then")
    00049         iCollection : public virtual iBase
    00050 {
    00051   SCF_INTERFACE(iCollection, 2,0,0);
    00053   virtual iObject *QueryObject() = 0;
    00054
    00056   virtual iObject* FindObject (char* name) const = 0;
    00057
    00059   virtual int GetObjectCount () const = 0;
    00060
    00062   virtual void AddObject (iObject* obj) = 0;
    00063
    00065   virtual iObject* operator[] (int i) const = 0;
    00066
    00068   virtual iObject* GetObject (int i) const = 0;
    00069 };
    00070
    00071 #include "csutil/win32/msvc_deprecated_warn_off.h"
    00072
    00083 struct CS_DEPRECATED_TYPE_MSG ("Collections are obsolete. Don't use then")
    00084   iCollectionList : public virtual iBase
    00085 {
    00086   SCF_INTERFACE(iCollectionList,2,0,0);
    00088   virtual iCollection* NewCollection (const char* name) = 0;
    00089
    00091   virtual int GetCount () const = 0;
    00092
    00094   virtual iCollection *Get (int n) const = 0;
    00095
    00097   virtual int Add (iCollection *obj) = 0;
    00098
    00100   virtual bool Remove (iCollection *obj) = 0;
    00101
    00103   virtual bool Remove (int n) = 0;
    00104
    00106   virtual void RemoveAll () = 0;
    00107
    00109   virtual int Find (iCollection *obj) const = 0;
    00110
    00112   virtual iCollection *FindByName (const char *Name) const = 0;
    00113 };
    00114
    00115 #include "csutil/win32/msvc_deprecated_warn_on.h"
    00116
    00117 #endif // __CS_IENGINE_COLLECTN_H__
    00118