Panda3D
|
00001 // Filename: pStatCollectorForward.h 00002 // Created by: drose (30Oct06) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PSTATCOLLECTORFORWARD_H 00016 #define PSTATCOLLECTORFORWARD_H 00017 00018 #include "pandabase.h" 00019 #include "pStatCollectorForwardBase.h" 00020 #include "pStatCollector.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : PStatCollectorForward 00024 // Description : This class serves as a cheap forward reference to a 00025 // PStatCollector, so that classes that are defined 00026 // before the pstats module may access the 00027 // PStatCollector. 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDA_PSTATCLIENT PStatCollectorForward : public PStatCollectorForwardBase { 00030 PUBLISHED: 00031 INLINE PStatCollectorForward(const PStatCollector &col); 00032 00033 #ifdef DO_PSTATS 00034 virtual void add_level(double level); 00035 00036 private: 00037 PStatCollector _col; 00038 #endif 00039 }; 00040 00041 #include "pStatCollectorForward.I" 00042 00043 #endif