CEL

Public API Reference

celtool/initapp.h

00001 /*
00002     Copyright (C) 2004 by Eric Sunshine
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 __CELTOOL_INITAPP_H__
00020 #define __CELTOOL_INITAPP_H__
00021 
00022 #include <cssysdef.h>
00023 #include <cstool/initapp.h>
00024 
00025 #ifndef CEL_DETECTED_PLUGIN_DIR
00026 #  ifdef CEL_PLUGIN_DIR
00027 #    define CEL_DETECTED_PLUGIN_DIR CEL_PLUGIN_DIR
00028 #  else
00029 #    define CEL_DETECTED_PLUGIN_DIR ((char const*)0)
00030 #  endif
00031 #endif
00032 
00039 class celInitializer : public csInitializer
00040 {
00041 private:
00042   typedef csInitializer superclass;
00043   static bool LoadCelVFS(iObjectRegistry* r);
00044   static bool LoadMountsFromFile(iObjectRegistry* r, char const* configPath);
00045 protected:
00046   static void setup_plugin_dirs(iObjectRegistry*, char const* detected_dir);
00047 
00048 public:
00072   static void SetupCelPluginDirs(iObjectRegistry* r)
00073   { setup_plugin_dirs(r, CEL_DETECTED_PLUGIN_DIR); }
00074 
00086   static bool RequestPlugins(iObjectRegistry*, ...);
00087 
00093   static bool RequestPluginsV (iObjectRegistry*, va_list);
00094 
00115   static bool RequestPlugins(iObjectRegistry*,csArray<csPluginRequest> const&);
00116   
00121   static iVFS* SetupVFS(iObjectRegistry* objectReg,
00122                         const char* pluginID = "crystalspace.kernel.vfs");
00123 
00128   static bool SetupConfigManager (iObjectRegistry* r, char const* configName, 
00129                                   char const* AppID = 0);
00130 
00131 };
00132 
00133 #endif // __CELTOOL_INITAPP_H__

Generated for CEL: Crystal Entity Layer 1.2 by doxygen 1.4.7