/usr/include/IGSTK/igstkFLTKTextLogOutput.h is in libigstk4-dev 4.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkFLTKTextLogOutput.h,v $
Language: C++
Date: $Date: 2008-02-11 01:41:50 $
Version: $Revision: 1.8 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __igstkFLTKTextLogOutput_h
#define __igstkFLTKTextLogOutput_h
#include <iostream>
#include <string>
#include "itkObject.h"
#include "itkObjectFactory.h"
#include "itkSimpleFastMutexLock.h"
#include "itkLogOutput.h"
#include <FL/Fl_Text_Buffer.H>
#include <FL/Fl_Text_Display.H>
#include "igstkMacros.h"
#include "igstkStateMachine.h"
namespace igstk
{
/** \class FLTKTextLogOutput
* \brief Class FLTKTextLogOutput represents LogOutput for
* FLTK Fl_Text_Display.
* This class provides thread safety for logging on FLTK Fl_Text_Display.
*
* \ingroup Logging
*/
class FLTKTextLogOutput : public ::itk::LogOutput
{
public:
/** Macro with standard traits declarations. */
igstkStandardClassTraitsMacro( FLTKTextLogOutput, ::itk::LogOutput )
public:
typedef Fl_Text_Display StreamType;
typedef StreamType* StreamPointerType;
/** Get an output stream pointer */
igstkGetMacro(Stream, StreamPointerType);
/** Set an output stream pointer */
void SetStream(StreamType &Stream);
/** flush a buffer */
virtual void Flush();
/** Write to multiple outputs */
virtual void Write(double timestamp);
/** Write to a buffer */
virtual void Write(std::string const &content);
/** Write to a buffer */
virtual void Write(std::string const &content, double timestamp);
protected:
/** Constructor */
FLTKTextLogOutput();
/** Destructor */
virtual ~FLTKTextLogOutput();
/** Print object information */
virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
private:
/** Stream pointer (pointer to a FLTK Fl_Text_Display) */
StreamPointerType m_Stream;
/** Mutex lock */
itk::SimpleFastMutexLock m_Mutex;
};
} // end namespace igstk
#endif //__igstk_FLTKTextLogOutput_h_
|