Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

exotkTrace_OStream.cxx

Go to the documentation of this file.
00001 
00002 //   exotkTrace_OStream.cxx
00004 //    Copyright (C) 2001  Stephane Routelous
00005 //
00006 //    This file is part of exoTK.
00007 //
00008 //    exoTK is free software; you can redistribute it and/or modify
00009 //    it under the terms of the GNU General Public License as published by
00010 //    the Free Software Foundation; either version 2 of the License, or
00011 //    (at your option) any later version.
00012 //
00013 //    exoTK is distributed in the hope that it will be useful,
00014 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //    GNU General Public License for more details.
00017 //
00018 //    You should have received a copy of the GNU General Public License
00019 //    along with exoTK; if not, write to the Free Software
00020 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00029 #include <exotkTrace_OStream.hxx>
00030 
00031 //
00032 IMPLEMENT_STANDARD_HANDLE(exotkTrace_OStream, exotkTrace_Root)
00033 IMPLEMENT_STANDARD_RTTI(exotkTrace_OStream, exotkTrace_Root)
00034 //
00035 // Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and 
00036 // a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro.
00037 // We must respect the order: from the direct ancestor class
00038 // to the base class.
00039 //
00040 
00041 IMPLEMENT_STANDARD_TYPE(exotkTrace_OStream)
00042 IMPLEMENT_STANDARD_SUPERTYPE(exotkTrace_Root) 
00043 IMPLEMENT_STANDARD_SUPERTYPE(MMgt_TShared) 
00044 IMPLEMENT_STANDARD_SUPERTYPE(Standard_Transient)
00045 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
00046 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(exotkTrace_Root)
00047 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(MMgt_TShared)
00048 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(Standard_Transient)
00049 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
00050 IMPLEMENT_STANDARD_TYPE_END(exotkTrace_OStream)
00051 
00052 
00053 //==================================================================================
00054 // Function name        : exotkTrace_OStream::exotkTrace_OStream
00055 //==================================================================================
00056 // Written by       : Stephane Routelous - 2001-12-29 00:49:01
00057 // Description      : 
00058 // Return type          : 
00059 //==================================================================================
00060 exotkTrace_OStream::exotkTrace_OStream()
00061 {
00062         myOStream = NULL;
00063 }
00064 
00065 
00066 //==================================================================================
00067 // Function name        : exotkTrace_OStream::~exotkTrace_OStream
00068 //==================================================================================
00069 // Written by       : Stephane Routelous - 2001-12-29 00:49:00
00070 // Description      : 
00071 // Return type          : 
00072 //==================================================================================
00073 exotkTrace_OStream::~exotkTrace_OStream()
00074 {
00075 
00076 }
00077 
00078 //==================================================================================
00079 // Function name        : exotkTrace_OStream::SetOStream
00080 //==================================================================================
00081 // Written by       : Stephane Routelous - 2001-12-29 00:49:00
00082 // Description      : 
00083 // Return type          : void 
00084 //==================================================================================
00085 // Argument         : Standard_OStream& aStream
00086 void exotkTrace_OStream::SetOStream(Standard_OStream& aStream)
00087 {
00088         myOStream = &aStream;
00089 }
00090 
00091 //==================================================================================
00092 // Function name        : exotkTrace_OStream::IsValid
00093 //==================================================================================
00094 // Written by       : Stephane Routelous - 2001-12-29 00:48:59
00095 // Description      : 
00096 // Return type          : Standard_Boolean 
00097 //==================================================================================
00098 Standard_Boolean exotkTrace_OStream::IsValid()
00099 {
00100         return (myOStream != NULL);
00101 }
00102 
00103 //==================================================================================
00104 // Function name        : exotkTrace_OStream::Print
00105 //==================================================================================
00106 // Written by       : Stephane Routelous - 2001-12-29 00:48:58
00107 // Description      : 
00108 // Return type          : void 
00109 //==================================================================================
00110 // Argument         : const enum exotkTrace_Level aLevel
00111 // Argument         : const Standard_CString aString
00112 void exotkTrace_OStream::Print(const enum exotkTrace_Level aLevel,const Standard_CString aString)
00113 {
00114         (*myOStream) << aString << endl;
00115 }

Generated on Wed Jan 23 12:16:44 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001