Panda3D
config_express.h
1 // Filename: config_express.h
2 // Created by: cary (04Jan00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef __CONFIG_EXPRESS_H__
16 #define __CONFIG_EXPRESS_H__
17 
18 #include "pandabase.h"
19 #include "notifyCategoryProxy.h"
20 #include "dconfig.h"
21 
22 #include "configVariableBool.h"
23 #include "configVariableInt.h"
24 #include "configVariableDouble.h"
25 #include "configVariableList.h"
26 #include "configVariableFilename.h"
27 
28 // Include these so interrogate can find them.
29 #include "executionEnvironment.h"
30 #include "lineStream.h"
31 
32 #ifdef ANDROID
33 #include <jni.h>
34 #endif
35 
36 ConfigureDecl(config_express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
37 NotifyCategoryDecl(express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
38 NotifyCategoryDecl(clock, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS);
39 
40 // Actually, we can't determine this config variable the normal way,
41 // because we must be able to access it at static init time. Instead
42 // of declaring it a global constant, we'll make it a member of
43 // MemoryUsage.
44 
45 //extern EXPCL_PANDAEXPRESS const bool track_memory_usage;
46 
47 EXPCL_PANDAEXPRESS bool get_use_high_res_clock();
48 EXPCL_PANDAEXPRESS bool get_paranoid_clock();
49 EXPCL_PANDAEXPRESS bool get_paranoid_inheritance();
50 EXPCL_PANDAEXPRESS bool get_verify_dcast();
51 
52 extern ConfigVariableInt patchfile_window_size;
53 extern ConfigVariableInt patchfile_increment_size;
54 extern ConfigVariableInt patchfile_buffer_size;
55 extern ConfigVariableInt patchfile_zone_size;
56 
57 extern ConfigVariableBool keep_temporary_files;
58 extern ConfigVariableBool multifile_always_binary;
59 
60 extern EXPCL_PANDAEXPRESS ConfigVariableBool collect_tcp;
61 extern EXPCL_PANDAEXPRESS ConfigVariableDouble collect_tcp_interval;
62 
63 // Expose the Config variable for Python access.
64 BEGIN_PUBLISH
65 EXPCL_PANDAEXPRESS DConfig &get_config_express();
66 END_PUBLISH
67 
68 extern EXPCL_PANDAEXPRESS void init_libexpress();
69 
70 #ifdef ANDROID
71 extern EXPCL_PANDAEXPRESS JavaVM *get_java_vm();
72 extern EXPCL_PANDAEXPRESS JNIEnv *get_jni_env();
73 #endif
74 
75 #endif /* __CONFIG_UTIL_H__ */
This is a convenience class to specialize ConfigVariable as a boolean type.
This class emulates the old dconfig-style interface to our Panda config system.
Definition: dconfig.h:37
This is a convenience class to specialize ConfigVariable as a floating-point type.
This is a convenience class to specialize ConfigVariable as an integer type.