VR-Forces 4.0.4 Class Documentation
include/vrfLua/luaGlobalSingleton.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00006 #pragma once
00007 
00008 #include <vrfcore/simMgr.h>
00009 #include <vrfcgf/cgf.h>
00010 #include <vrfLua/luaScriptManager.h>
00011 
00012 namespace vrfLua
00013 {
00014 class DtLuaGlobalSingleton 
00015 {
00016 public:
00017 
00018     static DtLuaGlobalSingleton* getInstance();
00019 
00020     void setVRFSimManager(DtSimManager* simManager) {myVRFSimManager = simManager;};
00021     DtSimManager* getVRFSimManager() { return myVRFSimManager;};
00022 
00023     void setLuaManager(DtLuaScriptManager* luaManager) {myLuaManager = luaManager;};
00024     DtLuaScriptManager* getLuaManager() { return myLuaManager;};
00025 
00026     void setCgf(DtCgf* cgf) {myCgf = cgf;};
00027     DtCgf* getCgf() { return myCgf;};
00028 
00029 protected:
00030 
00031    static DtLuaGlobalSingleton* theInstance;
00032 
00033    DtSimManager* myVRFSimManager;
00034    DtLuaScriptManager* myLuaManager;
00035    DtCgf* myCgf;
00036 
00037 protected:
00038 
00040    DtLuaGlobalSingleton();
00041 };
00042 
00043 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)