Sierra Toolkit Version of the Day
WriterExt.cpp
00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #include <stk_util/diag/WriterExt.hpp>
00010 #include <stk_util/diag/Writer.hpp>
00011 #include <stk_util/environment/Demangle.hpp>
00012 
00013 namespace stk {
00014 namespace diag {
00015 
00016 Writer &
00017 operator<<(
00018   Writer &                      dout,
00019   const std::type_info &        t)
00020 {
00021   if (dout.shouldPrint())
00022     dout << stk::demangle(t.name());
00023   return dout;
00024 }
00025 
00026 } // namespace diag
00027 } // namespace stk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends