00001 // Filename: config_express.h 00002 // Created by: cary (04Jan00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef __CONFIG_EXPRESS_H__ 00020 #define __CONFIG_EXPRESS_H__ 00021 00022 #include "pandabase.h" 00023 #include "notifyCategoryProxy.h" 00024 #include "dconfig.h" 00025 00026 ConfigureDecl(config_express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS); 00027 NotifyCategoryDecl(express, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS); 00028 NotifyCategoryDecl(thread, EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS); 00029 00030 // Actually, we can't determine this config variable the normal way, 00031 // because we must be able to access it at static init time. Instead 00032 // of declaring it a global constant, we'll make it a member of 00033 // MemoryUsage. 00034 00035 //extern EXPCL_PANDAEXPRESS const bool track_memory_usage; 00036 00037 EXPCL_PANDAEXPRESS bool get_leak_memory(); 00038 EXPCL_PANDAEXPRESS bool get_never_destruct(); 00039 EXPCL_PANDAEXPRESS bool get_use_high_res_clock(); 00040 EXPCL_PANDAEXPRESS bool get_paranoid_clock(); 00041 EXPCL_PANDAEXPRESS bool get_paranoid_inheritance(); 00042 EXPCL_PANDAEXPRESS bool get_verify_dcast(); 00043 00044 extern const int patchfile_window_size; 00045 extern const int patchfile_increment_size; 00046 extern const int patchfile_buffer_size; 00047 extern const int patchfile_zone_size; 00048 00049 extern const bool keep_temporary_files; 00050 00051 extern EXPCL_PANDAEXPRESS const bool use_vfs; 00052 00053 extern EXPCL_PANDAEXPRESS const bool collect_tcp; 00054 extern EXPCL_PANDAEXPRESS const double collect_tcp_interval; 00055 00056 // Expose the Config variable for Python access. 00057 BEGIN_PUBLISH 00058 typedef Config::Config<ConfigureGetConfig_config_express> ConfigExpress; 00059 EXPCL_PANDAEXPRESS ConfigExpress &get_config_express(); 00060 END_PUBLISH 00061 00062 extern EXPCL_PANDAEXPRESS void init_libexpress(); 00063 00064 #endif /* __CONFIG_UTIL_H__ */