Changeset 13041 for OpenSceneGraph/trunk/include/osg/Notify
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Notify (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Notify
r11560 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 */ … … 58 58 /** notify messaging function for providing fatal through to verbose 59 59 * debugging messages. Level of messages sent to the console can 60 * be controlled by setting the NotifyLevel either within your 60 * be controlled by setting the NotifyLevel either within your 61 61 * application or via the an environmental variable i.e. 62 62 * - setenv OSGNOTIFYLEVEL DEBUG (for tsh) … … 67 67 * to the notification stream (useful for debugging) setting ALWAYS will force 68 68 * all messages to be absorbed, which might be appropriate for final 69 * applications. Default NotifyLevel is NOTICE. Check the enum 69 * applications. Default NotifyLevel is NOTICE. Check the enum 70 70 * #NotifySeverity for full range of possibilities. To use the notify 71 71 * with your code simply use the notify function as a normal file 72 * stream (like std::cout) i.e 72 * stream (like std::cout) i.e 73 73 * @code 74 74 * osg::notify(osg::DEBUG) << "Hello Bugs!" << std::endl; … … 89 89 #define OSG_DEBUG_FP OSG_NOTIFY(osg::DEBUG_FP) 90 90 91 /** Handler processing output of notification stream. It acts as a sink to 92 * notification messages. It is called when notification stream needs to be 91 /** Handler processing output of notification stream. It acts as a sink to 92 * notification messages. It is called when notification stream needs to be 93 93 * synchronized (i.e. after osg::notify() << std::endl). 94 * StandardNotifyHandler is used by default, it writes notifications to stderr 94 * StandardNotifyHandler is used by default, it writes notifications to stderr 95 95 * (severity <= WARN) or stdout (severity > WARN). 96 * Notifications can be redirected to other sinks such as GUI widgets or 96 * Notifications can be redirected to other sinks such as GUI widgets or 97 97 * windows debugger (WinDebugNotifyHandler) with custom handlers. 98 98 * Use setNotifyHandler to set custom handler. 99 * Note that osg notification API is not thread safe although notification 99 * Note that osg notification API is not thread safe although notification 100 100 * handler is called from many threads. When incorporating handlers into GUI 101 101 * widgets you must take care of thread safety on your own. … … 129 129 #if defined(WIN32) && !defined(__CYGWIN__) 130 130 131 /** Redirects notification stream to windows debugger with use of 131 /** Redirects notification stream to windows debugger with use of 132 132 * OuputDebugString functions. 133 133 * @see setNotifyHandler
