add debugging output

This commit is contained in:
David Rose 2003-11-17 00:59:59 +00:00
parent 3c3fbf8446
commit 4066f9ee8d
2 changed files with 20 additions and 0 deletions

View File

@ -53,6 +53,25 @@ CInterval(const string &name, double duration, bool open_ended) :
_play_rate = 1.0;
_do_loop = false;
_loop_count = 0;
if (interval_cat.is_spam()) {
interval_cat.spam()
<< "Constructing interval " << (void *)this << ", duration = "
<< _duration << "\n";
}
}
////////////////////////////////////////////////////////////////////
// Function: CInterval::Destructor
// Access: Public, Virtual
// Description:
////////////////////////////////////////////////////////////////////
CInterval::
~CInterval() {
if (interval_cat.is_spam()) {
interval_cat.spam()
<< "Destructing interval " << (void *)this << "\n";
}
}
////////////////////////////////////////////////////////////////////

View File

@ -42,6 +42,7 @@ class CIntervalManager;
class EXPCL_DIRECT CInterval : public TypedReferenceCount {
public:
CInterval(const string &name, double duration, bool open_ended);
virtual ~CInterval();
PUBLISHED:
INLINE const string &get_name() const;