VR-Forces 4.0.4 Class Documentation
include/vrfLua/scriptRepository.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00006 #pragma once
00007 
00008 #include <vrfLua/vrfLuaDefines.h>
00009 #include <vlutil/vlFilename.h>
00010 
00011 #include <list>
00012 #include <map>
00013 
00014 namespace vrfLua
00015 {
00021 class DT_DLL_vrfLua DtScriptRepository 
00022 {
00023 public:
00024 
00026    DtScriptRepository();
00027 
00029    virtual ~DtScriptRepository();
00030 
00032    DtScriptRepository(const DtScriptRepository& orig);
00033 
00035    DtScriptRepository& operator=(const DtScriptRepository& orig);
00036 
00038    virtual bool saveScripts(const DtFilename& filename);
00039 
00041    virtual bool loadScripts(const DtFilename& filename);
00042 
00044    virtual DtString getScript(const DtString& scriptName);
00045 
00047    virtual bool putScript(const DtString& scriptName, const DtString& script);
00048 
00050    virtual bool putScript(const DtString& scriptName, const DtFilename& filename);
00051 
00053    virtual bool removeScript(const DtString& scriptName);
00054 
00056    virtual bool existsScript(const DtString& scriptName);
00057 
00060    virtual bool compareScript(const DtString& scriptToCompare, const DtString& scriptName);
00061 
00063    virtual std::list<DtString> getStringList();
00064 
00065 protected:
00066    std::map<DtString, DtString> myScripts;
00067 };
00068 }

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)