/usr/include/ossim/base/ossimTraceManager.h is in libossim-dev 1.8.16-3+b1.
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 | //*****************************************************************************
// Copyright (C) 2005 Garrett Potts, all rights reserved.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
// DESCRIPTION:
// Contains declaration of class ossimTraceManager.
//
//*****************************************************************************
// $Id: ossimTraceManager.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimTraceManager_HEADER
#define ossimTraceManager_HEADER
#include <ossim/base/ossimString.h>
class ossimTrace;
class OSSIMDLLEXPORT ossimTraceManager
{
public:
/**
* @return ossimTraceManager* to instance of the ossim trace manager.
*/
static ossimTraceManager* instance();
/**
* Sets "thePattern" to "pattern", then calls setTraceFlags(true).
*
* @param pattern Regular expression to enable trace for.
*/
void setTracePattern(const ossimString& pattern);
/**
* @param traceObj ossimTrace* to add to "theTraceList".
*/
void addTrace(ossimTrace* traceObj);
/**
* @param traceObj ossimTrace* to remove from "theTraceList".
*/
void removeTrace(ossimTrace* traceObj);
protected:
/** Protected default constructor. */
ossimTraceManager();
private:
/**
* Loops through "theTraceList" and sets any trace object's enable flag to
* flag if it matches regular expression of "thePattern".
* For trace objects not matching "thePattern" no action is taken.
*/
void setTraceFlags(bool flag);
/** The instance of this manager. */
static ossimTraceManager* theInstance;
/** The regular expression pattern like "ossimDynamic|ossimGdal". */
ossimString thePattern;
/** The list of trace objects. */
std::vector<ossimTrace*> theTraceList;
};
#endif
|