Panda3D
|
00001 // Filename: pStatCollectorForwardBase.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 PSTATCOLLECTORFORWARDBASE_H 00016 #define PSTATCOLLECTORFORWARDBASE_H 00017 00018 #include "pandabase.h" 00019 #include "referenceCount.h" 00020 00021 //////////////////////////////////////////////////////////////////// 00022 // Class : PStatCollectorForwardBase 00023 // Description : This class serves as a cheap forward reference to a 00024 // PStatCollector, which is defined in the pstatclient 00025 // module (and is not directly accessible here in the 00026 // express module). 00027 // 00028 // This is subclassed as PStatCollectorForward, which 00029 // defines the actual functionality. 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_PANDAEXPRESS PStatCollectorForwardBase : public ReferenceCount { 00032 PUBLISHED: 00033 #ifdef DO_PSTATS 00034 virtual ~PStatCollectorForwardBase(); 00035 virtual void add_level(double level)=0; 00036 #else 00037 INLINE void add_level(double level) { } 00038 #endif 00039 }; 00040 00041 #endif