Pol  Revision:cb584c9
scrstore.h
Go to the documentation of this file.
1 
7 #ifndef SCRSTORE_H
8 #define SCRSTORE_H
9 
10 #include <string>
11 
12 #include "../clib/refptr.h"
13 
14 namespace Pol
15 {
16 namespace Bscript
17 {
18 class EScriptProgram;
19 }
20 namespace Core
21 {
22 class ScriptDef;
23 
25  bool complain_if_not_found = true,
26  bool cache_script = true );
27 
28 // find_script2: assumes all directory info is there, along with ".ecl"
29 ref_ptr<Bscript::EScriptProgram> find_script2( const ScriptDef& script,
30  bool complain_if_not_found = true,
31  bool cache_script = true );
32 
33 
34 int unload_script( const std::string& name );
35 int unload_all_scripts(); // returns # of scripts unloaded
36 void log_all_script_cycle_counts( bool clear_counters );
38 
39 bool script_loaded( ScriptDef& sd );
40 }
41 }
42 #endif // SCRSTORE_H
bool script_loaded(ScriptDef &sd)
Definition: scrstore.cpp:32
ref_ptr< Bscript::EScriptProgram > find_script2(const ScriptDef &script, bool complain_if_not_found, bool cache_script)
Definition: scrstore.cpp:83
int unload_all_scripts()
Definition: scrstore.cpp:148
void log_all_script_cycle_counts(bool clear_counters)
Definition: scrstore.cpp:157
void clear_script_profile_counters()
Definition: scrstore.cpp:202
int unload_script(const std::string &name_in)
Definition: scrstore.cpp:113
std::string name
Definition: osmod.cpp:943
ref_ptr< Bscript::EScriptProgram > find_script(const std::string &name, bool complain_if_not_found, bool cache_script)
Definition: scrstore.cpp:38
Definition: berror.cpp:12