/usr/include/ossim/base/ossimNotify.h is in libossim-dev 1.7.21-3ubuntu2.
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 100 101 102 103 104 | //-------------------------------------------------------------------
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
// Description:
//
// Contains class declaration for ossimNotify
//-------------------------------------------------------------------
// $Id: ossimNotify.h 14789 2009-06-29 16:48:14Z dburken $
#ifndef ossimNotify_HEADER
#define ossimNotify_HEADER
#include <iostream>
#include <fstream>
#include <ossim/base/ossimErrorCodes.h>
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimFilename.h>
extern "C"
{
/**
* Notification level enumeration. This specifies the
* level of the mesage being written.
*/
enum ossimNotifyLevel
{
ossimNotifyLevel_ALWAYS = 0,
ossimNotifyLevel_FATAL = 1,
ossimNotifyLevel_WARN = 2,
ossimNotifyLevel_NOTICE = 3,
ossimNotifyLevel_INFO = 4,
ossimNotifyLevel_DEBUG = 5
};
/**
* Flags to allow the user to turn off certain notification levels
*
*/
enum ossimNotifyFlags
{
ossimNotifyFlags_NONE = 0,
ossimNotifyFlags_FATAL = 1,
ossimNotifyFlags_WARN = 2,
ossimNotifyFlags_NOTICE = 4,
ossimNotifyFlags_INFO = 8,
ossimNotifyFlags_DEBUG = 16,
ossimNotifyFlags_ALL = (ossimNotifyFlags_FATAL|
ossimNotifyFlags_WARN|
ossimNotifyFlags_NOTICE|
ossimNotifyFlags_INFO|
ossimNotifyFlags_DEBUG)
};
OSSIMDLLEXPORT void ossimSetDefaultNotifyHandlers();
OSSIMDLLEXPORT void ossimSetNotifyStream(std::ostream* outputStream,
ossimNotifyFlags whichLevelsToRedirect=ossimNotifyFlags_ALL);
OSSIMDLLEXPORT std::ostream* ossimGetNotifyStream(ossimNotifyLevel whichLevel);
OSSIMDLLEXPORT bool ossimIsReportingEnabled();
OSSIMDLLEXPORT std::ostream& ossimNotify(ossimNotifyLevel level = ossimNotifyLevel_WARN);
/**
*
*/
OSSIMDLLEXPORT void ossimSetLogFilename(const ossimFilename& filename);
/**
*
*/
OSSIMDLLEXPORT void ossimDisableNotify(ossimNotifyFlags notifyLevel=ossimNotifyFlags_ALL);
/**
*
*/
OSSIMDLLEXPORT void ossimEnableNotify(ossimNotifyFlags notifyLevel=ossimNotifyFlags_ALL);
OSSIMDLLEXPORT void ossimSetNotifyFlag(ossimNotifyFlags notifyFlags);
OSSIMDLLEXPORT void ossimPushNotifyFlags();
OSSIMDLLEXPORT void ossimPopNotifyFlags();
OSSIMDLLEXPORT ossimNotifyFlags ossimGetNotifyFlags();
/**
*
*/
OSSIMDLLEXPORT void ossimSetError( const char *className,
ossim_int32 error,
const char *fmtString, ...);
/**
* This is for general warnings and information feedback
*
* @param fmtString a C printf() style formatting string used (with the
* following arguments) to prepare an error message.
*/
OSSIMDLLEXPORT void ossimSetInfo( const char *className,
const char *fmtString, ...);
}
#endif
|