OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimReferenced.cpp
Go to the documentation of this file.
1 /* -*-c++-*- libwms - Copyright (C) since 2004 Garrett Potts
2 */
5 
7 {
8  int count = referenceCount();
9  if (count>0)
10  {
11  ossimNotify(ossimNotifyLevel_WARN)<<"Warning: deleting still referenced object "<<this<<std::endl;
12  ossimNotify(ossimNotifyLevel_WARN)<<" the final reference count was "<<count
13  <<", memory corruption possible."<<std::endl;
14  }
15 }
virtual ~ossimReferenced()
int referenceCount() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)