Changeset 13041 for OpenSceneGraph/trunk/src/osg/Notify.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/Notify.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/Notify.cpp
r11431 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 40 40 std::ostream(new NullStreamBuffer) 41 41 { _buffer = dynamic_cast<NullStreamBuffer *>(rdbuf()); } 42 42 43 43 ~NullStream() 44 44 { … … 98 98 return _buffer->getCurrentSeverity(); 99 99 } 100 100 101 101 ~NotifyStream() 102 102 { … … 154 154 g_NullStream = &s_NullStream; 155 155 g_NotifyStream = &s_NotifyStream; 156 156 157 157 // g_NotifyLevel 158 158 // ============= … … 184 184 else if(stringOSGNOTIFYLEVEL.find("INFO")!=std::string::npos) g_NotifyLevel=osg::INFO; 185 185 else std::cout << "Warning: invalid OSG_NOTIFY_LEVEL set ("<<stringOSGNOTIFYLEVEL<<")"<<std::endl; 186 186 187 187 } 188 188 … … 221 221 { 222 222 #if 1 223 if (severity <= osg::WARN) 223 if (severity <= osg::WARN) 224 224 fputs(message, stderr); 225 225 else
